---
title: 1password-secrets
url: /docs/esc/integrations/dynamic-secrets/1password-secrets/
---
The `1password-secrets` provider enables you to dynamically import Secrets from 1Password into your Environment. The provider will return a map of names to Secrets.

> **Warning:** This provider is currently in **preview**.

## Example

```yaml
values:
  1password:
    secrets:
      fn::open::1password-secrets:
        login:
          serviceAccountToken:
            fn::secret: "ops_123ABC"
        get:
          email_section_example:
            ref: "op://Management/PagerDuty/Admin/email"
          anna_sans_section_example:
            ref: "op://dev/Stripe/publishable-key"
          olaf_attr_example:
            ref: "op://development/GitHub/Security/one-time password?attribute=otp"
          sven_ssh_example:
            ref: "op://Private/ssh keys/ssh key/private key?ssh-format=openssh"
          nokk_whitespace_example:
            ref: "op://development/aws/Access Keys/access_key_id"
          gale_unique_id_example:
            ref: "op://prod/yj3jfj2vzsbiwqabprflnl27lm/password"
```

## Inputs

| Property | Type                                                   | Description                               |
|----------|--------------------------------------------------------|-------------------------------------------|
| `login`  | [1PasswordSecretsLogin](#1passwordsecretslogin)        | Credentials used to log in to 1Password.  |
| `get`    | map[string][1PasswordSecretsGet](#1passwordsecretsget) | The secrets to get.                       |

### 1PasswordSecretsLogin

| Property              | Type   | Description                                                                   |
|-----------------------|--------|-------------------------------------------------------------------------------|
| `serviceAccountToken` | string | The service account token to use for authentication.                         |

### 1PasswordSecretsGet

| Property | Type   | Description                                  |
|----------|--------|----------------------------------------------|
| `ref`    | string | A [reference to a secret](https://developer.1password.com/docs/cli/secrets-reference-syntax) of the form `op://vault-name/item-name/[section-name/]field-name` to read from 1Password.  |

### Outputs

| Property | Type   | Description                        |
|----------|--------|------------------------------------|
| N/A      | object | A map from names to secret values. |

