Registry / auth-security / cloudauthz

cloudauthz

JSON →
library0.6.0pypypi✓ verified 88d ago

CloudAuthz is a Python library for delegating authorization on cloud-based resource providers. It supports AWS, GCP, and Microsoft Azure, providing a unified interface to obtain temporary credentials. Version 0.6.0 is the latest release, with an irregular release cadence.

pip install cloudauthz
INSTALL
IMPORT
SIG · CLOUDAUTHZ
C
cloudauthz
auth-securitypythonv0.6.0
Install
3.2s avg
Import
737ms
Disk
38MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v0.6.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.796s · 39.1MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 3.2s · import 0.678s · 40MB
38MB installed
● package 38MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CloudAuthz
✓ from cloudauthz import CloudAuthz
standard import
helpers
✓ from cloudauthz import helpers
utility functions

Initialize CloudAuthz and detect the cloud provider from environment. Requires cloud SDK credentials.

from cloudauthz import CloudAuthz authz = CloudAuthz() cloud_id = authz.get_cloud_id() print(f"Cloud provider: {cloud_id}")
Debug
Known issues
breakingIn v0.4.0, GCP config key changed from 'server_service_account_credentials_filename' to 'server_credentials'. Old config will raise KeyError.
fix
Update config to use 'server_credentials' instead.
affects: >=0.4.0
breakingIn v0.6.0, GCP authorization flow replaced with client credentials (service account JSON). The old OAuth2 flow is removed.
fix
Provide a service account JSON file or configure client credentials.
affects: >=0.6.0
deprecatedThe 'get_credentials()' method returns a dict; its structure changed between versions. Check return keys before use.
fix
Inspect returned dict for 'access_key', 'secret_key', 'session_token' (AWS) or 'access_token', 'expires_in' (GCP).
affects: >=0.2.0
Errors
Common errors & fixes
AttributeError: module 'cloudauthz' has no attribute 'CloudAuthz'
Incorrect import or older version without CloudAuthz class (v0.0.x).
fix
Upgrade to latest version: pip install -U cloudauthz
KeyError: 'server_credentials'
Old config uses deprecated key 'server_service_account_credentials_filename' with v0.4.0+.
fix
Use 'server_credentials' in config dict.
Upgrade
Version history
0.6.0latest on PyPI · released Jun 30, 2019
Audit
Dependencies
boto3optionalAWS authorization
google-cloud-storageoptionalGCP authorization
msrestazureoptionalAzure authorization
Agent activity
47 hits · last 30 days
node
42
OpenAI (training)
1
Resources
cloudauthz — pip install cloudauthz · libregistry