hvac.aws_utilsΒΆ
Classes:
|
Functions:
|
Helper function to prepare a AWS API request to subsequently generate a βAWS Signature Version 4β header. |
- class hvac.aws_utils.SigV4Auth(access_key, secret_key, session_token=None, region='us-east-1')[source]ΒΆ
Bases:
object
Methods:
__init__
(access_key,Β secret_key[,Β β¦])add_auth
(request)
- hvac.aws_utils.generate_sigv4_auth_request(header_value=None)[source]ΒΆ
Helper function to prepare a AWS API request to subsequently generate a βAWS Signature Version 4β header.
- Parameters
header_value (str) β Vault allows you to require an additional header, X-Vault-AWS-IAM-Server-ID, to be present to mitigate against different types of replay attacks. Depending on the configuration of the AWS auth backend, providing a argument to this optional parameter may be required.
- Returns
A PreparedRequest instance, optionally containing the provided header value under a βX-Vault-AWS-IAM-Server-IDβ header name pointed to AWSβs simple token service with action βGetCallerIdentityβ
- Return type
requests.PreparedRequest