cwltool.secrets

Minimal in memory storage of secrets.

Module Contents

Classes

SecretStore

Minimal implementation of a secret storage.

class cwltool.secrets.SecretStore

Minimal implementation of a secret storage.

add(value)

Add the given value to the store.

Returns a placeholder value to use until the real value is needed.

Parameters:

value (Optional[cwltool.utils.CWLOutputType])

Return type:

Optional[cwltool.utils.CWLOutputType]

store(secrets, job)

Sanitize the job object of any of the given secrets.

Parameters:
  • secrets (List[str])

  • job (cwltool.utils.CWLObjectType)

Return type:

None

has_secret(value)

Test if the provided document has any of our secrets.

Parameters:

value (cwltool.utils.CWLOutputType)

Return type:

bool

retrieve(value)

Replace placeholders with their corresponding secrets.

Parameters:

value (cwltool.utils.CWLOutputType)

Return type:

cwltool.utils.CWLOutputType