parent
347d481930
commit
e11c7966fa
|
@ -1,3 +1,11 @@
|
|||
## 1.0.2 (Unreleased)
|
||||
|
||||
CHANGES:
|
||||
|
||||
* secret/aws: Role now returns `credential_type` instead of `credential_types`
|
||||
to match role input. If a legacy role that can supply more than one
|
||||
credential type, they will be concatenated with a `,`.
|
||||
|
||||
## 1.0.1 (December 14th, 2018)
|
||||
|
||||
SECURITY:
|
||||
|
|
|
@ -429,12 +429,12 @@ type awsRoleEntry struct {
|
|||
|
||||
func (r *awsRoleEntry) toResponseData() map[string]interface{} {
|
||||
respData := map[string]interface{}{
|
||||
"credential_types": r.CredentialTypes,
|
||||
"policy_arns": r.PolicyArns,
|
||||
"role_arns": r.RoleArns,
|
||||
"policy_document": r.PolicyDocument,
|
||||
"default_sts_ttl": int64(r.DefaultSTSTTL.Seconds()),
|
||||
"max_sts_ttl": int64(r.MaxSTSTTL.Seconds()),
|
||||
"credential_type": strings.Join(r.CredentialTypes, ","),
|
||||
"policy_arns": r.PolicyArns,
|
||||
"role_arns": r.RoleArns,
|
||||
"policy_document": r.PolicyDocument,
|
||||
"default_sts_ttl": int64(r.DefaultSTSTTL.Seconds()),
|
||||
"max_sts_ttl": int64(r.MaxSTSTTL.Seconds()),
|
||||
}
|
||||
if r.InvalidData != "" {
|
||||
respData["invalid_data"] = r.InvalidData
|
||||
|
|
Loading…
Reference in New Issue