reportcompiler.credential_manager
¶
credential_manager.py
This module provides access to credentials stored in a secure and convenient location in a server environment. For this purpose all credentials are stored in a JSON file whose path is defined in the RC_CREDENTIALS_FILE environment variable.
Classes¶
CredentialManager
: Class responsible for retrieving credentials from the credential file. Its
-
class
reportcompiler.credential_manager.
CredentialManager
¶ Class responsible for retrieving credentials from the credential file. Its motivation is to avoid having plaintext credentials in the document specification itself, though currently there is no access control to limit their use on a user basis.
Inheritance
-
static
retrieve
(credential_name, manager_type='default', **kwargs)¶ Retrieves generic credentials with the given credential_name. Currently there is no access control so it should not be used for sensitive applications.
Parameters: - credential_name (str) – Key of the requested credentials
- manager_type (str) – Type of credential manager, currently only ‘default’ available. This should define how (or which) credentials are available in future implementations.
Returns: dictionary with the requested credentials.
Return type: dict
-
static