Aws-assume-role-lib

Latest version: v2.10.0

Safety actively analyzes 624625 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

2.10

* Fix CLI support
* Update boto3 version requirement for `SourceIdentity` validation

2.9

* Fixed `get_assumed_role_session_arn()`, which incorrectly used `iam` instead of `sts` in the ARN.
* If `RoleSessionName` is not provided but `SourceIdentity` is, the `SourceIdentity` value will be used for `RoleSessionName`, rather than the `botocore`-generated value.
* Added special value `AUTOMATIC_ROLE_SESSION_NAME`; setting `RoleSessionName` to this will cause it to use pre-2.8 behavior (i.e., always use `botocore`-generated value).
* Updated for [PEP 561](https://www.python.org/dev/peps/pep-0561/) (typing) compliance. Link to single-file module has changed to https://raw.githubusercontent.com/benkehoe/aws-assume-role-lib/stable/aws_assume_role_lib/aws_assume_role_lib.py
* Link to single-file module now uses `stable` branch, which will point to a release commit.

2.8

* If `region_name=None` (the default), the child session region is linked to the parent session region (not copied, which happens if `region_name=True`). If the parent session is using a config profile, this means the child session will have a region, rather than needing/using a separately-set region (e.g., via the `AWS_DEFAULT_REGION` environment variable). For safety, this release increments the [compatibility version](http://blog.appliedcompscilab.com/monotonic_versioning_manifesto/) to 2.
* Added [command line functionality](README.mdcommand-line-use).
* `PolicyArns` can be provided as a list of ARNs in addition to the verbose list-of-single-element-dicts required by the API.

1.7

* `generate_lambda_session_name()` now performs truncation to return a value that is always 64 characters or less.

1.6

* Ensured new functions get imported when doing `from aws_assume_role_lib import *`.

1.5

* Added `get_role_arn()` and `get_assumed_role_session_arn()` functions.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.