FIELD NOTES / WHITEPAPER 002

Your AI Agent Has Tools.
Who Gave It Permission?

HashiCorp Vault + Okta. A technical architecture for workload identity, bounded authority, and proactive defense in the agentic era.

By · Engineering field notes · November 3, 2026

IDENTITYSECRETSTOOL CONTROLDETECTION

01 / Bound the agent before expanding its reach.

An AI agent turns generated text into operations: retrieving customer records, running diagnostics, opening pull requests, or invoking a production API. A compromised prompt can now become a privileged request. The engineering challenge is to make the action boundary deterministic even when the planner is probabilistic.

Consider an operations assistant that reads incident records and proposes remediation. It needs tenant-scoped read access and a separately approved deployment tool. It does not need a production administrator credential in its context window. Treat retrieved documents, tool descriptions, model output, and agent-to-agent messages as untrusted inputs to an ordinary security boundary.

The design invariant

Effective authority = authenticated principal ∩ approved delegation ∩ workload permissions ∩ resource policy ∩ current execution constraints. An empty intersection denies the action. No prompt, memory entry, or tool response can enlarge that intersection.

This reference design uses Okta for identity, Vault for credential lifecycle, and a trusted tool gateway for application authorization. The examples are configuration fragments and design patterns, not a deployable platform or evidence of a customer implementation. Validate them against pinned product versions, your licensing, and your own threat model.

Threats and the boundary that must hold
Failure modeEnforced control
Prompt injection requests a privileged toolAn external policy decision rejects unapproved actions regardless of model instructions.
Agent changes tenant or resource identifiersResolve tenancy from trusted identity and delegation records; enforce resource ownership on the server.
A credential leaks from a workerShort lifetimes, restricted roles, egress controls, rotation, and targeted containment limit usable authority.
A queued request outlives user accessRecheck entitlement, grant expiry, and policy immediately before execution.
A compromised tool returns executable instructionsTreat results as data; apply the same authorization process to every subsequent action.

02 / Separate three trust boundaries.

Human identity: who requested the task, and which authentication and entitlement checks apply? Workload identity: which service is running, in which environment? Execution authority: may this service perform this exact operation on this resource for this principal, now?

REFERENCE ARCHITECTURE / CONTROL + DATA PLANES

HUMAN TRUST

User → Okta → API

Sign-in, access token, tenant lookup, task grant

WORKLOAD TRUST

Executor → Vault

Projected Kubernetes JWT → TokenReview → scoped Vault token

EXECUTION BOUNDARY

Planner → Tool gateway → Isolated executor

Typed proposal → identity + resource + approval checks → permitted operation

CREDENTIAL PATH

Vault → Executor → Resource

Short-lived database credential; secrets stay outside model context

EVIDENCE PATH

Okta + Vault + Gateway → SIEM

Identity events, credential access, decisions, and execution outcomes

Figure 1. The planner proposes operations. The gateway authorizes them. A separate executor holds resource credentials. These are logical boundaries; separate Pods and network policy make the isolation enforceable.

Give the planner no general network route to databases, Vault, or arbitrary tools. Allow it to reach the model endpoint through a controlled provider proxy and the gateway through an authenticated channel. Separate executors by environment and privilege class. A read-only incident tool and a deployment tool should not share one service account or credential pool.

Enforce egress with a compatible network implementation and, where hostname rules are needed, an egress proxy or gateway. Protect metadata endpoints, internal address ranges, redirects, and DNS resolution from SSRF. A container running arbitrary agent-generated code belongs in a separately hardened execution environment; sharing a Pod with a credentialed sidecar is not a sufficient isolation boundary.

03 / Use Okta to establish identity, then check authority.

For your own tool API, configure an Okta custom authorization server with the intended audience, scopes, and access policies. Okta org authorization server access tokens target Okta resources and should not be treated as your API’s authorization contract. Custom authorization servers require the applicable API Access Management entitlement in production. [1]

Use Authorization Code with PKCE for an interactive client. A backend acting as itself uses an appropriately configured machine-to-machine flow. Client credentials represent the application, not a human delegation. Store a separate server-side grant for user-initiated background work, including subject, tenant, permitted tools, resource constraints, expiry, and approval provenance. Never infer user authority from a service token alone.

Verify the token at the resource server

Validate the signature with the configured issuer’s JWKS, pin issuer and audience, restrict algorithms, and enforce time validity and required scopes. An ID token is for client sign-in; the API expects an access token. Cache keys with bounded refresh and reject unverifiable tokens. [2]

TypeScript / illustrative access-token verification with jose

import { createRemoteJWKSet, jwtVerify } from "jose";

// Trusted configuration, never a URL from the request/token.
const issuer = "https://example.okta.com/oauth2/your-server-id";
const jwks = createRemoteJWKSet(new URL(issuer + "/v1/keys"));

export async function verifyToolAccess(token: string) {
  const { payload } = await jwtVerify(token, jwks, {
    issuer,
    audience: "api://ai-tools",
    algorithms: ["RS256"],
    requiredClaims: ["sub", "exp", "iat"],
    clockTolerance: 5,
  });
  if (typeof payload.sub !== "string" || !payload.sub) {
    throw new Error("invalid subject");
  }
  if (!Array.isArray(payload.scp) ||
      !payload.scp.includes("tools.invoke")) {
    throw new Error("missing scope");
  }
  return { issuer, subject: payload.sub };
  // Next: tenant, delegation, tool, and resource checks.
}

Install and pin a reviewed jose version in the consuming service. This function covers token verification only. Its caller must safely parse the Authorization header, enforce request limits, and return generic 401/403 responses without logging the bearer token. Tenant membership, client restrictions, revocation handling, and application policy remain mandatory downstream checks. [15]

Give operators a separate route into Vault

For people administering Vault, configure Vault’s OIDC auth method against Okta, with exact callback URLs and controlled group-to-policy mappings. Use Okta sign-on policy for strong authentication. Keep administrative access distinct from runtime service accounts. A change in group membership must be paired with a plan for already-issued Vault tokens; signing out of Okta is not a universal credential kill switch. [3]

04 / Bootstrap workload trust without a shared secret.

Use Kubernetes authentication for the trusted incident-read executor. Vault validates the service account JWT using the Kubernetes TokenReview API. Bind the role to one namespace and one service account, with the expected audience. Provision the auth mount, TLS trust, API endpoint, and reviewer permissions first. In-cluster Vault can use its own service account as reviewer; the reviewer needs permission to create TokenReviews. [4]

YAML / executor Pod-spec fragment

# Merge into the executor Deployment's spec.template.spec.
serviceAccountName: incident-reader
automountServiceAccountToken: false
containers:
  - name: executor
    image: registry.example.com/incident-reader:REPLACE_WITH_DIGEST
    volumeMounts:
      - name: vault-identity
        mountPath: /var/run/vault-identity
        readOnly: true
volumes:
  - name: vault-identity
    projected:
      sources:
        - serviceAccountToken:
            path: token
            audience: vault
            expirationSeconds: 600

Create the service account in ai-prod; use an immutable image digest in the real manifest. Mount this token only in the credentialed executor. Re-read the projected file when authenticating because Kubernetes rotates it. The requested projection lifetime is not the Vault token lifetime. Configure and test reviewer authentication separately from the workload’s vault audience.

HCL / incident-reader.hcl

# Only the database role this executor requires.
path "database/creds/incident-reader" {
  capabilities = ["read"]
}

Shell / administrator setup with existing authenticated Vault access

vault policy write incident-reader incident-reader.hcl
vault write auth/kubernetes/role/incident-reader \
  bound_service_account_names=incident-reader \
  bound_service_account_namespaces=ai-prod \
  audience=vault \
  token_policies=incident-reader \
  token_no_default_policy=true \
  token_type=service \
  token_ttl=5m \
  token_max_ttl=15m \
  token_explicit_max_ttl=15m

The executor submits the projected JWT and role name to auth/kubernetes/login over validated TLS, keeps the returned token private, and reauthenticates before expiry with jitter and bounded retries. This minimal policy intentionally omits self-renewal permissions; the design uses reauthentication. Role and mount limits may shorten issued TTLs. Inspect the returned lease duration rather than assuming the requested value. [5]

Lock down who can create Pods using this service account. Namespace membership alone is insufficient if an attacker can launch another Pod with the same identity. Apply RBAC, admission controls, immutable image policies, and separate deployment permissions. A valid identity proves a workload belongs to a configured trust domain; it does not prove its current behavior is safe.

05 / Give credentials a purpose and an expiry.

Dynamic database credentials let the executor obtain a dedicated username and password with a lease instead of sharing a permanent application password. Configure the PostgreSQL connection and its management account through a protected provisioning process. Restrict that connection’s allowed roles. The following role assumes an existing incident_reader database role with SELECT only on approved views. [6]

JSON / database-role.json for database/roles/incident-reader

{
  "db_name": "incidents-postgres",
  "creation_statements": [
    "CREATE ROLE \"{{name}}\" WITH LOGIN PASSWORD '{{password}}' VALID UNTIL '{{expiration}}'; GRANT incident_reader TO \"{{name}}\";"
  ],
  "default_ttl": "5m",
  "max_ttl": "15m"
}

Apply with vault write database/roles/incident-reader @database-role.json. Review the plugin’s default revocation behavior and supply tested custom statements if required by your database permissions. The generated role must not own objects or inherit broader roles. Read-only access still needs tenant isolation: use per-tenant credentials or a trusted query service with enforced tenant predicates or carefully designed row-level security. Never accept arbitrary SQL from the planner.

CREDENTIAL LIFECYCLE / NO SECRET IN THE PROMPT

  1. 01
    Authenticate the executorProjected service account JWT → bounded Vault service token
  2. 02
    Authorize the operationGateway checks task grant, resource, tenant, and current policy
  3. 03
    Acquire and use a leaseExecutor reads database/creds/incident-reader; opens a restricted connection
  4. 04
    Retire access and verifyClose connections, revoke through a trusted cleanup service, confirm downstream effect
Figure 2. The Vault token, database lease, user access token, and task grant have separate lifetimes. Ending one does not automatically terminate every other session.

Track lease ownership outside the model. A cleanup controller with narrowly scoped revocation permission can retire a lease when work finishes; expiry is the backstop. Revocation depends on Vault reaching the target system and the plugin completing its work. Expiry or revocation of the issuing Vault service token also triggers revocation of its associated dynamic secrets; reauthenticating does not transfer old leases. Budget work against the shortest remaining lifetime. [7]

PostgreSQL password expiry governs password authentication, not the lifetime of an already-authenticated session. Bound connection lifetime, drain pools, and test targeted session termination during incidents. Successful Vault revocation processing and confirmed loss of downstream access are separate pieces of evidence. [16]

For model providers that only issue static API keys, Vault KV provides controlled storage, not dynamic provider-side credentials. Use a server-side provider proxy, separate projects and budgets, scheduled rotation, and verified upstream revocation. Never insert keys into model messages, tool arguments, embeddings, browser storage, exception reports, or tracing payloads.

06 / Authorize every tool call at execution time.

The tool gateway accepts a typed operation such as incident.read, not a shell command, arbitrary URL, or SQL string. Resolve its endpoint from an approved registry. Authenticate the calling workload, load the task grant from trusted storage, validate argument shape and size, and check resource ownership. The planner may supply a resource ID; it may not choose its own tenant or permissions.

Pseudocode / policy gate before dispatch

execute(proposal, authenticated_workload):
  tool = registry.require_exact(proposal.tool, proposal.version)
  args = tool.schema.validate(proposal.arguments)
  grant = grants.load(proposal.task_id)  # trusted store

  deny_unless(grant.is_active(now))
  deny_unless(grant.executor == authenticated_workload)
  deny_unless(entitlements.current(grant.subject, grant.tenant))
  deny_unless(tool.name in grant.allowed_tools)
  resource = resources.load_authoritative(args.resource_id)
  deny_unless(resource.tenant == grant.tenant)
  deny_unless(policy.allows(grant, tool, resource, args))

  if tool.has_side_effects:
    approval = approvals.require_valid(grant, tool, args)
    # Bind to canonical argument hash + resource version.
    # Consume once atomically with the execution reservation.

  record = executions.reserve_once(grant.id, proposal.operation_id)
  return tool.dispatch_with_deadline(record, resource, args)
  # Implement downstream idempotency; reconcile unknown outcomes.

A signed approval should bind the subject, tenant, tool version, canonical argument hash, resource version, nonce, and expiry. Changing the target or parameters invalidates it. Record approval consumption and execution reservation atomically. For external side effects, use downstream idempotency keys and reconcile ambiguous timeouts; a local transaction cannot make a remote deployment exactly-once.

For MCP, treat the server as a resource server with its own audience and per-tool authorization. Do not pass an inbound token through to an unrelated downstream service. Use a separately authorized credential or supported token-exchange flow. Treat session identifiers as routing state, not standalone proof of authorization, and harden URL handling against SSRF. [10]

Multi-agent delegation must attenuate authority. A child task receives a subset of its parent’s tools, resources, time budget, and spending allowance. Keep a server-verifiable parent chain; deny cyclic delegation and excessive depth. Persist policy and tool versions with the execution record so investigators can reconstruct why a request was permitted.

07 / Detect loss of control before customer impact.

Collect three independent evidence streams: Okta identity events, Vault credential operations, and gateway authorization and execution records. Vault auditing must be explicitly enabled. Use multiple independent audit devices and monitor their health: Vault requires a successful audit write to at least one enabled device for audited requests to proceed. Preserve default sensitive-value protections and restrict audit access. [8]

Export Okta System Log events into the SIEM with a least-privilege collector. It provides near-real-time evidence, not a synchronous policy decision. Follow pagination, persist collection state, deduplicate event IDs, and monitor ingestion lag and rate limiting. Use gateway events to capture the application decisions Okta cannot observe. [9]

Generate a trusted execution ID at ingress and carry it through the gateway, executor, and result store. Correlate it with workload identity, subject reference, tenant reference, policy version, tool version, decision reason, Vault request ID where available, and a protected lease reference. Do not assume raw token accessors or secrets can be joined across audit devices: Vault audit HMACs are device-specific. Keep raw prompts and credentials out of security telemetry.

Detection signals and initial operational actions
SignalInterpretation and response
Repeated cross-tenant or forbidden-tool attemptsCorrelate by workload and task; quarantine the affected task when confidence is high. Page for confirmed boundary violations.
Credential issuance above the workload baselineCheck deployment churn, retry storms, and unexpected identities before treating the increase as compromise.
Revocation failure or persistent database sessionsStop new work, inspect target connectivity, and verify credential and session cleanup independently.
Audit or identity ingestion lagTreat missing visibility as degraded control. Page the pipeline owner and restrict high-risk execution if the agreed threshold is exceeded.
Okta policy/client changes followed by unusual tool useCorrelate change history with application decisions; investigate the new authority and affected principals.

Alert on failed controls and missing telemetry

The following are custom metrics you must implement, not built-in Vault or Okta metric names. Export one pipeline heartbeat timestamp per environment after a successful collector poll, including empty polls. Export the revocation-failure counter continuously, initialized at zero. Keep labels low-cardinality; store user IDs, task IDs, and lease IDs in restricted logs.

YAML / illustrative Prometheus rules

groups:
  - name: agent-security
    rules:
      - alert: AgentRevocationFailed
        expr: sum by (environment) (increase(agent_lease_revocation_failures_total[5m])) > 0
        for: 1m
        labels:
          severity: critical
          team: platform-security
        annotations:
          summary: "Credential revocation requires investigation"
      - alert: AgentIdentityPipelineStale
        expr: time() - agent_identity_pipeline_last_success_timestamp_seconds{environment="production"} > 300
        for: 2m
        labels:
          severity: critical
          team: platform-security
        annotations:
          summary: "Identity collector has not completed a recent poll"
      - alert: AgentIdentityPipelineMissing
        expr: absent_over_time(agent_identity_pipeline_last_success_timestamp_seconds{environment="production"}[5m])
        for: 1m
        labels:
          severity: critical
          team: platform-security
        annotations:
          summary: "Identity collector heartbeat series is missing"

The for duration adds persistence before an alert fires. Route through Alertmanager to the agreed on-call rotation with a runbook and escalation path. These starting thresholds are illustrative: tune against collection cadence and incident objectives, test rules with promtool, and exercise a real delivery to the on-call channel. Monitor per-collector scrape health separately; one healthy replica must not hide another failed collector. [11]

PROACTIVE DEFENSE / CLOSE THE LOOP

  1. 01
    ObserveOkta + Vault + tool gateway → durable security event pipeline
  2. 02
    DetectCorrelate policy changes, denied actions, credential anomalies, and telemetry gaps
  3. 03
    ContainScoped task quarantine → block reauthentication → revoke affected credentials
  4. 04
    Verify and improveProve old access fails → restore narrowly → add a regression scenario
Figure 3. Automate bounded, reversible responses where confidence is high. Broad identity disablement or production shutdown follows an approved incident procedure.

08 / Practice containment while the system is healthy.

A short TTL reduces exposure but does not define the entire containment time. Measure detection delay, event delivery, policy propagation, cached authorization, downstream revocation, and live-session termination. Disabling a user or OAuth client does not guarantee that every already-issued JWT fails local signature validation immediately. High-risk execution needs a current grant or revocation check at the gateway.

  1. Freeze the affected execution boundary. Mark the task, grant, or executor denied in trusted policy storage and stop dispatching new operations. Preserve the decision and execution records.
  2. Block credential reacquisition. Quarantine the compromised workload and remove its ability to authenticate before revoking issued credentials; otherwise it can request replacements.
  3. Revoke the relevant access. Use the authorized response service to revoke identified Vault tokens and leases, rotate exposed static provider keys upstream, and terminate affected resource sessions where required.
  4. Prove the result. Attempt access with the old credential in a controlled check, verify new login is denied, and reconcile in-flight side effects. A successful revocation API response alone is insufficient.
  5. Restore deliberately. Rebuild the executor from a reviewed image, fix the policy gap, issue new grants, and replay only operations whose outcomes are known or safely idempotent.

Build a continuous verification program

In CI, test wrong issuer and audience, expired tokens, missing scopes, forged tenant IDs, unauthorized tools, replayed approvals, and stale grants. Add malicious retrieved documents to the evaluation set and assert that prohibited tool calls are denied even when the model proposes them. Evaluate the policy outcome, not just the quality of the model’s refusal text.

Run a non-destructive production canary with a dedicated identity and synthetic resource. Confirm expected access succeeds and forbidden access fails, then retire its lease and verify cleanup. Review dormant identities, widening policies, wildcard paths, unowned tools, and excessive credential lifetimes on a scheduled basis.

Rehearse Vault unavailability, a failed audit sink, Okta or JWKS reachability loss, clock skew, database revocation failure, and collector lag in staging. New privileged work fails closed when authorization cannot be established. Existing operations may finish only within a documented, still-valid permission and credential window; never fall back to a permanent emergency key embedded in the application.

Acceptance criteria, agreed before launch

Every tool has an owner and explicit policy. Every privileged action has a traceable grant. Secret material stays outside model context. Revocation has been tested at the resource. Alerts reach a named responder. The team can demonstrate containment and recovery within its own measured objectives.

09 / Codify the workflow with a Kubernetes operator.

Move the repeatable lifecycle into a controller: declare the intended access, reconcile approved configuration, observe drift, and retire authority when work ends. Kubernetes operators combine custom resources with controllers that continuously work toward desired state. This is a useful foundation for the workflow, provided reconciliation is never mistaken for an instantaneous authorization decision. [17]

Design a namespaced AgentAccessGrant API for a bounded task. Keep its definition declarative: executor identity, a centrally managed access profile, permitted tools, approval reference, and maximum duration. The operator resolves the profile into approved Vault roles and gateway policy. Do not let a tenant submit arbitrary Vault ACL text, Okta admin scopes, or another namespace’s service account.

YAML / proposed custom resource, not a built-in or vendor API

apiVersion: security.seismicparadise.com/v1alpha1
kind: AgentAccessGrant
metadata:
  name: incident-triage-042
  namespace: ai-prod
spec:
  executorServiceAccount: incident-reader
  accessProfileRef:
    name: incident-read-production
  delegationRef:
    name: approved-task-042
  tools:
    - name: incident.read
      version: v1
  resourceSelector:
    incidentId: INC-042
  maxDuration: 15m
  suspend: false

This object is an API design example. It requires a CRD, structural schema, validation, RBAC, and controller implementation before it can be applied. The approval service owns delegationRef and binds the authenticated subject, tenant, workload, resource, tool set, and expiry to an immutable approval. Tenant identity is resolved from that trusted record. An object name or Kubernetes label is not proof of approval.

Make provisioning idempotent and authority short-lived

Use the custom resource UID as the stable external ownership key. Persist the first activation time and absolute expiry in a durable grant ledger; never extend them merely because the controller restarts or receives another event. Protect identity and privilege fields against mutation after activation. Broader access requires a new approval. Admission validation rejects invalid shapes and bounds, while the controller independently verifies authorization before changing any external system.

OPERATOR RECONCILIATION / DECLARE → VERIFY → CONVERGE

  1. 01
    Declare and validateAgentAccessGrant → schema + RBAC + trusted approval lookup
  2. 02
    Reconcile approved accessController → bounded Vault configuration + gateway grant ledger
  3. 03
    Execute through the gatewayCurrent identity + grant expiry + resource policy checked on every call
  4. 04
    Expire, suspend, or deleteDeny new dispatch → retire owned credentials → verify cleanup → report status
Figure 4. The operator manages lifecycle and desired state. The gateway remains the enforcement point for each action, including while the operator is unavailable.

Pseudocode / idempotent reconciliation with a cleanup finalizer

reconcile(key):
  grant = kubernetes.get(key)
  if grant is missing:
    return  # orphan sweeper separately checks the external ledger

  if grant.deletionTimestamp:
    gateway.deny_and_fence(grant.uid)  # prevent late provisioning
    cleanup.revoke_owned_access(grant.uid)  # retry-safe
    cleanup.verify_downstream(grant.uid)
    kubernetes.remove_finalizer(grant)
    return

  ensure_finalizer_persisted(grant)  # before external side effects
  approved = approvals.verify_exact_spec(grant)
  ledger = grants.load_or_create_once(grant.uid, approved)

  if grant.spec.suspend or ledger.expired or not approved.active:
    gateway.deny_and_fence(grant.uid)
    cleanup.revoke_owned_access(grant.uid)
    cleanup.verify_downstream(grant.uid)
    status.set_inactive(grant, observedGeneration=grant.generation)
    return

  bindings.ensure_approved_profile(grant.uid, approved)
  gateway.upsert_bounded_grant(grant.uid, approved, ledger.expiresAt)
  status.set_ready(grant, observedGeneration=grant.generation)
  requeue_before(ledger.expiresAt, with_jitter=True)
  # Any dependency error: publish a sanitized condition, retry
  # with bounded backoff, and never mark unverified access Ready.

A real reconciler needs context deadlines, optimistic concurrency, conflict retries, leader election where appropriate, and idempotent external operations. A UID-scoped denial fence in the ledger must prevent a stale provisioning attempt from reactivating a revoked grant. Recheck approval and generation before activation. When approval cannot be verified, stop activation and apply the documented fail-closed policy; never silently extend existing authority.

Register the finalizer before creating external access. On deletion, retain it until cleanup is confirmed. Kubernetes keeps an object with a deletion timestamp while finalizers remain; finalizers are coordination hooks, not proof that credentials were revoked. If Vault or a target resource is unavailable, retry and surface the blocked cleanup. An audited emergency procedure must reconcile external state before anyone removes the finalizer manually. [18][19]

Keep secrets out of the control-plane record

Put no bearer tokens, database passwords, raw prompts, or secret values in CR spec, status, annotations, Kubernetes Events, or controller logs. Publish conditions such as Ready, AccessDenied, and CleanupPending, with reason, transition time, and observed generation. Keep sensitive lease references and issuance history in a restricted ledger. A stale Ready=True condition is operational information, never an authorization token.

The operator should not need Vault root access or general Okta administration. Provision foundational Okta applications, authorization servers, and Vault auth mounts through a separately reviewed platform workflow. Give the runtime operator only the permissions needed for its owned profiles and cleanup paths. Executors obtain credentials through workload identity after the gateway authorizes the operation; the operator does not need to carry every task’s secret.

Compose with existing operators deliberately

HashiCorp’s Vault Secrets Operator can synchronize Vault-backed secrets into Kubernetes Secrets. It can serve workloads that intentionally consume Kubernetes Secrets, but it does not implement this proposed task-grant API or your application’s tool authorization. Synchronizing credentials creates another storage and access surface: restrict Secret readers, protect etcd, and test application reload and rotation behavior. Prefer direct executor retrieval when keeping task credentials out of Kubernetes Secrets is a requirement. [20]

Make the controller observable, and test its absence

Alert on reconcile error rate, oldest pending grant, cleanup age, expired grants still marked active, queue depth, and missing controller heartbeat. Use custom aggregate metrics without task or subject labels. A scheduled orphan sweep should compare ledger entries with live resource UIDs and retire only access owned by this controller. It must never delete shared Vault roles or unrelated credentials.

Test duplicate events, restart after an external write but before status persistence, deletion during provisioning, expired approval, rejected privilege expansion, Okta rate limiting, Vault failure, and a stuck finalizer. Kill the controller during a test task and verify that the gateway still rejects expired grants using its own clock and trusted ledger. Lease TTLs and gateway expiry must remain effective even when no reconciliation occurs.

10 / The frontier is delegated authority you can inspect.

Okta Cross App Access (XAA) provides an identity-governed approach to app-to-app and agent access. Evaluate it when supported by the requesting and resource applications; verify the applicable flow, connector support, and entitlements. It is not a universal switch that turns an ordinary client-credentials token into user delegation. [12]

Vault Enterprise agentic IAM evaluates Rich Authorization Requests (RAR) claims in OAuth JWT access tokens. Its on-behalf-of model intersects human baseline policies, agent ceiling policies, and per-session claims. That is a concrete mechanism for reducing delegated authority inside Vault, subject to the appropriate Enterprise license or HCP Vault Dedicated configuration. It still needs a compatible authorization authority and application-level controls for downstream actions. [13]

The Vault MCP server is a separate integration. Its documentation identifies beta status, discourages production use of beta functionality, and warns that some queries can expose Vault secrets to MCP clients and models. It is therefore not a drop-in replacement for this paper’s credential-isolated executor. The portable architecture above does not depend on either agentic IAM or the Vault MCP server. [14]

The next level of agent autonomy needs stronger evidence: which principal delegated the work, which policy constrained it, which credential performed it, what actually changed, and how quickly the authority can be withdrawn. Vault and Okta provide important building blocks. The platform’s execution boundary makes those controls meaningful for each action.

FROM IDENTITY TO ENFORCED BOUNDARIES

Make agent authority reviewable.

A Seismic Paradise Ops architecture review can map your human and workload identities, inspect Vault and Okta integration points, assess tool authorization, and define detection and recovery exercises for your environment.

Discuss your architecture ↗

Technical references

Primary documentation consulted November 3, 2026. Examples and architecture recommendations are illustrative; product capabilities and entitlements should be checked for your deployment.

  1. Okta authorization servers ↗
  2. Okta access token validation ↗
  3. Vault OIDC with Okta ↗
  4. Vault Kubernetes authentication ↗
  5. Vault Kubernetes role API ↗
  6. Vault PostgreSQL plugin ↗
  7. Vault leases and revocation ↗
  8. Vault audit devices ↗
  9. Okta System Log API ↗
  10. MCP security best practices ↗
  11. Prometheus alerting rules ↗
  12. Okta Cross App Access ↗
  13. Vault agentic IAM ↗
  14. Vault MCP server ↗
  15. jose JWT verification API ↗
  16. PostgreSQL role and password expiry ↗
  17. Kubernetes operator pattern ↗
  18. Kubernetes finalizers ↗
  19. Kubebuilder finalizer reconciliation ↗
  20. HashiCorp Vault Secrets Operator ↗