-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix read authorization_metadata_key from public_client_config in _refresh_credentials_from_command #1065
Fix read authorization_metadata_key from public_client_config in _refresh_credentials_from_command #1065
Conversation
Signed-off-by: Sonja Ericsson <[email protected]>
Signed-off-by: Sonja Ericsson <[email protected]>
Signed-off-by: Sonja Ericsson <[email protected]>
Signed-off-by: Sonja Ericsson <[email protected]>
Signed-off-by: Sonja Ericsson <[email protected]>
Signed-off-by: Sonja Ericsson <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1065 +/- ##
==========================================
+ Coverage 86.51% 86.52% +0.01%
==========================================
Files 268 268
Lines 24864 24893 +29
Branches 2799 2803 +4
==========================================
+ Hits 21510 21539 +29
+ Misses 2877 2875 -2
- Partials 477 479 +2 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Sonja Ericsson <[email protected]>
Signed-off-by: Sonja Ericsson <[email protected]>
Signed-off-by: Sonja Ericsson <[email protected]>
Signed-off-by: Sonja Ericsson <[email protected]>
Signed-off-by: Sonja Ericsson <[email protected]>
Signed-off-by: Sonja Ericsson <[email protected]>
Signed-off-by: Sonja Ericsson <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this fix, the change to pass the authorization key in the case of external commands was missing.
Signed-off-by: Sonja Ericsson <[email protected]>
Signed-off-by: Sonja Ericsson <[email protected]>
Signed-off-by: Sonja Ericsson <[email protected]>
Signed-off-by: Sonja Ericsson <[email protected]>
@eapolinario what takes precedence from config, env and passing a flag? |
|
…resh_credentials_from_command (#1065) * add support for custom auth from env Signed-off-by: Sonja Ericsson <[email protected]> * Update flytekit/clis/flyte_cli/main.py Signed-off-by: Sonja Ericsson <[email protected]> * fix Signed-off-by: Sonja Ericsson <[email protected]> * fix Signed-off-by: Sonja Ericsson <[email protected]> * fix Signed-off-by: Sonja Ericsson <[email protected]> * fix Signed-off-by: Sonja Ericsson <[email protected]> * fix Signed-off-by: Sonja Ericsson <[email protected]> * Update test_raw.py Signed-off-by: Sonja Ericsson <[email protected]> * fix Signed-off-by: Sonja Ericsson <[email protected]> * fix Signed-off-by: Sonja Ericsson <[email protected]> * fix Signed-off-by: Sonja Ericsson <[email protected]> * fix Signed-off-by: Sonja Ericsson <[email protected]> * fix Signed-off-by: Sonja Ericsson <[email protected]> * fix Signed-off-by: Sonja Ericsson <[email protected]> * fix Signed-off-by: Sonja Ericsson <[email protected]> * fix Signed-off-by: Sonja Ericsson <[email protected]> * fix Signed-off-by: Sonja Ericsson <[email protected]>
TL;DR
FLYTE_CREDENTIALS_AUTHORIZATION_METADATA_KEY
environment variable was removed in this PR #858 in favor of reading the authorization metadata key from Admin.There was a miss in the PR where the
_refresh_credentials_from_command
did not switch to get the authorization key from self.public_client_config.authorization_metadata_key but instead used the default valueauthorization
.Spotify uses
flyte-authorization
so we received an error about calls being UNAUTHENTICATED since the header name didn't correspond to the one expected by admin.This PR adds support for reading
authorization_metadata_key
frompublic_client_config
in_refresh_credentials_from_command
Type
Are all requirements met?
Complete description
Tracking Issue
https://github.com/flyteorg/flyte/issues/
Follow-up issue
NA
OR
https://github.com/flyteorg/flyte/issues/