Credentials Handler Module

class credproxy.credentials_handler.ServiceCredentialsManager(aws_access_key_id: str, aws_secret_access_key: str, session_token: str, expiry: float)[source]

Bases: object

Service credentials manager with caching and expiry time.

aws_access_key_id: str
aws_secret_access_key: str
session_token: str
expiry: float
is_expired() bool[source]

Check if credentials are expired.

get_sensitive_values() list[str][source]

Get list of sensitive values that should be sanitized.

Returns:

List of credential values

to_dict() dict[source]

Convert to dictionary format for API response.

__init__(aws_access_key_id: str, aws_secret_access_key: str, session_token: str, expiry: float) None
class credproxy.credentials_handler.CredentialsHandler(config: Config)[source]

Bases: object

Simple credentials handler with caching and expiry.

__init__(config: Config)[source]
cleanup() None[source]

Clean up resources during graceful shutdown.

get_credentials(service_name: str) dict[source]

Get credentials for a service, using cache if not expired.