-
Notifications
You must be signed in to change notification settings - Fork 5
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
Upgrade API key rotation to support fully- and partially-qualified IDs #111
Conversation
9418900
to
9f89c60
Compare
d47333f
to
dd6c1a4
Compare
@@ -155,3 +156,10 @@ func assertLogoutCmd(t *testing.T, err error, stdOut string, stdErr string) { | |||
assert.Contains(t, stdOut, "Logged out\n") | |||
assert.Equal(t, "", stdErr) | |||
} | |||
|
|||
func assertAPIKeyRotationCmd(t *testing.T, err error, stdOut string, stdErr string, priorAPIKey string) { |
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.
Function assertAPIKeyRotationCmd
has 5 arguments (exceeds 4 allowed). Consider refactoring.
dd6c1a4
to
0df6edd
Compare
Code Climate has analyzed commit 0df6edd and detected 2 issues on this pull request. Here's the issue category breakdown:
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 80.8% (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!
Desired Outcome
Allow
conjur [user|host] rotate-api-key
to accept fully- and partially-qualified IDs.Implemented Changes
Use the latest version of
conjur-api-go
, which allowsRotate[User|Host]APIKey()
functions to accept both fully- and partially-qualified role IDs.Add integration test cases to ensure the CLI can rotate a [user|host]'s role given an ID of varying degrees of qualification.
Connected Issue/Story
N/A
Definition of Done
At least 1 todo must be completed in the sections below for the PR to be
merged.
Changelog
CHANGELOG update
Test coverage
changes, or
Documentation
README
s) were updated in this PRBehavior
Security