Git Product home page Git Product logo

Comments (2)

dosubot avatar dosubot commented on May 28, 2024 2

🤖

Hello @givanovexpe! 👋

I'm Dosu, a friendly bot here to lend a hand with bugs, answer your questions, and guide you on your journey as a contributor while we wait for a human maintainer. Don't hesitate if you need any assistance. Here to help. 🤖 🔧

Based on the logs you've provided, it seems like the JWT token is not being validated correctly. This could be due to a number of reasons, such as an incorrect or expired token, or a mismatch between the expected audience and the audience claim in the token.

The error message Could not retrieve id token from metadata suggests that the token is not being found in the request metadata. This could be due to the token not being included in the request, or being included in an incorrect format.

The error message Request unauthenticated with IDToken suggests that the request is not being authenticated correctly. This could be due to the token not being valid, or the authentication process not working as expected.

The JWT token validation in the Flyte codebase is handled by the ValidateAccessToken method in the Provider struct. This method parses and validates the token, checks if the token is valid, and verifies the claims against the expected audience. If any of these steps fail, an error is returned.

The findPublicKeyForTokenOrFirst function is used to find the public key for a given token or return the first public key if the token's key is not found. If the KeyID claim is not found or the key corresponding to the KeyID claim is not found in the key set, the function defaults to returning the first public key in the key set.

Based on your server.yaml configuration, it seems like you're using Okta for user authentication and a self-auth server for app authentication. Please ensure that your Okta configuration is correct and that the tokens are being generated and included in the requests correctly.

If you're still facing issues, could you please provide more information about how you're generating and including the tokens in the requests? This would help in diagnosing the issue further. Also, please ensure that your Flyte setup is up-to-date with the latest version, Flyte v1.10.6 milestone release.

For more information, you can refer to the Flyte Admin Auth documentation and the Flyte Admin codebase.

I hope this helps! If you have any more questions, feel free to ask.

-Dosu

Sources


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

from flyte.

a4649 avatar a4649 commented on May 28, 2024

Did you manage to solve it?

from flyte.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.