backport of commit 45b9dffea1cf4fe4e506a9ef9138229961bfbbb4 (#21026)

Co-authored-by: kpcraig <3031348+kpcraig@users.noreply.github.com>
This commit is contained in:
hc-github-team-secure-vault-core 2023-06-06 16:00:24 -04:00 committed by GitHub
parent 69104f93b8
commit c61f8780ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -13,13 +13,13 @@ import (
const (
pathStaticCreds = "static-creds"
paramAccessKeyID = "access_key_id"
paramSecretsAccessKey = "secret_access_key"
paramAccessKeyID = "access_key"
paramSecretsAccessKey = "secret_key"
)
type awsCredentials struct {
AccessKeyID string `json:"access_key_id" structs:"access_key_id" mapstructure:"access_key_id"`
SecretAccessKey string `json:"secret_access_key" structs:"secret_access_key" mapstructure:"secret_access_key"`
AccessKeyID string `json:"access_key" structs:"access_key" mapstructure:"access_key"`
SecretAccessKey string `json:"secret_key" structs:"secret_key" mapstructure:"secret_key"`
}
func pathStaticCredentials(b *backend) *framework.Path {

View File

@ -714,7 +714,7 @@ $ curl \
```json
{
"access_key_id": "AKIA...",
"access_secret_key": "..."
"access_key": "AKIA...",
"secret_key": "..."
}
```