Comments (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.
Did you manage to solve it?
from flyte.
Related Issues (20)
- [Housekeeping] Unify uses of boilerplate
- [BUG] Fix ArrayNode not reporting terminal state in TaskExecutionEvent
- [Core feature] Publish `Fyteidl` crate in crates.io HOT 2
- lack of documentation on http+json requests example HOT 4
- Add a securitySchemes to swagger.json
- [Core feature] --lables Option for pyflyte register HOT 1
- [Core feature] Refactor flytepropeller HOT 2
- [BUG] Infinite loop and memory growth in dynamic task. HOT 1
- [Core feature] Remove init container in ray because the latest kuberay already has init container HOT 4
- [BUG] Streak length metric reporting is broken HOT 1
- [BUG] ArrayNode - fatal error: concurrent map writes
- [Core feature] Allow sub workflows created by `admin-launcher` to run on a different flytepropeller shard HOT 3
- [Core feature] Handle job failure to fail faster and improve UX HOT 3
- [BUG] map_task downloads all pickled outputs from previous map_task HOT 3
- [Core feature] `limit-namespace` should be a `limit-namespaces` to accept list of namespaces HOT 2
- [BUG] Auth calls not hitting the single-binary
- Flyte Project isolation HOT 1
- Flytekit Go SDK HOT 2
- [Core feature] Flytekit Rust SDK HOT 1
- [BUG] Docs | Side menu truncated on reduced widths HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flyte.