chariot.identity package

Submodules

chariot.identity.model module

class chariot.identity.model.SettingsOwner(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: str, Enum

Organization = 'organization'
Project = 'project'
User = 'user'

chariot.identity.settings module

chariot.identity.settings.get_settings(owner_type: SettingsOwner | str, owner_id: str, path: str, decrypt: bool = False) List[dict] | None[source]

Get organization, project, or user-scoped settings. Examples of settings include: s3 credentials, container registry credentials, and custom key/value secrets.

Parameters

owner_type: SettingsOwner

The type of owner for the setting

owner_id: str

The ID for the owner of the setting

path: str

The path for the setting(s).

decrypt: bool

Whether to decrypt any secrets (defaults to False). Secrets are only decrypted if the requesting party has proper authorization.

Returns

List[dict]

Any matching secrets

Module contents

chariot.identity.whoami()[source]