scheduler.vault package

Submodules

scheduler.vault.manager module

Defines the class that manages caching task secrets to memory

class scheduler.vault.manager.SecretsManager

Bases: object

This class pulls secrets from the secrets backend and caches them. This class is thread-safe.

generate_status_json(status_dict)

Generates the portion of the status JSON that describes the secrets settings and metrics

Parameters:status_dict (dict) – The status JSON dict
retrieve_job_type_secrets(job_name)

Get the secret values from the cache pertaining to the provided job

Parameters:
  • job_name – the name of the job
  • type – string
Returns:

job type secrets

Return type:

dict

sync_with_backend()

Gather all job type secrets that are stored in the secrets backend.

Module contents