mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 11:08:10 +00:00
aws auth displayName (#14954)
* set displayName to include RoleSessionName
This commit is contained in:
@@ -1407,6 +1407,11 @@ func (b *backend) pathLoginUpdateIam(ctx context.Context, req *logical.Request,
|
|||||||
Name: identityAlias,
|
Name: identityAlias,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if entity.Type == "assumed-role" {
|
||||||
|
auth.DisplayName = strings.Join([]string{entity.FriendlyName, entity.SessionInfo}, "/")
|
||||||
|
}
|
||||||
|
|
||||||
roleEntry.PopulateTokenAuth(auth)
|
roleEntry.PopulateTokenAuth(auth)
|
||||||
if err := identityConfigEntry.IAMAuthMetadataHandler.PopulateDesiredMetadata(auth, map[string]string{
|
if err := identityConfigEntry.IAMAuthMetadataHandler.PopulateDesiredMetadata(auth, map[string]string{
|
||||||
"client_arn": callerID.Arn,
|
"client_arn": callerID.Arn,
|
||||||
|
|||||||
3
changelog/14954.txt
Normal file
3
changelog/14954.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
```release-note:change
|
||||||
|
auth/aws: Add RoleSession to DisplayName when using assumeRole for authentication
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user