open-vault/website/source/docs/secrets
Joel Thompson ac18a44fae secret/aws: Pass policy ARNs to AssumedRole and FederationToken roles (#6789)
* secret/aws: Pass policy ARNs to AssumedRole and FederationToken roles

AWS now allows you to pass policy ARNs as well as, and in addition to,
policy documents for AssumeRole and GetFederationToken (see
https://aws.amazon.com/about-aws/whats-new/2019/05/session-permissions/).
Vault already collects policy ARNs for iam_user credential types; now it
will allow policy ARNs for assumed_role and federation_token credential
types and plumb them through to the appropriate AWS calls.

This brings along a minor breaking change. Vault roles of the
federation_token credential type are now required to have either a
policy_document or a policy_arns specified. This was implicit
previously; a missing policy_document would result in a validation error
from the AWS SDK when retrieving credentials. However, it would still
allow creating a role that didn't have a policy_document specified and
then later specifying it, after which retrieving the AWS credentials
would work. Similar workflows in which the Vault role didn't have a
policy_document specified for some period of time, such as deleting the
policy_document and then later adding it back, would also have worked
previously but will now be broken.

The reason for this breaking change is because a credential_type of
federation_token without either a policy_document or policy_arns
specified will return credentials that have equivalent permissions to
the credentials the Vault server itself is using. This is quite
dangerous (e.g., it could allow Vault clients access to retrieve
credentials that could modify Vault's underlying storage) and so should
be discouraged. This scenario is still possible when passing in an
appropriate policy_document or policy_arns parameter, but clients should
be explicitly aware of what they are doing and opt in to it by passing
in the appropriate role parameters.

* Error out on dangerous federation token retrieval

The AWS secrets role code now disallows creation of a dangerous role
configuration; however, pre-existing roles could have existed that would
trigger this now-dangerous code path, so also adding a check for this
configuration at credential retrieval time.

* Run makefmt

* Fix tests

* Fix comments/docs
2019-08-20 12:34:41 -07:00
..
ad New Docs Website (#5535) 2018-10-19 08:40:11 -07:00
alicloud New Docs Website (#5535) 2018-10-19 08:40:11 -07:00
aws secret/aws: Pass policy ARNs to AssumedRole and FederationToken roles (#6789) 2019-08-20 12:34:41 -07:00
azure Explain owner role requirement (#6801) 2019-05-30 21:25:30 -05:00
cassandra New Docs Website (#5535) 2018-10-19 08:40:11 -07:00
consul docs: fixed typo (#6721) 2019-05-13 07:50:29 -04:00
cubbyhole New Docs Website (#5535) 2018-10-19 08:40:11 -07:00
databases Combined Database backend: Add Static Account support to MySQL (#6970) 2019-07-05 14:52:56 -04:00
gcp Fix GCP docs formatting (#7120) 2019-08-01 08:00:42 -07:00
gcpkms Simplify permission requirements for GCP things (#6012) 2019-01-10 10:05:21 -08:00
identity Fix JSON example syntax in identity docs (#7227) 2019-07-31 15:23:00 -07:00
kmip Fix PCF location in sidebar 2019-07-30 16:12:55 -04:00
kv Remove delete-version-after from kv put and undelete subcommands 2019-06-27 14:17:46 -04:00
mongodb New Docs Website (#5535) 2018-10-19 08:40:11 -07:00
mssql New Docs Website (#5535) 2018-10-19 08:40:11 -07:00
mysql New Docs Website (#5535) 2018-10-19 08:40:11 -07:00
nomad docs: wording (#6746) 2019-05-24 15:44:09 -04:00
pki Docs: Minor updates to PKI Secrets Engine (#6778) 2019-05-24 15:39:56 -04:00
postgresql New Docs Website (#5535) 2018-10-19 08:40:11 -07:00
rabbitmq New Docs Website (#5535) 2018-10-19 08:40:11 -07:00
ssh New Docs Website (#5535) 2018-10-19 08:40:11 -07:00
totp New Docs Website (#5535) 2018-10-19 08:40:11 -07:00
transit Update transit docs 2019-02-12 14:27:17 -05:00
index.html.md New Docs Website (#5535) 2018-10-19 08:40:11 -07:00