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

@@ -99,6 +99,7 @@ func TestAuthEnableCommand_Run(t *testing.T) {
"-passthrough-request-headers", "www-authentication",
"-allowed-response-headers", "authorization",
"-listing-visibility", "unauth",
"-identity-token-key", "default",
"userpass",
})
if exp := 0; code != exp {
@@ -138,6 +139,9 @@ func TestAuthEnableCommand_Run(t *testing.T) {
if diff := deep.Equal([]string{"foo,bar"}, authInfo.Config.AuditNonHMACResponseKeys); len(diff) > 0 {
t.Errorf("Failed to find expected values in AuditNonHMACResponseKeys. Difference is: %v", diff)
}
if diff := deep.Equal("default", authInfo.Config.IdentityTokenKey); len(diff) > 0 {
t.Errorf("Failed to find expected values in IdentityTokenKey. Difference is: %v", diff)
}
})
t.Run("communication_failure", func(t *testing.T) {