> For the complete documentation index, see [llms.txt](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/developers/api/oaa/templates/secret-store-template.md). Agents can also search and read this documentation through its [MCP server](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/~gitbook/mcp).

# Secret Store

Template for modeling secret storage systems with vaults, entries, and permissions

{% hint style="warning" %}
Secret Store is an Early Access feature. Contact your Veza account team to enable it for your organization.
{% endhint %}

Use this template to model secret and credential management systems using the [Open Authorization API](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/developers/api/oaa.md). The Secret Store template captures the authorization relationships for custom or self-hosted credential management systems that are not covered by a native Veza integration.

The template models a hierarchical structure:

* **Secret Store** - the top-level entity representing the secret management system instance
  * **Permissions** - define actions that identities can perform (e.g., Read, Write, Decrypt)
  * **Vaults** - logical containers for secrets within the store
    * **Entries** - individual secrets or credentials within a vault
      * **Identities** - optional identity mappings linking the entry to external identities
* **Identity-to-Permission Bindings** - map identities to permissions on specific vaults

A [custom property definition](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/developers/api/oaa/best-practices/oaa-custom-properties.md) can define additional properties for the secret store, permissions, vaults, and entries.

```mermaid
graph TB
    subgraph "Secret Store"
        SS[Secret Store Instance]

        SS --> P[Permissions]
        SS --> V[Vaults]
        V --> E[Entries]
        E -.->|"identity mapping"| I[External Identities]
    end

    subgraph "Authorization Bindings"
        ITP[Identity-to-Permission]
        ITP -->|"granted"| P
        ITP -->|"scoped to"| V
    end

    ITP -.->|"identity"| I
```

To use the secret store template, set the template type to `secret_store` when creating a new data provider:

```bash
curl -X POST "https://{VEZA_URL}/api/v1/providers/custom" \
-H "authorization: Bearer {API_KEY}" \
-H "Content-Type: application/json" \
--data '{"name":"MySecretStore","custom_template":"secret_store"}'
```

## Sample Payloads

<details>

<summary>HashiCorp Vault Example</summary>

This example demonstrates a secret store with two vaults, permissions, vault entries with identity mappings, and identity-to-permission bindings.

```json
{
  "secret_store_type": "hashicorp_vault",
  "custom_property_definition": {
    "secret_store_properties": {
      "environment": "STRING"
    },
    "permission_properties": {},
    "vault_properties": {
      "encryption_type": "STRING"
    },
    "entry_properties": {
      "rotation_enabled": "BOOLEAN"
    }
  },
  "secret_store": {
    "name": "Production Vault",
    "id": "prod-vault-001",
    "description": "Production environment secrets",
    "tags": [
      {
        "key": "department",
        "value": "engineering"
      }
    ],
    "custom_properties": {
      "environment": "production"
    },
    "permissions": [
      {
        "name": "Read",
        "id": "perm-read",
        "resource": "secrets/*",
        "allow_identity_assume": false
      },
      {
        "name": "Write",
        "id": "perm-write",
        "resource": "secrets/*",
        "allow_identity_assume": true
      }
    ],
    "secret_store_vaults": [
      {
        "name": "API Keys",
        "id": "vault-api-keys",
        "vault_type": "kv",
        "description": "API key storage",
        "tags": [
          {
            "key": "category",
            "value": "api-credentials"
          }
        ],
        "custom_properties": {
          "encryption_type": "AES-256"
        },
        "entries": [
          {
            "name": "Stripe API Key",
            "id": "entry-stripe",
            "description": "Stripe payment processing key",
            "custom_properties": {
              "rotation_enabled": true
            },
            "identities": [
              {
                "type": "OktaUser",
                "external_id": "alice@example.com"
              }
            ]
          }
        ]
      },
      {
        "name": "Database Credentials",
        "id": "vault-db-creds",
        "vault_type": "kv",
        "description": "Database connection credentials",
        "custom_properties": {
          "encryption_type": "AES-256"
        },
        "entries": [
          {
            "name": "PostgreSQL Admin",
            "id": "entry-postgres",
            "description": "PostgreSQL admin credentials",
            "custom_properties": {
              "rotation_enabled": true
            }
          }
        ]
      }
    ],
    "identity_to_permissions": [
      {
        "identity": "admin-user",
        "identity_type": "local_user",
        "permission_assignments": [
          {
            "vault": [
              "vault-api-keys",
              "vault-db-creds"
            ],
            "permissions": [
              "Read",
              "Write"
            ]
          }
        ]
      },
      {
        "identity": "developer-user",
        "identity_type": "local_user",
        "permission_assignments": [
          {
            "vault": [
              "vault-api-keys"
            ],
            "permissions": [
              "Read"
            ]
          }
        ]
      }
    ]
  }
}
```

</details>

### Example: Custom PAM Integration

Organizations with custom or self-hosted privileged access management (PAM) systems can use the Secret Store template to model their credential vaults, entries, and access permissions. This example shows how to map a typical PAM structure to the Secret Store template.

<details>

<summary>Custom PAM Payload</summary>

This payload models a custom PAM system with two credential vaults, permission definitions, and identity-to-permission mappings reflecting typical DBA and platform engineer access patterns.

```json
{
  "secret_store_type": "custom_pam",
  "custom_property_definition": {
    "vault_properties": {
      "rotation_policy": "STRING",
      "requires_approval": "BOOLEAN"
    },
    "entry_properties": {
      "credential_type": "STRING"
    }
  },
  "secret_store": {
    "name": "ACME Internal PAM",
    "id": "pam.acme-internal.example.com",
    "description": "Production internal credential management system",
    "tags": [
      {
        "key": "environment",
        "value": "production"
      }
    ],
    "permissions": [
      {
        "name": "View",
        "id": "perm-view",
        "allow_identity_assume": false
      },
      {
        "name": "Checkout",
        "id": "perm-checkout",
        "allow_identity_assume": true
      },
      {
        "name": "Rotate",
        "id": "perm-rotate",
        "allow_identity_assume": false
      },
      {
        "name": "Manage",
        "id": "perm-manage",
        "allow_identity_assume": false
      }
    ],
    "secret_store_vaults": [
      {
        "name": "Production Databases",
        "id": "vault-prod-databases",
        "vault_type": "database",
        "description": "Privileged database credentials for production systems",
        "custom_properties": {
          "rotation_policy": "30-day",
          "requires_approval": true
        },
        "entries": [
          {
            "name": "postgres-prod-admin",
            "id": "cred-pg-admin-001",
            "description": "PostgreSQL production superuser",
            "custom_properties": {
              "credential_type": "service_account"
            },
            "identities": [
              {
                "type": "AzureADUser",
                "external_id": "dba-admin@acme.com"
              }
            ]
          },
          {
            "name": "mysql-prod-readonly",
            "id": "cred-mysql-ro-001",
            "description": "MySQL production read-only service account",
            "custom_properties": {
              "credential_type": "service_account"
            }
          }
        ]
      },
      {
        "name": "Cloud Platform Keys",
        "id": "vault-cloud-keys",
        "vault_type": "cloud_credentials",
        "description": "Cloud provider access keys",
        "custom_properties": {
          "rotation_policy": "90-day",
          "requires_approval": false
        },
        "entries": [
          {
            "name": "cloud-prod-admin",
            "id": "cred-cloud-admin-001",
            "description": "Production cloud IAM admin access key",
            "custom_properties": {
              "credential_type": "access_key"
            },
            "identities": [
              {
                "type": "AzureADUser",
                "external_id": "platform-eng@acme.com"
              }
            ]
          }
        ]
      }
    ],
    "identity_to_permissions": [
      {
        "identity": "dba-admin@acme.com",
        "identity_type": "AzureADUser",
        "permission_assignments": [
          {
            "vault": ["vault-prod-databases"],
            "permissions": ["View", "Checkout"]
          }
        ]
      },
      {
        "identity": "platform-eng@acme.com",
        "identity_type": "AzureADUser",
        "permission_assignments": [
          {
            "vault": ["vault-cloud-keys"],
            "permissions": ["View", "Checkout", "Rotate"]
          },
          {
            "vault": ["vault-prod-databases"],
            "permissions": ["View"]
          }
        ]
      }
    ]
  }
}
```

</details>

This example demonstrates key patterns for working with the template:

* **Vaults group credentials by scope.** Permissions are granted at the vault level. Grouping credentials by team or system (databases, cloud keys) is the natural unit of access control.
* **`allow_identity_assume`** indicates whether this permission grants the ability to retrieve and use a credential's actual value.
* **`rotation_policy`** and `requires_approval`\*\* are custom properties that capture PAM-specific policies useful for access reviews and compliance reporting.

## Top-Level Payload

| Field                            | Type    | Description                                                                                                                                                                                                                      |
| -------------------------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `secret_store_type`              | string  | Type descriptor for the secret store (e.g., `hashicorp_vault`). Applied as a searchable property. `thales_ciphertrust` and `akeyless` also turn on [Key IDs built from vendor properties](#key-ids-built-from-vendor-properties) |
| `custom_property_definition`     | object  | Defines custom properties for the store, permissions, vaults, and entries. See [Custom Properties](#custom-property-definitions)                                                                                                 |
| `secret_store`                   | object  | The [secret store](#secret-store-object) object containing all entities                                                                                                                                                          |
| `identity_mapping_configuration` | object  | Optional configuration for mapping local identities to users from external data sources                                                                                                                                          |
| `incremental_change`             | boolean | When `true`, enables [incremental updates](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/developers/api/oaa/best-practices/incremental-updates.md) (optional)                                                                       |

## Secret Store object

The secret store object is the top-level container for permissions, vaults, and identity mappings.

```json
"secret_store": {
  "name": "Production Vault",
  "id": "prod-vault-001",
  "description": "Production environment secrets",
  "tags": [],
  "custom_properties": {},
  "permissions": [],
  "secret_store_vaults": [],
  "identity_to_permissions": []
}
```

### Secret Store Properties

| Field                     | Type       | Description                                                                                                                                                                   |
| ------------------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `name`                    | string     | Display name for the secret store                                                                                                                                             |
| `id`                      | string     | Unique identifier. Defaults to `name` if not provided                                                                                                                         |
| `description`             | string     | Description shown in Veza entity details (optional)                                                                                                                           |
| `tags`                    | array      | Specify tags with a key and optional value                                                                                                                                    |
| `custom_properties`       | dictionary | [Custom Properties](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/developers/api/oaa/best-practices/oaa-custom-properties.md) validated against the `custom_property_definition` |
| `operation`               | string     | Operation type for [incremental updates](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/developers/api/oaa/best-practices/incremental-updates.md) (optional)                      |
| `permissions`             | array      | Array of [permission](#permissions) objects                                                                                                                                   |
| `secret_store_vaults`     | array      | Array of [vault](#vaults) objects                                                                                                                                             |
| `identity_to_permissions` | array      | Array of [identity-to-permission](#identity-to-permissions) mappings                                                                                                          |

## Permissions

Permissions define the actions that identities can perform on the secret store and its vaults. Permissions are referenced by name in identity-to-permission bindings.

```json
"permissions": [
  {
    "name": "Read",
    "id": "perm-read",
    "resource": "secrets/*",
    "allow_identity_assume": false
  }
]
```

### Permission Properties

| Field                   | Type       | Description                                                                                                                                              |
| ----------------------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `name`                  | string     | Display name for the permission                                                                                                                          |
| `id`                    | string     | Unique identifier. Defaults to `name` if not provided                                                                                                    |
| `resource`              | string     | Resource path or pattern this permission applies to (optional)                                                                                           |
| `allow_identity_assume` | boolean    | Whether this permission allows identity assumption (optional)                                                                                            |
| `tags`                  | array      | Specify tags with a key and optional value                                                                                                               |
| `custom_properties`     | dictionary | [Custom Properties](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/developers/api/oaa/best-practices/oaa-custom-properties.md)                               |
| `operation`             | string     | Operation type for [incremental updates](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/developers/api/oaa/best-practices/incremental-updates.md) (optional) |

## Vaults

Vaults are logical containers for secrets within the store. Each vault has a type and can contain multiple entries.

```json
"secret_store_vaults": [
  {
    "name": "API Keys",
    "id": "vault-api-keys",
    "vault_type": "kv",
    "description": "API key storage",
    "tags": [],
    "custom_properties": {},
    "entries": []
  }
]
```

### Vault Properties

| Field               | Type       | Description                                                                                                                                                                   |
| ------------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `name`              | string     | Display name for the vault                                                                                                                                                    |
| `id`                | string     | Unique identifier. Defaults to `name` if not provided                                                                                                                         |
| `vault_type`        | string     | Type descriptor for the vault (e.g., `kv`, `transit`, `pki`). **Required**                                                                                                    |
| `description`       | string     | Description shown in Veza entity details (optional)                                                                                                                           |
| `tags`              | array      | Specify tags with a key and optional value                                                                                                                                    |
| `custom_properties` | dictionary | [Custom Properties](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/developers/api/oaa/best-practices/oaa-custom-properties.md) validated against the `custom_property_definition` |
| `operation`         | string     | Operation type for [incremental updates](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/developers/api/oaa/best-practices/incremental-updates.md) (optional)                      |
| `entries`           | array      | Array of [vault entry](#vault-entries) objects                                                                                                                                |

## Vault Entries

Entries represent individual secrets or credentials within a vault. Entries optionally include [identity mappings](#vault-entry-identities) that link the credential to external identities in the authorization graph.

```json
"entries": [
  {
    "name": "Stripe API Key",
    "id": "entry-stripe",
    "description": "Stripe payment processing key",
    "custom_properties": {
      "rotation_enabled": true
    },
    "identities": [
      {
        "type": "OktaUser",
        "external_id": "alice@example.com"
      }
    ]
  }
]
```

### Vault Entry Properties

| Field               | Type       | Description                                                                                                                                                                   |
| ------------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `name`              | string     | Display name for the entry                                                                                                                                                    |
| `id`                | string     | Unique identifier. Defaults to `name` if not provided                                                                                                                         |
| `description`       | string     | Description shown in Veza entity details (optional)                                                                                                                           |
| `tags`              | array      | Specify tags with a key and optional value                                                                                                                                    |
| `custom_properties` | dictionary | [Custom Properties](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/developers/api/oaa/best-practices/oaa-custom-properties.md) validated against the `custom_property_definition` |
| `operation`         | string     | Operation type for [incremental updates](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/developers/api/oaa/best-practices/incremental-updates.md) (optional)                      |
| `identities`        | array      | Array of [identity mapping](#vault-entry-identities) objects (optional)                                                                                                       |
| `expires_at`        | timestamp  | When the credential expires, in RFC 3339 format (optional)                                                                                                                    |
| `credential_type`   | string     | The kind of credential the entry holds, using the GitHub Secret Scanning credential types, such as `AWS_ACCESS_KEY`. Informational only (optional)                            |
| `key_ids`           | array      | Identifiers of the credential, which can match leaked secrets with the same identifier (optional)                                                                             |
| `key_id_kinds`      | array      | A label for each value in `key_ids`. Must have the same number of values as `key_ids` (optional)                                                                              |

To match leaked secrets found by GitHub Secret Scanning to an entry, tag the entry with the credential's identifier. See [Leaked Secret Correlation](#leaked-secret-correlation).

## Leaked Secret Correlation

When [GitHub Secret Scanning](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/integrations/github.md#secret-scanning) finds a leaked credential, Veza connects the leaked secret to the Secret Store entries that hold the same credential, with a **Matches Credential** relationship. An entry matches when it has a tag for the leaked credential's type whose value is the credential's identifier. Tag names and values aren't case-sensitive. Without the tag, an entry matches only through its `key_ids`. Tags are the main way to connect entries. Use `key_ids` when the credential's identifier is already its own field, such as a column of a CSV export, so you don't need to add it as a tag. In a [CSV upload](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/integrations/csv.md#supported-entity-types-and-attributes), `key_ids` is the **Key IDs** attribute, and tags come from the column mapped to **Tags**.

| Leaked credential type                    | Entry tag                    | Tag value                                                                                                               |
| ----------------------------------------- | ---------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| `AWS_ACCESS_KEY`, `AWS_SECRET_ACCESS_KEY` | `aws_key_id`                 | The AWS access key ID. A leaked secret access key matches only when its access key ID is found within a few lines of it |
| `AZURE_STORAGE_ACCOUNT_KEY`               | `azure_storage_account_name` | The Azure storage account name                                                                                          |
| `LDAP_BIND`                               | `bind_cn` or `bind_identity` | The account name only, such as `svc-reports`, not the full distinguished name. Names with spaces can't be matched       |
| `MSSQL_SQL_LOGIN`                         | `sql_login`                  | The SQL Server login                                                                                                    |

Veza checks for matches in this order, and stops at the first step that finds any:

1. Each tag name for the credential type, in the order listed. For `LDAP_BIND`, `bind_cn` is checked before `bind_identity`, so if any entry has a matching `bind_cn` tag, entries with only a matching `bind_identity` tag aren't connected. Use the same tag name on all your entries.
2. Entries whose `key_ids` include the leaked credential's identifier

Veza connects the leaked secret to every entry found in that step. Only entries whose credential GitHub Secret Scanning finds leaked are connected, so most entries in a vault have no **Matches Credential** relationship. Veza correlates again after each GitHub scan and each new Secret Store upload.

## Key IDs Built from Vendor Properties

When `secret_store_type` is `thales_ciphertrust` or `akeyless` and an entry has no `key_ids`, Veza builds `key_ids` from these tags or custom properties of the entry. Names aren't case-sensitive, and `-` matches `_`. If an entry has `key_ids`, Veza uses those values as they are and builds none.

| `secret_store_type`  | Tag or custom property          | Key ID                                                             |
| -------------------- | ------------------------------- | ------------------------------------------------------------------ |
| `thales_ciphertrust` | `kid`                           | The Azure Key Vault key URL, both as is and without its version    |
| `thales_ciphertrust` | `arn`                           | The AWS KMS key ARN                                                |
| `thales_ciphertrust` | `keyid` or `key_id`             | The AWS KMS key ID                                                 |
| `thales_ciphertrust` | `alias`                         | The AWS KMS alias, without the `alias/` prefix                     |
| `akeyless`           | `bind_identity`                 | The LDAP account name                                              |
| `akeyless`           | `bind_dn`                       | The LDAP bind distinguished name                                   |
| `akeyless`           | `bind_identity` and `ldap_host` | `DOMAIN\account`, where `DOMAIN` is the first label of `ldap_host` |
| `akeyless`           | `sql_login`                     | The SQL Server login                                               |
| `akeyless`           | `sql_login` and `mssql_host`    | `host/login`, or `host:port/login` when `mssql_port` is set        |

Key IDs are the identifiers Veza compares with leaked credentials. Only values in `key_ids` equal to an identifier that GitHub Secret Scanning currently reports can match: an AWS access key ID, an Azure storage account name, an LDAP account name, or a SQL Server login. Key IDs built for CipherTrust keys, which are key URLs, ARNs, and aliases, don't match any of these.

## Vault Entry Identities

Identity mappings on vault entries link a credential to external identities in the authorization graph. When the payload is parsed, Veza creates graph edges between the vault entry and the referenced identities. See [Custom Identity Mappings](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/configuration/custom-identity-mappings.md) for more information.

```json
"identities": [
  {
    "type": "OktaUser",
    "external_id": "alice@example.com"
  }
]
```

### Identity Properties

| Field         | Type   | Description                                                                   |
| ------------- | ------ | ----------------------------------------------------------------------------- |
| `type`        | string | The type of external identity (e.g., `OktaUser`, `AzureADUser`, `AWSIAMUser`) |
| `external_id` | string | The external identifier for the identity (e.g., email address, ARN)           |

## Identity to Permissions

Identity-to-permission mappings define which identities have which permissions on which vaults. Each mapping links an identity to one or more permission assignments.

```json
"identity_to_permissions": [
  {
    "identity": "admin-user",
    "identity_type": "local_user",
    "permission_assignments": [
      {
        "vault": ["vault-api-keys", "vault-db-creds"],
        "permissions": ["Read", "Write"]
      }
    ]
  }
]
```

### Identity-to-Permission Properties

| Field                    | Type   | Description                                                       |
| ------------------------ | ------ | ----------------------------------------------------------------- |
| `identity`               | string | The identity ID or name                                           |
| `identity_type`          | string | The type of identity (e.g., `local_user`)                         |
| `permission_assignments` | array  | Array of [permission assignment](#permission-assignments) objects |

### Permission Assignments

Each permission assignment binds a set of permissions to a set of vaults for the parent identity.

| Field         | Type  | Description                                                      |
| ------------- | ----- | ---------------------------------------------------------------- |
| `vault`       | array | List of vault IDs or names that this assignment applies to       |
| `permissions` | array | List of permission names granted to the identity on these vaults |

## Custom Property Definitions

Custom properties allow you to attach additional metadata to secret store entities. Define properties in the `custom_property_definition` object, then set values on individual entities.

```json
"custom_property_definition": {
  "secret_store_properties": {
    "environment": "STRING"
  },
  "permission_properties": {},
  "vault_properties": {
    "encryption_type": "STRING"
  },
  "entry_properties": {
    "rotation_enabled": "BOOLEAN"
  }
}
```

| Scope                     | Description                                   |
| ------------------------- | --------------------------------------------- |
| `secret_store_properties` | Custom properties for the secret store entity |
| `permission_properties`   | Custom properties for permission entities     |
| `vault_properties`        | Custom properties for vault entities          |
| `entry_properties`        | Custom properties for vault entry entities    |

Property values must match their declared type. Supported types are described in [Custom Properties](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/developers/api/oaa/best-practices/oaa-custom-properties.md).

## Incremental Updates

After the initial metadata push (which must contain the full payload), you can modify, add, or remove the secret store, permissions, vaults, entries, and identity assignments without resubmitting other entities. An [incremental update](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/developers/api/oaa/best-practices/incremental-updates.md) is enabled by setting `"incremental_change": true` in the push payload, and specifying the update `operation` for each entity to change.

## Creating and Updating a Secret Store

To create the OAA provider and push data:

1. **Create the provider** with the `secret_store` template type:

   ```bash
   curl -X POST "https://{VEZA_URL}/api/v1/providers/custom" \
   -H "authorization: Bearer {API_KEY}" \
   -H "Content-Type: application/json" \
   --data '{"name":"MySecretStore","custom_template":"secret_store"}'
   ```
2. **Create a data source** on the provider:

   ```bash
   curl -X POST "https://{VEZA_URL}/api/v1/providers/custom/{PROVIDER_ID}/datasources" \
   -H "authorization: Bearer {API_KEY}" \
   -H "Content-Type: application/json" \
   --data '{"name":"my_secret_store_source"}'
   ```
3. **Push the payload** to the data source:

   ```bash
   curl -X POST "https://{VEZA_URL}/api/v1/providers/custom/{PROVIDER_ID}/datasources/{DATASOURCE_ID}:push" \
   -H "authorization: Bearer {API_KEY}" \
   -H "Content-Type: application/json" \
   --data "{\"json_data\": $(jq -Rs . payload.json)}"
   ```

   The push endpoint requires the payload as a JSON-encoded string in the `json_data` field. `jq -Rs .` reads `payload.json` and escapes it as a JSON string.

Updates follow the same push workflow. Veza processes the full payload and updates the Authorization Graph accordingly.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.veza.com/4yItIzMvkpAvMVFAamTf/developers/api/oaa/templates/secret-store-template.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
