Allow passing in authentication client secret as an environment variable #311
Conversation
Signed-off-by: Katrina Rogan <katroganGH@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #311 +/- ##
==========================================
- Coverage 75.05% 74.70% -0.36%
==========================================
Files 15 15
Lines 994 1000 +6
==========================================
+ Hits 746 747 +1
- Misses 217 222 +5
Partials 31 31
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
logger.Errorf(ctx, "Error reading secret from location %s", cfg.ClientSecretLocation) | ||
return nil, err | ||
} | ||
secret = strings.TrimSpace(string(secretBytes)) |
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.
Can we have this done in both the conditions
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.
done
Signed-off-by: Katrina Rogan <katroganGH@gmail.com>
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.
this is just for the CC/api key type auth right?
|
TL;DR
Allow passing in authentication client secret as an environment variable in addition to file path location
Type
Are all requirements met?
Complete description
How did you fix the bug, make the feature etc. Link to any design docs etc
Tracking Issue
flyteorg/flyte#2744
Follow-up issue
NA