
# `nextflow.secret`

The `nextflow.secret` package defines the secrets provider interface and implements the built-in local secrets store.

## Class Diagram

```mermaid
classDiagram
    %%
    %% nextflow.secret
    %%
    ConfigBuilder --> SecretsLoader : build
    BaseScript --> SecretsLoader : run
    BashWrapperBuilder --> SecretsLoader : build

    SecretsLoader --> SecretsProvider : load
    SecretsProvider --> Secret : getSecret
    SecretsProvider <|-- LocalSecretsProvider
    Secret <|-- SecretImpl

```

:::note
Some classes may be excluded from the above diagram for brevity.
:::

## Notes

The default secrets provider simply stores key-value pairs in a local JSON file.
