Controlling Access to Workload Secrets Vault

This feature is currently available only to customers participating in a Private Preview. If you'd like to participate and be among the first to try this feature, ask our support or account team for details.

Workload Secrets Vault checks two things on every request:

  • A permission. One of the caller's Delinea Platform roles must hold the permission for the operation, such as Read Secret. Permissions say what kinds of operations an identity can perform at all.

  • A policy. A Workload Secrets Vault policy must allow the action on the specific secret, key, share, or lease, and no policy may deny it. Policies say where an identity can perform those operations.

Both checks must pass. A role without a policy, or a policy without a role, gets the same 403 response. Workload Secrets Vault must also be enabled for your tenant.

How Access Is Decided

  • Deny by default. There's no default policy. In a new tenant, nobody can read or write secrets until a policy allows it, including users with the Platform Admin role.

  • Deny wins. A request is allowed when at least one policy allows it and no policy denies it.

  • Identities come from the Delinea Platform. Policies name Delinea Platform users, service users, and groups. Membership in nested groups counts.

  • Fail closed. If the service can't evaluate policies or look up group membership, it denies the request or treats the caller as having no group memberships.

Some operations are controlled by permissions alone:

  • Managing policies. Anyone with the Authorization Policy permissions can create, change, and delete every policy in the tenant.

  • Managed certificate authorities. Creating and using managed CAs and templates isn't controlled by policies. See Managed Certificate Authorities.

  • Redeeming a secret share. Any signed-in identity in the tenant that holds the share's token can redeem it. See Sharing Secrets with Secret Share.

Workload Secrets Vault Permissions

Add these permissions to Delinea Platform roles under Access > Roles. The built-in Platform Admin role includes all of them. The built-in Platform User role doesn't include them. For how to create a role, see Roles and Permissions.

Name Permission Allows
Create Secret delinea.workloadsecrets/secret/create Create secrets and write new versions
Read Secret delinea.workloadsecrets/secret/read Read, describe, and list secrets, mint credentials from dynamic secrets, and list and look up leases
Update Secret delinea.workloadsecrets/secret/update Roll back secrets and restore deleted versions
Delete Secret delinea.workloadsecrets/secret/delete Delete and destroy versions, purge secrets, and revoke leases
Create Key delinea.workloadsecrets/key/create Create encryption keys and import your own keys
Read Key delinea.workloadsecrets/key/read Read key metadata and get the BYOK wrapping key
Update Key delinea.workloadsecrets/key/update Restore deleted keys, and replace the key material of your own (BYOK) keys with a newly imported key. See Replacing Key Material.
Delete Key delinea.workloadsecrets/key/delete Delete keys
Encrypt Data delinea.workloadsecrets/key/encrypt Encrypt data with a key
Decrypt Data delinea.workloadsecrets/key/decrypt Decrypt data with a key
Manage Key delinea.workloadsecrets/key/manage Rotate keys and rewrap ciphertext
Create PKI Certificate delinea.workloadsecrets/pki/create Issue certificates from managed CAs and templates, and generate certificates with your own CA
Update PKI Certificate delinea.workloadsecrets/pki/update Revoke certificates from managed CAs, and issue SSH certificates with your own CA
Manage PKI Certificate Authority delinea.workloadsecrets/pki/manage Create, view, and delete managed CAs, templates, and certificate records; update templates; list and validate certificates; get CRLs; register or generate your own root CA
Sign Certificate delinea.workloadsecrets/pki/sign Sign certificate signing requests with your own CA
Create Secret Share delinea.workloadsecrets/secretshare/create Create secret shares
Delete Secret Share delinea.workloadsecrets/secretshare/delete Revoke secret shares you created
Create Authorization Policy delinea.workloadsecrets/policy/create Create policies
Read Authorization Policy delinea.workloadsecrets/policy/read List and read policies
Update Authorization Policy delinea.workloadsecrets/policy/update Change policies
Delete Authorization Policy delinea.workloadsecrets/policy/delete Delete policies

Roles created earlier in the preview may use the earlier permission IDs, which have the form delinea.dsv/<resource>/<action>. For now, Workload Secrets Vault accepts either form. Use the delinea.workloadsecrets/… IDs for new roles.

The Authorization Policy permissions apply to every policy in the tenant. Anyone who holds them can grant themselves access to any secret. Give them only to a small group of administrators.

Setting Up Access for a Team

The simplest pattern that scales is one group per team. The group carries both the team's role and the team's policy, so adding a person or service user to the group grants both, and removing them takes both away.

  1. Create a group for the team, for example workload-secrets-payments. See Managing Groups.

  2. Create a role with the Workload Secrets Vault permissions the team needs, but without the four Authorization Policy permissions. Assign the role to the group.

  3. Create a policy that allows the group to act on the team's own paths. Replace <group-id> with the group's ID (see Finding User and Group IDs):

    Copy
    delinea --json workload policy create \
      --name workload-secrets-payments \
      --description "Payments team: every action on its own paths" \
      --status enabled \
      --effect allow \
      --actions '["create", "read", "update", "delete", "list", "destroy", "restore",
                 "encrypt", "decrypt", "rotate", "rewrap", "share", "revoke"]' \
      --subjects '["group:<group-id>"]' \
      --targets '["secret/payments/*", "cryptokey/payments/*", "secretshare/", "secretshare/*"]'

    secret/payments/* covers every secret under payments/, and also lets the group list payments. A wildcard target doesn't match the path it's under, so add secret/payments only if you store a secret at payments itself. For the target forms of each resource type, see Targets.

  4. Add the team's users and service users to the group.

  5. Create a separate group for policy administrators, with a role that holds only the four Authorization Policy permissions.

Giving a Pipeline or Application Access

Pipelines and applications sign in as Delinea Platform service users. A service user has no permissions until you give it a role, either directly or through a group.

  1. Create a service user. See Service Users.

  2. Give it only what it needs. For example, a deployment pipeline that only reads one secret needs a role with Read Secret and a policy like this one:

    Copy
    {
      "name": "orders-deploy-read",
      "effect": "allow",
      "actions": ["read"],
      "subjects": ["upn:orders-deploy@example.com"],
      "targets": ["secret/payments/prod/orders-db"]
    }
  3. Sign in as the service user from the pipeline. See Signing In as a Service User or Authenticating to the API.

To let a process write a secret it must never read, such as a rotation job, give it a policy with create and update only.

Finding User and Group IDs

  • Users and service users. In a policy, you can name a user by login name (upn:<login-name>) or email address (email:<address>) instead of by ID. Workload Secrets Vault looks up the user once, when you save the policy, and stores the user's ID. If the account is later deleted and created again, it gets a new ID, so update the policy.

  • Groups. Groups must be named by ID: group:<group-id>. To find a group's ID, open the group in the Delinea Platform and copy the ID from the page URL. User pages show the user's ID in the URL the same way, for example .../users/<user-id>/overview.

The service doesn't check that the ID in a user: or group: subject exists. A subject that names a group by its name instead of its ID, or that has a mistyped ID, saves without an error but never matches anyone, so the requests it should allow get 403. For details, see Subjects.

How Long Changes Take

Access changes aren't instant. Allow for these delays before you test a change:

  • Policy changes: usually right away, but up to 5 minutes

  • Role and permission changes: up to 1 minute

  • Group membership changes: up to 5 minutes

Troubleshooting Access

A denied request returns 403 with no response body, and the response doesn't say which check failed. Check these causes in order:

  1. Workload Secrets Vault isn't enabled for your tenant. Every request returns 403.

  2. None of the caller's roles holds the permission for the operation. Check the caller's roles, including the roles of its groups.

  3. No enabled policy allows the action on the target, or a policy denies it. Check that the target form matches the resource type and that wildcard targets also cover the parent path where needed.

  4. The change was made too recently. See How Long Changes Take.

  5. For dynamic secrets only: writing, restoring, or rolling back a dynamic secret also needs read on its base secret.

A 503 response with the error code policy_decision_unavailable means the service couldn't evaluate policies, so it denied the request. Retry after the number of seconds in the Retry-After header.