-
Notifications
You must be signed in to change notification settings - Fork 12
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
Configure Authn client with annotations #366
Conversation
dc38906
to
93fb297
Compare
124bc7b
to
aae0ead
Compare
Code Climate has analyzed commit aae0ead and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 92.6% (0.0% change). View more on Code Climate. |
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.
LGTM!!!
@@ -24,3 +24,5 @@ const CSPFK009I string = "CSPFK009I DAP/Conjur Secrets updated in Kubernetes suc | |||
const CSPFK010I string = "CSPFK010I Updating Kubernetes Secrets: %d retries out of %d" | |||
const CSPFK011I string = "CSPFK011I Annotation '%s' valid, but not recognized" | |||
const CSPFK012I string = "CSPFK012I Secrets Provider setting '%s' set by both environment variable '%s' and annotation '%s'" | |||
const CSPFK013I string = "CSPFK013I Gathering settings for Authenticator client configuration..." | |||
const CSPFK014I string = "CSPFK014I Authenticator setting %s provided by %s" |
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.
NICE! This will be very helpful knowing the source of config.
log.Info(messages.CSPFK014I, key, "environment") | ||
} | ||
|
||
return os.Getenv(key) |
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 reminds me... At some point, we'll want to add UT for this main.go
, and we'll probably want to use dependency injection for the os functions so we can test with a mock os.
This will included unreleased functionality allowing the authn client to be configured using arbitrary sources.
aae0ead
to
7294e62
Compare
What does this PR do?
TODO
This PR updates the Authenticator client dependency from v0.19.1 to a recent unreleased commit, cyberark/conjur-authn-k8s-client@5ca2371, in order to use unreleased functionality. Eventually,
go.mod
andgo.sum
should point to the next authn client release to include these changes.Configures the K8s authenticator with annotations using new functions implemented in cyberark/conjur-authn-k8s-client#407.
What ticket does this PR close?
ONYX-11828
Resolves #340
Checklists
Change log
Test coverage
Documentation
README
s) were updated in this PR, and/or there is a follow-on issue to update docs, or