# CapsuleSecretMount

A secret written to a file in a capsule.

**Kind:** an object, used in requests and responses. In a request it is called `CapsuleSecretMountInput`.

## In a request

| Field | Type | Required | Description |
|---|---|---|---|
| `secretName` | `string` |  | The name of the secret. |
| `mountName` | `string` |  | The file name: the secret's value is written to `/mnt/secrets/<mountName>`, readable by the default user. |

```json
{
  "secretName": "...",
  "mountName": "..."
}
```

## In a response

Every field is present in a response; empty ones are `null`.

| Field | Type | Description |
|---|---|---|
| `secretName` | `string` | The name of the secret. |
| `mountName` | `string` | The file name: the secret's value is written to `/mnt/secrets/<mountName>`, readable by the default user. |

```json
{
  "secretName": "...",
  "mountName": "..."
}
```

## Where it's used

- Inside [`CapsuleProcess`](https://docs.maitento.com/reference/types/capsule-process.md)
- Inside [`CapsuleProcessStartConfig`](https://docs.maitento.com/reference/types/capsule-process-start-config.md)
- Inside [`CapsuleProcessStartRequest`](https://docs.maitento.com/reference/types/capsule-process-start-request.md)
- Inside [`CapsuleProcessWithDetails`](https://docs.maitento.com/reference/types/capsule-process-with-details.md)
- Inside [`CapsuleVersion`](https://docs.maitento.com/reference/types/capsule-version.md)
