cli: adds plugin identity token to enable and tune commands for secret engines and auth methods (#24980)

* adds plugin identity token to secrets CLI for enable and tune

* adds plugin identity token to auth CLI for enable and tune

* adds field to mount config input and output

* adds changelog

* fix tests

* fix another test
This commit is contained in:
Austin Gebauer
2024-01-22 16:00:03 -08:00
committed by GitHub
parent 76a62d5997
commit a93ee17946
11 changed files with 71 additions and 2 deletions

View File

@@ -119,6 +119,7 @@ func TestAuthTuneCommand_Run(t *testing.T) {
"-allowed-response-headers", "authorization,www-authentication",
"-listing-visibility", "unauth",
"-plugin-version", version,
"-identity-token-key", "default",
"my-auth/",
})
if exp := 0; code != exp {
@@ -167,6 +168,9 @@ func TestAuthTuneCommand_Run(t *testing.T) {
if diff := deep.Equal([]string{"foo,bar"}, mountInfo.Config.AuditNonHMACResponseKeys); len(diff) > 0 {
t.Errorf("Failed to find expected values in AuditNonHMACResponseKeys. Difference is: %v", diff)
}
if diff := deep.Equal("default", mountInfo.Config.IdentityTokenKey); len(diff) > 0 {
t.Errorf("Failed to find expected values in IdentityTokenKey. Difference is: %v", diff)
}
})
t.Run("flags_description", func(t *testing.T) {