Docs

Access requests

An access request is time-boxed permission to run operations or a debug session on one deployment. The customer or your team approves it, and it ends on its own:

alien access-requests create --deployment customer-1/us-east-1 \
  --operation 'kubernetes/*' --max-risk read-only \
  --debug-tool kubectl --debug-namespace checkout \
  --duration 2h --reason "Checkout pods restarting"

alien access-requests wait ar_5k2m8q

You need an access request when an operation's approval rule is manual or missing, and for every debug session. One approved request covers a whole fix for up to 6 hours, so nobody approves each step.

Sequence diagram. Lanes: Your team (engineer or agent), Alien (access requests), Approver (Slack or kubectl). Steps: 1 · request; queued; 2 · ask; 3 · approve 6h; 4 · run until expiry.

The requester asks, someone else approves, and the grant ends on its own when the window closes.

Scope

A request covers one or more of:

GrantFlagCovers
One exact operation--operation kubernetes/restart-pod --params '{…}'That operation with those parameters.
A plugin wildcard--operation 'kubernetes/*' --max-risk read-onlyEvery operation the plugin exposes now, up to the risk cap. Operations added to the plugin later aren't included.
A debug tool--debug-tool kubectl --debug-namespace checkoutA debug session with kubectl, aws, gcloud, or az, scoped to a namespace or cloud account.

A wildcard request requires --max-risk (read-only, mutating, or destructive); the CLI refuses one without it. A wildcard can reach mutating only when the plugin's * approval rule sets maxRisk that high. See Operations.

Only the requester can use an approval. A teammate can't use yours, and a request an API key created works only for that API key.

Window

  • --duration sets how long you ask for. The maximum is 6 hours, which is also the window the Slack card and kubectl approvals offer by default.
  • An approval never extends past the requested deadline.
  • An approved request for one operation covers only the exact operation and parameters in the request.
  • alien access-requests wait waits up to 3600 seconds by default (--timeout).

Statuses

StatusMeaning
Pending ApprovalAn AI agent proposed the request. A teammate must send it on for approval first.
QueuedWaiting for the approver's decision. Requests you create from the CLI start here.
ActiveApproved and granted until the window ends, whoever approved it. The API calls this status customer-approved.
RejectedDenied. Request again if you still need access.
ExpiredThe window ended, or nobody approved it in time.
RevokedWithdrawn before the window ended.

Find every request under Operations → Access Requests.

Who approves

Each deployment group sets who approves its access requests: the Customer or your Team. Approving access requests covers the setting, its defaults, and the Slack card.

SettingApproverWhere
CustomerYour customerThe Slack card in the shared channel. On Kubernetes, also kubectl in their cluster.
TeamMembers of your Alien workspaceThe Slack card in either app (the requester can approve there), or a teammate other than the requester in the dashboard (Approve access request?), with alien access-requests approve, or in the API

For a Customer group, the dashboard, the CLI, and the API refuse approval and denial. The API returns 403 with ACCESS_REQUEST_CUSTOMER_APPROVES.

Kubernetes

On Kubernetes, the Operator creates the request as a custom resource in the customer's cluster. The customer approves with kubectl in their cluster. alien access-requests create and wait print the command the customer runs. It looks like this:

kubectl patch <access-request-resource> req-ar-5k2m8q -n checkout --type=merge \
  -p '{"spec":{"approvedForMinutes":360}}'

Slack

Requests from the CLI or the API post a card to your Monitor reports channel, and the engineer routes it. The card has Approve for 6 hours and Deny on both group types. The label shows the request's window. On a Team group, verified members of your Alien workspace decide. On a Customer group, the customer's click decides. Either Slack app can carry the click. See Approving access requests.

Dashboard and CLI

On a Team group, a teammate signed in with alien login decides from the CLI. You can't approve your own request there. An API key can't approve or deny.

alien access-requests approve ar_5k2m8q --duration 2h
alien access-requests deny ar_5k2m8q

--duration defaults to the longest window the request allows. deny asks for confirmation; pass --yes in scripts.

Revoke

Revoke a grant as soon as the work is done:

alien access-requests revoke ar_5k2m8q --reason "incident resolved"

Or select Revoke on the request in the dashboard. Revoking takes effect at once:

  • operations still waiting to be dispatched fail
  • open debug sessions stop within seconds
  • every Slack card for the request shows Revoked
  • operations already running finish
  • the request can no longer be approved

You can't revoke an expired or rejected request.

Next

On this page