# external-secret

One External Secrets Operator ExternalSecret, consumed as a secret dependency

This page is generated from [`kix/packages/experimental/external-secret`](https://github.com/kix-run/kix/tree/main/kix/packages/experimental/external-secret).

| | |
| --- | --- |
| Stability | Experimental |
| `package` value | `packages.experimental.external-secret` |
| Default aliases | `secret` |

## Dependencies

Kix matches each dependency below to another package instance by instance name, alias, or role. To bind a specific instance, set [`deps.<name>`](/docs/reference/instances-and-composition/#deps) in your cluster definition. See [Declaring dependencies](/docs/reference/package-anatomy/#declaring-dependencies) for how required and optional dependencies work.

| Dependency | Requirement |
| --- | --- |
| `externalSecrets` | Required |

## Options

### `keys`

Secret keys, each mapped to its place in the store: a string is the remote key, an attrset gives key, property, and version. The names are the Secret's declared keys.

- **Type:** `attribute set of (non-empty string or (submodule))`
- **Default:** `{ }`
- **Example:**

  ```nix
  {
    username = "app/db-user";
    password = { key = "app/db"; property = "password"; };
  }
  ```

### `refreshInterval`

How often the controller reads the store again and updates the Secret. "0" reads it once.

- **Type:** `string matching the pattern ([0-9]+(\.[0-9]+)?(ns|us|µs|ms|s|m|h))+|0`
- **Default:** `"1h"`
- **Example:** `"15m"`

### `store.kind`

Kind of the store.

- **Type:** `one of "SecretStore", "ClusterSecretStore"`
- **Default:** `"SecretStore"`

### `store.name`

Name of the SecretStore or ClusterSecretStore the ExternalSecret reads from. A SecretStore must be in the instance's namespace.

- **Type:** `non-empty string`
- **Example:** `"vault"`

### `type`

Type of the Secret the ExternalSecret writes.

- **Type:** `non-empty string`
- **Default:** `"Opaque"`
- **Example:** `"kubernetes.io/basic-auth"`