CE backport: Rename token_auth_metadata to alias_metadata (#9237)

Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
This commit is contained in:
Vault Automation 2025-09-10 06:57:18 -06:00 committed by GitHub
parent d173b10eb1
commit ba4b639445
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View file

@ -636,7 +636,7 @@ func TestAwsEc2_RoleCrud(t *testing.T) {
}
if constants.IsEnterprise {
expected["token_auth_metadata"] = map[string]string{}
expected["alias_metadata"] = map[string]string{}
}
if resp.Data["role_id"] == nil {

View file

@ -1496,7 +1496,7 @@ func TestLdapAuthBackend_ConfigUpgrade(t *testing.T) {
},
}
if constants.IsEnterprise {
exp.TokenParams.TokenAuthMetadata = make(map[string]string)
exp.TokenParams.AliasMetadata = make(map[string]string)
}
configEntry, err := b.Config(ctx, configReq)

View file

@ -48,8 +48,8 @@ type TokenParams struct {
// The TTL to user for the token
TokenTTL time.Duration `json:"token_ttl" mapstructure:"token_ttl"`
// The metadata to attach to the authentication information.
TokenAuthMetadata map[string]string `json:"token_auth_metadata" mapstructure:"token_auth_metadata"`
// The metadata to attach to the alias.
AliasMetadata map[string]string `json:"alias_metadata" mapstructure:"alias_metadata"`
}
// AddTokenFields adds fields to an existing role. It panics if it would