Eve Auth and Secrets
Use this workflow to log in to Eve and manage secrets for your app.
When to Use
- Setting up a new project profile
- Authentication failures
- Adding or rotating secrets
- Secret interpolation errors during deploys
- Setting up identity providers or org invites
- Adding SSO login to an Eve-deployed app
- Setting up access groups and scoped data-plane authorization
- Configuring group-aware RLS for environment databases
Authentication
bash
eve auth login
eve auth login --ttl 30 # custom token TTL (1-90 days)
eve auth status
Challenge-Response Flow
Eve uses challenge-response authentication. The default provider is
:
- Client sends SSH public key fingerprint
- Server returns a challenge (random bytes)
- Client signs the challenge with the private key
- Server verifies the signature and issues a JWT
Token Types
| Type | Issued Via | Use Case |
|---|
| User Token | | Interactive CLI sessions |
| Job Token | Worker auto-issued | Agent execution within jobs |
| Minted Token | | Bot/service accounts |
JWT payloads include
(user ID),
,
, and
. Verify tokens via the JWKS endpoint:
.
Role and org membership changes take effect immediately -- the server resolves permissions from live DB memberships, not stale JWT claims. When a request includes a
but no
, the permission guard derives the org context from the project's owning org.
Permissions
Check what the current token can do:
Register additional identities for multi-provider access:
bash
curl -X POST "$EVE_API_URL/auth/identities" -H "Authorization: Bearer $TOKEN" \
-d '{"provider": "nostr", "external_id": "<pubkey>"}'
Identity Providers
Eve supports pluggable identity providers. The auth guard tries Bearer JWT first, then provider-specific request auth.
| Provider | Auth Method | Use Case |
|---|
| SSH challenge-response | Default CLI login |
| NIP-98 request auth + challenge-response | Nostr-native users |
Nostr Authentication
Two paths:
- Challenge-response: Like SSH but signs with Nostr key. Use
eve auth login --provider nostr
.
- NIP-98 request auth: Every API request signed with a Kind 27235 event. Stateless, no stored token.
Org Invites
Invite external users via the CLI or API:
bash
# Invite with SSH key registration (registers key so the user can log in immediately)
eve admin invite --email user@example.com --ssh-key ~/.ssh/id_ed25519.pub --org org_xxx
# Invite with GitHub identity
eve admin invite --email user@example.com --github ghuser --org org_xxx
# Invite with web-based auth (Supabase)
eve admin invite --email user@example.com --web --org org_xxx
# API: invite targeting a Nostr pubkey
curl -X POST "$EVE_API_URL/auth/invites" -H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"org_id": "org_xxx", "role": "member", "provider_hint": "nostr", "identity_hint": "<pubkey>"}'
If no auth method is specified (
,
, or
), the CLI warns that the user will not be able to log in. The user can self-register later via
eve auth request-access --org "Org Name" --ssh-key ~/.ssh/id_ed25519.pub --wait
.
When the identity authenticates, Eve auto-provisions their account and org membership.
For app-driven onboarding, use the org-scoped invite API instead of the legacy admin invite flow:
bash
# Create an org-scoped Supabase invite with a return URL for the app
curl -X POST "$EVE_API_URL/orgs/org_xxx/invites" \
-H "Authorization: Bearer $USER_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com",
"role": "member",
"redirect_to": "https://app.example.com/invite/complete",
"app_context": { "project_id": "proj_123" }
}'
# Search existing org members for an assignee picker
curl "$EVE_API_URL/orgs/org_xxx/members/search?q=ali" \
-H "Authorization: Bearer $USER_TOKEN"
Use a user token with
to create or list these invites and
for member lookup. Invite emails should land on GoTrue's
path, not the OAuth callback directly. If the invite is auto-applied during the SSO exchange, Eve returns
so the SSO callback can land the user back in the target app even when the email provider strips nested redirect params. Current invite onboarding establishes the SSO session first, then sends the user through
before redirecting to the app.
App-Branded Invite Emails
Projects opt into app-branded invites with
in the manifest. The subject, body, and
display name all carry the app's identity — other apps fall back to "Eve Horizon" defaults.
yaml
x-eve:
branding:
app_name: "ACME Portal"
app_logo_url: "https://app.example.com/assets/logo.svg" # https-only
primary_color: "#1f6feb"
email_from_name: "ACME Portal"
reply_to_email: "support@example.com"
support_email: "support@example.com"
support_url: "https://example.com/help"
Run
after editing. Invites sent with
eve org invite <email> --org <org_id> --project <project_id>
use the project branding. The sender address remains the platform default in Phase 1; only the display name varies. The same branding template is shared with magic-link login emails — only the copy ("Accept invite" vs "Sign in") differs.
Token Minting (Admin)
Mint tokens for bot/service users without SSH login:
bash
# Mint token for a bot user (creates user + membership if needed)
eve auth mint --email app-bot@example.com --org org_xxx
# With custom TTL (1-90 days, default: server configured)
eve auth mint --email app-bot@example.com --org org_xxx --ttl 90
# Scope to project with admin role
eve auth mint --email app-bot@example.com --project proj_xxx --role admin
Print the current access token (useful for scripts):
Self-Service Access Requests
Users without an invite can request access:
bash
eve auth request-access --org "My Company" --email you@example.com
eve auth request-access --org "My Company" --ssh-key ~/.ssh/id_ed25519.pub
eve auth request-access --status <request_id>
Admins approve or reject via:
bash
eve admin access-requests list
eve admin access-requests approve <request_id>
eve admin access-requests reject <request_id> --reason "..."
List responses use the canonical
envelope.
Approval is atomic (single DB transaction) and idempotent -- re-approving a completed request returns the existing record. If the fingerprint is already registered, Eve reuses that identity owner. If a legacy partial org matches the requested slug and name, Eve reuses it during approval. Failed attempts never leave partial state.
Credential Check
Verify local AI tool credentials:
bash
eve auth creds # Show Claude + Codex cred status
eve auth creds --claude # Only Claude
eve auth creds --codex # Only Codex
Output includes token type (
or
), preview, and expiry. Use this to confirm token health before syncing.
OAuth Token Sync
Sync local Claude/Codex OAuth tokens into Eve secrets so agents can use them. Scope precedence: project > org > user.
bash
eve auth sync # Sync to user-level (default)
eve auth sync --org org_xxx # Sync to org-level (shared across org projects)
eve auth sync --project proj_xxx # Sync to project-level (scoped to one project)
eve auth sync --dry-run # Preview without syncing
This sets
/
CLAUDE_OAUTH_REFRESH_TOKEN
(Claude) and
(Codex/Code) at the requested scope.
Claude Token Types
| Token Prefix | Type | Lifetime | Recommendation |
|---|
| (long-lived) | Long-lived | Preferred for jobs and automation |
| Other | (short-lived) | ~15 hours | Use for interactive dev; regenerate with |
warns when syncing a short-lived OAuth token. Run
to inspect token type before syncing.
Automatic Codex/Code Token Write-Back
After each harness invocation, the worker checks if the Codex/Code CLI refreshed
during the session. If the token changed, it is automatically written back to the originating secret scope (user/org/project) so the next job starts with a fresh token. This is transparent and non-fatal -- a write-back failure logs a warning but does not affect the job result.
For Codex/Code credentials, the sync picks the freshest token across
and
by comparing
.
Access Groups + Scoped Access
Groups are first-class authorization primitives that segment data-plane access (org filesystem, org docs, environment databases). Create groups, add members, and bind roles with scoped constraints:
bash
# Create a group
eve access groups create --org org_xxx --slug eng-team --name "Engineering"
# Add members
eve access groups members add eng-team --org org_xxx --user user_abc
eve access groups members add eng-team --org org_xxx --service-principal sp_xxx
# Bind a role with scoped access
eve access bind --org org_xxx --group grp_xxx --role data-reader \
--scope-json '{"orgfs":{"allow_prefixes":["/shared/"]},"envdb":{"schemas":["public"]}}'
# Check effective access
eve access memberships --org org_xxx --user user_abc
Scope Types
| Resource | Scope Fields | Example |
|---|
| Org Filesystem | , | , |
| Org Documents | , orgdocs.read_only_prefixes
| |
| Environment DB | , | , |
Group-Aware RLS
Scaffold RLS helper functions for group-based row-level security in environment databases:
bash
eve db rls init --with-groups
This creates SQL helpers (
,
,
) that read session context set by Eve's runtime. Use them in RLS policies:
sql
CREATE POLICY notes_group_read ON notes FOR SELECT
USING (group_id = ANY(app.current_group_ids()));
Membership Introspection
Inspect a principal's full effective access -- base org/project roles, group memberships, resolved bindings, and merged scopes:
bash
eve access memberships --org org_xxx --user user_abc
eve access memberships --org org_xxx --service-principal sp_xxx
The response includes
(merged across all bindings),
, and each binding's
(direct or group).
Resource-Specific Access Checks
Check and explain access against a specific data-plane resource:
bash
eve access can orgfs:read /shared/reports --org org_xxx
eve access explain orgfs:write /shared/reports --org org_xxx --user user_abc
The response includes
,
, and per-grant
explaining why a binding did or did not match the requested resource path.
Policy-as-Code (v2)
Declare groups, roles, and scoped bindings in
. Use
:
yaml
version: 2
access:
groups:
eng-team:
name: Engineering Team
description: Scoped access for engineering collaborators
members:
- type: user
id: user_abc
roles:
app_editor:
scope: org
permissions:
- orgdocs:read
- orgdocs:write
- orgfs:read
- envdb:read
bindings:
- subject: { type: group, id: eng-team }
roles: [app_editor]
scope:
orgdocs: { allow_prefixes: ["/groups/app/**"] }
orgfs: { allow_prefixes: ["/groups/app/**"] }
envdb: { schemas: ["app"] }
Validate, plan, and sync:
bash
eve access validate --file .eve/access.yaml
eve access plan --file .eve/access.yaml --org org_xxx
eve access sync --file .eve/access.yaml --org org_xxx
Sync is declarative: it creates, updates, and prunes groups, members, roles, and bindings to match the YAML. Invalid scope configurations fail fast before any mutations are applied. Binding subjects can be
,
, or
.
Key Rotation
Rotate the JWT signing key:
- Set alongside the existing secret
- Server starts signing with the new key but accepts both during the grace period
- After grace period (
EVE_AUTH_KEY_ROTATION_GRACE_HOURS
), remove the old secret
- Emergency rotation: set only the new key (immediately invalidates all existing tokens)
App SSO Integration
Add Eve SSO login to any Eve-deployed app using two shared packages:
(backend) and
(frontend). The platform auto-injects
,
,
, and
into deployed services.
Magic-Link Login Opt-In (Passwordless Apps)
Apps can opt into passwordless browser login with
x-eve.auth.login_method: magic_link
. The SSO login page is branded for the project and shows email magic-link login instead of username/password.
yaml
x-eve:
auth:
login_method: magic_link # or password_or_magic_link, password
self_signup: false # unknown emails get generic success, no email
invite_requires_password: false # invite callback skips /set-password
Magic-link emails are sent by Eve API through
(not GoTrue directly) so the platform can enforce project policy, share the
template with invite emails, and avoid account enumeration. Projects without
keep legacy SSO behavior. Create new users with
eve org invite <email> --org <org_id> --project <project_id>
.
Magic-Link Confirmation Interstitial (Security)
Eve-rendered magic-link and invite emails embed a wrap URL (
), not the raw GoTrue verify URL. Email-security scanners (Defender SafeLinks, Mimecast, Proofpoint, Barracuda) follow every URL in mail and would otherwise consume single-use OTPs before the human clicks. The wrap renders a branded "Confirm sign-in / Accept invite" page; only the POST from the button reveals the GoTrue URL and 302-redirects. Treat this as a platform guarantee — no app-side work required.
Domain-Based Signup (Path C Auto-Attach)
Pre-approve email domains so anyone with a matching address can sign in via magic link without a per-user invite. On first successful login the platform attaches them as
of the rule's
. One project can route different domains to different orgs.
yaml
x-eve:
auth:
login_method: magic_link
invite_requires_password: false
org_access:
mode: allowlist
allowed_orgs: [org_Acme, org_Partner, org_Retailer]
domain_signup:
enabled: true
domains:
- { domain: example.com, target_org: org_Acme, role: member }
- { domain: partner.example, target_org: org_Partner }
- { domain: retailer.example, target_org: org_Retailer }
Rules are walked in declaration order — first match wins, so declare more-specific patterns first. Each rule's
must appear in
. Declaring free-email providers (
) is allowed but produces a manifest coherence warning. Explicit pending invites take priority over domain signup (Path B beats Path C). Removing a rule stops new signups but does not retroactively remove existing memberships — drop those with
.
Audit via the event spine:
auth.domain_signup.invite_created
and
auth.domain_signup.member_attached
carry
,
, and
.
App Org Access and Admin Invites
Apps default to project-owner-org access. Use
to declare which customer orgs may use the app, and enable in-app admin invites that send branded magic-link onboarding:
yaml
x-eve:
auth:
org_access:
mode: allowlist
allowed_orgs: [org_customer123, customer-slug]
invite:
enabled: true
admin_roles: [admin, owner]
invited_role: member # fixed; app invites cannot create admins
Endpoints:
returns the user's allowed orgs (plus which ones they can invite into);
lets an org admin/owner invite a regular member with the project-branded email. For cross-org apps, use
on the backend instead of
— it consults
and selects the org from
,
, or first allowed.
Project-Scoped Redirect Allowlist (Custom-Domain Apps)
The SSO broker only accepts redirect targets under the cluster domain by default. Apps deployed on their own domain must declare their origins:
yaml
x-eve:
auth:
allowed_redirect_origins:
- https://app.example.com
- https://www.example.com
Entries are origin-only (
); paths/queries/fragments are rejected at manifest-validate time. The final allowlist returned by
is the union of: (1) explicit manifest entries, (2) the project's own eligible custom domains (
rows with
and status
/
/
), and (3) cross-org custom domains owned by projects in
. Inspect with
eve project auth-context <project_id>
.
This replaces the hard-coded
allowlist for non-cluster origins. The broker uses the list for both
validation in
and CORS on
and
. The
provider auto-passes
on session/logout calls so cross-site cookies are scoped correctly.
SameSite=None on Custom Domains (Platform Guarantee)
When SSO is deployed with
EVE_SSO_SECURE_COOKIES=true
, the broker emits
and
cookies with
. This is required for the React provider's cross-site
fetch('/session', { credentials: 'include' })
probe to carry cookies when the app is on a custom domain. Local k3d (
) stays on
. Apps no longer need to configure this themselves.
Restrict Self-Signup to Approved Email Domains
The SSO service gates
and
by email domain when the env var
EVE_SIGNUP_ALLOWED_EMAIL_DOMAINS
is set (comma-separated). Unset means all domains are allowed (default). The signup tab on the SSO login page displays a domain hint when restrictions are active.
bash
# On the SSO deployment, set:
EVE_SIGNUP_ALLOWED_EMAIL_DOMAINS=acme.com,partner.io
Rejected requests return HTTP 422 with
error: email_domain_not_allowed
. Use this to keep public SSO endpoints invite-only-by-domain without disabling self-signup entirely. Existing accounts and admin invites are unaffected.
Backend ()
Install:
npm install @eve-horizon/auth
Use the unified middleware by default for new apps:
| Export | Behavior |
|---|
| Non-blocking middleware. Verifies user or agent tokens and attaches normalized identity at . |
| Returns 401 if is not set. Place on protected routes. |
| Handler returning { sso_url, eve_api_url, ... }
from auto-injected env vars. Frontend fetches this to discover SSO. |
| handler for the React SDK and custom clients. |
Keep the legacy split middleware only for apps that explicitly want user-only or agent-only handling:
| Export | Behavior |
|---|
| User-only non-blocking middleware. Attaches req.eveUser: { id, email, orgId, role }
. |
| Returns 401 if is not set. |
| Blocking middleware for agent/job tokens. Attaches with full . Returns 401 on failure. |
| JWKS-based local verification (15-min cache). Returns . |
verifyEveTokenRemote(token)
| HTTP verification via . Always current. |
Express setup (~3 lines):
typescript
import { eveAuth, eveIdentityGuard, eveAuthConfig, eveAuthMe } from '@eve-horizon/auth';
app.use(eveAuth());
app.get('/auth/config', eveAuthConfig());
app.get('/auth/me', eveAuthMe()); // Full response for React SDK
app.use('/api', eveIdentityGuard());
normalizes both token types:
- User token: , , , , ,
- Agent/job token: , , stable as , ,
Use
or the stable agent email for RLS, audit logs, and app-level routing. Do not key agent identity off
; that older pattern was per-job and unstable.
NestJS setup: apply
globally in
, then use a thin guard wrapper:
typescript
// main.ts
import { eveAuth } from '@eve-horizon/auth';
app.use(eveAuth());
// auth.guard.ts -- thin NestJS adapter
@Injectable()
export class EveGuard implements CanActivate {
canActivate(ctx: ExecutionContext): boolean {
const req = ctx.switchToHttp().getRequest();
if (!req.eveIdentity) throw new UnauthorizedException();
return true;
}
}
// auth-config.controller.ts
@Controller()
export class AuthConfigController {
private handler = eveAuthConfig();
@Get('auth/config')
getConfig(@Req() req, @Res() res) { this.handler(req, res); }
}
Verification strategies:
and
default to
(JWKS, cached 15 min). Use
for immediate membership freshness at ~50ms latency per request.
Custom role mapping: If your app needs roles beyond Eve's
, bridge after
:
typescript
app.use((req, _res, next) => {
if (req.eveIdentity && !req.eveIdentity.isAgent) {
req.user = {
...req.eveIdentity,
appRole: req.eveIdentity.role === 'member' ? 'viewer' : 'admin',
};
}
next();
});
Frontend ()
Install:
npm install @eve-horizon/auth-react
| Export | Purpose |
|---|
| Context provider. Bootstraps session: checks sessionStorage, probes SSO , caches tokens. |
| Hook: { user, loading, error, config, loginWithSso, loginWithToken, logout }
|
| Renders children when authenticated, login form otherwise. |
| Built-in SSO + token-paste login UI. |
createEveClient(baseUrl?)
| Fetch wrapper with automatic Bearer injection. |
Simple setup --
handles the loading/login/authenticated states:
tsx
import { EveAuthProvider, EveLoginGate } from '@eve-horizon/auth-react';
<EveAuthProvider apiUrl="/api">
<EveLoginGate>
<ProtectedApp />
</EveLoginGate>
</EveAuthProvider>
Custom auth gate -- use
for full control over loading, login, and error states:
tsx
import { EveAuthProvider, useEveAuth } from '@eve-horizon/auth-react';
function AuthGate() {
const { user, loading, loginWithToken, loginWithSso, logout } = useEveAuth();
if (loading) return <Spinner />;
if (!user) return <LoginPage onSso={loginWithSso} onToken={loginWithToken} />;
return <App user={user} onLogout={logout} />;
}
export default () => (
<EveAuthProvider apiUrl="/api">
<AuthGate />
</EveAuthProvider>
);
API calls with auth: Use
for automatic Bearer token injection:
typescript
import { createEveClient } from '@eve-horizon/auth-react';
const client = createEveClient('/api');
const res = await client.fetch('/data');
Migration from Custom Auth
The SDK replaces ~700-800 lines of hand-rolled auth with ~50 lines. Delete custom JWKS/token verification, Bearer extraction middleware, SSO URL discovery, session probe logic, token storage helpers, and login form. Keep app-specific role mapping and local password auth.
For the full migration checklist, types reference, token lifecycle, and advanced patterns (SSE auth, token paste mode, token staleness), see references/app-sso-integration.md.
Service Tokens for Deployed Services
Every deployed service receives an auto-injected
(90-day RS256 JWT,
) for server-to-server calls back into the Eve API. The deployer mints it on each deploy — apps no longer need to manually set this secret.
Tokens default to
read-only permissions (
,
,
,
,
,
,
,
,
). Apps that need write access declare additional permissions explicitly in the manifest:
yaml
services:
api:
x-eve:
permissions: [jobs:write, events:write, threads:write]
Use this for app -> Eve API calls (creating jobs, emitting events, updating threads). For the full schema and call patterns, see eve-read-eve-docs/references/secrets-auth.md and eve-read-eve-docs/references/manifest.md.
BYOK Model (LLM API Keys)
Eve does not proxy inference traffic. All model access is BYOK (Bring Your Own Keys): harnesses and apps bring their own API keys via secrets and call providers directly.
Store LLM provider keys as project secrets:
bash
eve secrets set ANTHROPIC_API_KEY "sk-ant-xxx" --project proj_xxx
eve secrets set OPENAI_API_KEY "sk-xxx" --project proj_xxx
eve secrets set OPENAI_BASE_URL "https://my-vllm.runpod.ai/v1" --project proj_xxx
Harnesses resolve these automatically. For self-hosted models (vLLM, LM Studio via Tailscale), set the base URL and API key as secrets -- Eve provides connectivity via private endpoints (see
), not a managed inference layer.
Per-Org OAuth Credentials (BYOA)
Each org brings its own OAuth app credentials for Google Drive, Slack, and other integrations. No cluster-level shared secrets.
bash
# View setup instructions (redirect URIs, required scopes)
eve integrations setup-info google-drive
eve integrations setup-info slack
# Register OAuth app credentials
eve integrations configure google-drive \
--client-id "xxx.apps.googleusercontent.com" \
--client-secret "GOCSPX-xxx" \
--label "Acme Corp Google Drive"
eve integrations configure slack \
--client-id "12345.67890" \
--client-secret "abc123" \
--signing-secret "def456" \
--app-id "A0123ABC" \
--label "Acme Corp Slack Bot"
# View current config (secrets redacted)
eve integrations config google-drive
# Then connect as before (uses per-org credentials)
eve integrations connect google-drive
eve integrations connect slack
Benefits: isolated credentials per org, custom consent screen branding, independent rate limits, no shared-secret blast radius.
Project Role Resolution
Role and org membership changes take effect immediately -- the server resolves permissions from live DB memberships, not stale JWT claims. When a request includes a
but no
, the permission guard derives the org context from the project's owning org.
The Auth SDK (
) exposes this via
middleware. Use
for immediate membership freshness when needed.
Project Secrets
bash
# Set a secret
eve secrets set API_KEY "your-api-key" --project proj_xxx
# List keys (no values)
eve secrets list --project proj_xxx
# Delete a secret
eve secrets delete API_KEY --project proj_xxx
# Import from file
eve secrets import .env --project proj_xxx
Secret Interpolation
Reference secrets in
using
:
yaml
services:
api:
environment:
API_KEY: ${secret.API_KEY}
Manifest Validation
Validate that all required secrets are set before deploying:
bash
eve manifest validate --validate-secrets # check secret references
eve manifest validate --strict # fail on missing secrets
Local Secrets File
For local development, create
(gitignored):
yaml
secrets:
default:
API_KEY: local-dev-key
DB_PASSWORD: local-password
staging:
DB_PASSWORD: staging-password
Worker Injection
At job execution time, resolved secrets are injected as environment variables into the worker container. File-type secrets are written to disk and referenced via
. The file is removed after the agent process reads it.
Git Auth
The worker uses secrets for repository access:
- HTTPS: secret → header
- SSH: secret → written to and used via
Auth Mail Delivery (SES)
All branded auth emails (org/app invites, app-scoped magic-link, system-admin Supabase invites) flow through a single
. When SMTP points at SES (
GOTRUE_SMTP_HOST=*.amazonaws.com
or
EVE_MAILER_CHECK_SUPPRESSION=true
), the mailer adds a pre-flight
check so account-level suppressions cannot silently look like a successful send.
| Outcome | Behavior |
|---|
| Address suppressed | Throws ; no SMTP send |
| Not found | Send proceeds |
| AWS error (IRSA, throttling, network) | Fails open — logs mailer.suppression_check_failed
, send proceeds |
Caller behavior:
swallows
and returns generic success (preserves account-enumeration defense), logging
. Invite paths re-throw so admins see the error.
When
EVE_SES_CONFIGURATION_SET
is set, SES routes Bounce/Complaint/Delivery/Reject events to SNS, which POSTs to
. The webhook verifies SNS signature, checks
against
EVE_SES_FEEDBACK_TOPIC_ARN
, and persists one row per affected recipient in
(idempotent by
sha256(snsMessageId|eventType|recipient)
).
Inspect events via the admin CLI:
bash
eve admin email bounces list
eve admin email bounces list --recipient user@example.com
eve admin email bounces list --event-type Bounce --limit 100 --json
Read-only from the local table; does not mutate SES. To clear an account-level suppression, see the SES suppression runbook.
Structured log events to grep in API pod logs:
,
,
,
mailer.suppression_check_failed
,
,
sns.subscription_confirmed
,
,
.
Troubleshooting
| Problem | Fix |
|---|
| Not authenticated | Run |
| Token expired | Re-run (tokens auto-refresh if within 5 min of expiry) |
| Bootstrap already completed | Use (existing user) or (new users). On non-prod stacks, auto-attempts server recovery. For wrong-email recovery: eve auth bootstrap --email correct@example.com
|
| Secret missing | Confirm with and set the key |
| Interpolation error | Verify spelling; run eve manifest validate --validate-secrets
|
| Git clone failed | Check or secret is set |
| Service can't reach API | Verify is injected (check ) |
| Scoped access denied | Run eve access explain <permission> <resource> --org <org>
to see scope match details. Check that the binding's scope constraints include the target path/schema. Built-in roles (owner/admin/member) carry wildcard scope, so envdb denial for those roles points at the permission set, not missing scope |
| Wrong role shown | Role is resolved from live DB memberships. Run to see effective role. If multi-org, check for per-org membership listing |
| Short-lived Claude token in jobs | Run to check token type. If (not ), regenerate with then re-sync with |
| Codex token expired between jobs | Automatic write-back should refresh it. If not, re-run . Check that or has a fresh token |
| App SSO not working | Verify is injected (). For local dev, set , , and manually |
| Stale org membership in app tokens | Default 1-day TTL. Use in for immediate membership checks |
Incident Response (Secret Leak)
If a secret may be compromised:
- Contain: Rotate the secret immediately via
- Invalidate: Redeploy affected environments
- Audit: Check for recent jobs that used the secret
- Recover: Generate new credentials at the source (GitHub, AWS, etc.)
- Document: Record the incident and update rotation procedures