baiji v0.6.11 Baiji.Auth.InstanceMetadata

Derives operation authentication parameters from the local instance’ metadata

Link to this section Summary

Functions

Populate the given credentials key in the op struct using cached credentials

Query the instance metadata endpoint for security credentials and return them

Query the ECS task role credentials endpoint for security credentials and return them

Assign instance metadata credentials to the operation

Populate the security credential of the given operation specified by the given key using the instance metadata endpoint

Populate the given auth key on the operation using the cached instance metadata in the operation’s assigns

Make a GET request to the specified URL and return the body. If anything goes wrong, raise an error

Link to this section Functions

Link to this function assign_credentials(op)

Populate the given credentials key in the op struct using cached credentials

Link to this function ec2_credentials(op)

Query the instance metadata endpoint for security credentials and return them

Link to this function ecs_credentials(op)

Query the ECS task role credentials endpoint for security credentials and return them

Link to this function extract_credentials(credentials)

Assign instance metadata credentials to the operation

Link to this function populate(op, key)

Populate the security credential of the given operation specified by the given key using the instance metadata endpoint

Link to this function populate_from_cache(op, key)

Populate the given auth key on the operation using the cached instance metadata in the operation’s assigns

Link to this function populate_from_cache(op, key, creds)

Make a GET request to the specified URL and return the body. If anything goes wrong, raise an error.