mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 13:53:15 +00:00
Some checks are pending
CI / Lint (push) Waiting to run
CI / Format check (push) Waiting to run
CI / Typecheck (push) Waiting to run
CI / Unit tests (push) Waiting to run
CI / Playwright E2E (push) Waiting to run
CI / Docker build smoke (push) Waiting to run
CI / Triage ledger up to date (push) Waiting to run
CI / ui bun.lock in sync (push) Waiting to run
* feat(open-swe): add Jira tool plane (Phase 1)
Curated Jira Cloud REST v3 toolset for the agent, mirroring the Linear
tools:
- utils/jira.py: service-account REST client (Basic auth) with get/
create/update issue, comments, list projects, trace comment; issue and
comment bodies normalized to markdown.
- utils/adf.py: minimal ADF <-> markdown conversion (read paths convert
Jira ADF to markdown; agent comments convert prose to ADF).
- tools/jira_{comment,get_issue,get_issue_comments,create_issue,
update_issue,list_projects}.py wired into the tool registry and the
main agent tool list.
- tests/test_jira_utils.py: ADF conversion + mocked-transport util tests.
Reads JIRA_BASE_URL / JIRA_SERVICE_EMAIL / JIRA_API_TOKEN; unset env
returns a clean error, so this is safe to land dark. Trigger plane,
prompt guidance, and config plumbing follow in Phase 2.
* feat(open-swe): add Confluence tool plane (Phase 3)
Curated Confluence Cloud REST toolset for the agent, mirroring the Jira
tools:
- utils/confluence.py: service-account REST client (Basic auth) with
get/create/update page, add comment, CQL search. Page bodies are XHTML
storage format (not ADF), with minimal storage<->text converters;
update_page reads the current version and bumps it, as Confluence
requires.
- tools/confluence_{get_page,create_page,update_page,comment,search}.py
registered in the tool registry.
- tests/test_confluence_utils.py: converter + mocked-transport tests
including the version-bump path.
Reads CONFLUENCE_BASE_URL / CONFLUENCE_EMAIL / CONFLUENCE_API_TOKEN;
unset env returns a clean error. Activation in the agent tool list lands
with the Phase 2 server.py wiring.
* feat(open-swe): add Jira trigger plane (Phase 2)
Make an @openswe comment on a Jira issue spawn an agent run, mirroring
the Linear trigger plane:
- webhooks/jira.py: process_jira_issue clones process_linear_issue —
deterministic thread id, full-issue fetch, actor accountId->email
attribution feeding resolve_login_from_email_async (PRs open as the
human), multimodal image handling, source="jira" + jira_issue config.
- webapp.py: POST/GET /webhooks/jira, verify_jira_secret (constant-time
X-Automation-Webhook-Token check, fails closed), repo-resolution
cascade, get_repo_config_from_jira_mapping.
- utils/jira_project_repo_map.py: JIRA_PROJECT_TO_REPO (placeholder
entry — real project->repo mappings still needed).
- utils/jira.py: get_user_email (accountId -> email) for attribution.
- completion.py: source=="jira" failure-reply branch.
- prompt.py: Jira-triggered notify guidance + Refs:/branch key from
{jira_project_key}-{jira_issue_number}.
- server.py: read jira_issue config + pass jira key to the system
prompt; also activates the Phase 3 Confluence tools in the agent list.
Jira Automation lacks native webhook HMAC signing, so trust is a shared
secret header (decision D2); replay protection is weaker than Linear's
HMAC+timestamp. /sh-security-review + an Atlassian IP allowlist are the
outstanding gate/hardening before push.
* fix(open-swe): harden Jira webhook trust (sh-security-review)
Resolves findings from the Phase 2 security review (detector fan-out +
proof-or-kill verifier). The unsigned Jira Automation webhook body was
trusted for identity, comment content, repo routing, and issue
existence; a JIRA_WEBHOOK_SECRET holder could forge those fields.
- Corroborate against the real Jira record: the webhook body is now only
a pointer (issue_key + required comment_id). The triggering comment's
author and text are re-fetched server-side via get_comment/fetch_jira_
comment, and identity, the @openswe check, prompt text, and project
key are derived from that authoritative record — never payload author/
body fields. An uncorroborated comment is rejected. (closes the
account-id impersonation, unsigned-body prompt injection, and
fabricated-issue findings)
- Validate issue_key against the Jira key format and percent-encode all
untrusted path segments (_seg) so a crafted key can't traverse to a
different Jira REST endpoint or inject query params. (closes the path-
traversal / query-injection findings)
- Route source=="jira" through the bot-token-default / author_prs_as_
user opt-in path in resolve_github_token, matching Linear, instead of
unconditionally resolving a per-user OAuth token from a payload email.
- Gate attribution on an active user mapping (is_login_mapped) so a
pending/unconfirmed mapping can't drive PR authorship.
Adds regression tests: server-corroboration wins over payload, malformed
issue_key rejected, uncorroborated comment rejected, path-segment
encoding, project-key derivation, active-mapping gate.
Remaining (non-blocking, deployment/hardening): set ALLOWED_GITHUB_ORGS/
REPOS so the shared allowlist isn't fail-open; consider HMAC-over-body +
timestamp on the Automation payload to close the residual replay gap.
* harden(open-swe): opt-in Jira webhook replay/IP + fail-closed allowlist
Folds the two deployment-hardening items from the Phase 2 security review
into code (all opt-in / default-off, so existing and upstream deployments
are unaffected):
- JIRA_WEBHOOK_REQUIRE_SIGNATURE: when set, the Automation payload must
carry X-Openswe-Signature (hex HMAC-SHA256 of the raw body keyed by
JIRA_WEBHOOK_SECRET) plus a fresh timestamp, verified by
verify_jira_signature / _jira_timestamp_is_fresh (mirrors the Linear
HMAC+freshness model). Closes the static-token model's replay/forgery
gap when enabled.
- JIRA_WEBHOOK_IP_ALLOWLIST: optional CIDR allowlist on the webhook's
direct client IP (verify_jira_source_ip). Documented as direct-peer
only; behind a proxy/LB, allowlist Atlassian's ranges at that layer.
- REQUIRE_REPO_ALLOWLIST: makes an empty ALLOWED_GITHUB_ORGS/REPOS fail
CLOSED instead of the back-compat allow-all, plus a startup fail-open
warning. Applies to all channels for consistency.
Documents all new vars (and a Jira section) in .env.example. Adds tests
for signature on/off + valid/missing/wrong/stale, IP allow/deny/off, and
the fail-closed allowlist.
* feat(open-swe): Confluence Atlassian Connect trigger (Phase 4)
Adds the @openswe-on-a-Confluence-comment trigger via a private Atlassian
Connect app. Designed and adversarially verified with the ultracode
workflow (3 divergent Opus designs + judge; 3 proof-or-kill Opus
skeptics on the implemented crypto).
- utils/atlassian_connect.py: hand-rolled qsh (pinned to Atlassian's
official test vector), PyJWT HS256 webhook verifier with alg-pinning,
issuer binding, and qsh-verified-last ordering; RS256 signed-install
lifecycle verifier against Atlassian's published keys; installation
store keyed by clientKey with the sharedSecret encrypted at rest
(TOKEN_ENCRYPTION_KEY / Fernet). No new dependency (PyJWT already pinned).
- webhooks/confluence.py: install/uninstall lifecycle + comment handler.
The JWT-signed webhook body is only a pointer; the comment's real
author/text/container are re-fetched server-side via the Basic-auth
service account (Phase-2 corroboration lesson), with active-only login
attribution and the repo allowlist.
- utils/confluence.py: get_comment / get_user_email (path-encoded).
- webapp.py: GET /connect/atlassian-connect.json (served dynamically),
POST /connect/{installed,uninstalled,webhook/comment-created}, the
space->repo resolver, thread-id, and fetch helpers.
- completion.py: source=="confluence" failure-reply branch.
Security: the sh-security-review verify pass confirmed one HIGH — the
symmetric signed-install=false first-install was trust-on-first-use gated
only by the public Confluence hostname (webhook-auth bypass). Fixed by
switching to signed-install=true + RS256 verification of lifecycle
callbacks, which cryptographically authenticates the first install. All
other attack lenses (forgery/replay/alg-confusion/overwrite/uninstall
DoS/corroboration/injection) were defeated; residuals are deployment
config (REQUIRE_REPO_ALLOWLIST) or accepted-by-design (qsh cannot cover
bodies; comment-trigger prompt injection, shared with all sources).
New env (documented in .env.example): CONFLUENCE_BASE_URL/EMAIL/API_TOKEN,
CONNECT_BASE_URL, CONNECT_EXPECTED_BASE_URL (optional). Install secrets
require the durable Postgres LangGraph store in prod.
Outstanding before push: /sh-security-review on the real diff and the
GPT-4.1 cross-family review (auth boundary); README/CLAUDE.md + memory.
* docs(open-swe): Phase 5 — Confluence prompt guidance + architecture docs
- prompt.py: Confluence-triggered runs notify via confluence_comment on
the triggering page; add Confluence to the shared-base source list.
- CLAUDE.md: document the Jira + Confluence tool planes and the Atlassian
triggers (Jira Automation shared-secret webhook; Confluence Connect app
with HS256 webhook + qsh and RS256 signed-install lifecycle), plus the
server-side corroboration + encrypted install store.
Phase 5 also verified the trigger surface end-to-end against a running
uvicorn app (descriptor served; /connect/* and /webhooks/jira fail closed
without valid auth) and recorded the integration in project memory.
* fix(open-swe): resolve /sh-security-review findings on the Atlassian surface
Formal sh-security-review (detector fan-out + verifier) over the Phase-4
Connect surface (esp. the new RS256 signed-install code, unseen by the
earlier adversarial verify) and the Phase-2 opt-in hardening.
CRITICAL — cross-tenant install (origin validation, CWE-346): signed-
install proves the caller is *an* Atlassian tenant, not *ours*, and the
descriptor is served publicly, so any attacker could install the app on
their own Confluence site and drive agent runs against our allowlisted
repos. The baseUrl body field is attacker-controlled and cannot bind the
tenant; only the signature-verified clientKey (JWT iss) can. Added a
MANDATORY, fail-closed CONNECT_EXPECTED_CLIENT_KEYS allowlist checked in
process_install after signature+iss verification.
HIGH — cross-tenant thread-id collision (CWE-330/863): Confluence comment
ids are per-instance, so generate_thread_id_from_confluence_comment now
salts the hash with the verified clientKey (plumbed from the webhook JWT
iss) to prevent thread hijack across tenants.
HIGH/MEDIUM — path/query injection (CWE-22/88): get_page and update_page
interpolated page_id into the REST path unencoded (update_page on a
mutating PUT with no params= backstop). Now _seg()-encoded, matching the
rest of the module.
MEDIUM — self-trigger loop (CWE-405): process_confluence_comment had no
bot-authorship early-out. Added an optional CONFLUENCE_BOT_ACCOUNT_ID
guard mirroring the Linear botActor / Jira comment_author_is_bot checks.
LOW — corrected the CONNECT_EXPECTED_BASE_URL comment to document it as
opt-in defense-in-depth (the clientKey allowlist is the real gate).
Verified clean by the detectors: RS256/HS256 alg-pinning, aud/iss/exp,
kid-fetch SSRF (host-pinned + quote-encoded), at-rest secret encryption,
constant-time comparisons, and the Phase-2 hardening. New regression
tests for each fix; full suite green (1602).
* harden(open-swe): GPT-4.1 cross-family review follow-ups
Cross-family review (GPT-4.1 via orchestrator cross_reviewer) found no
critical/high issues and confirmed the auth boundary is fail-closed and
correct. Two low-cost defense-in-depth items applied:
- Validate the signed-install JWT 'kid' against a strict charset before
the public-key fetch, so a malformed kid fails fast with no network
call (on top of the existing fixed host + percent-encoding).
- Make JWT nbf verification explicit (verify_nbf) on both the RS256
lifecycle and HS256 webhook decodes.
Other suggestions triaged as already-handled (aud cross-app replay is
blocked by the per-tenant iss->secret lookup; documented static-token/IP/
baseUrl tradeoffs; qsh pinned to Atlassian's vector) or ops/infra
(Fernet rotation via MultiFernet; rate limiting at the gateway).
* docs(open-swe): document Jira + Confluence in installation & customization guides
- INSTALLATION.md §5: add Jira (Automation-rule webhook + shared secret,
service account, JIRA_PROJECT_TO_REPO) and Confluence (Atlassian Connect
app install, CONNECT_EXPECTED_CLIENT_KEYS bootstrap, durable-store note,
CONFLUENCE_SPACE_TO_REPO) trigger setup; §6: add the new env vars +
REQUIRE_REPO_ALLOWLIST.
- CUSTOMIZATION.md: jira_*/confluence_* in the tools table; repo-extraction
note covers all four sources.
- AGENTS.md: match CLAUDE.md (triggers, webhooks, tool list, auth).
- README.md: invocation section, tools table, and overview line.
168 lines
9.9 KiB
Text
168 lines
9.9 KiB
Text
# === LangSmith ===
|
|
LANGSMITH_API_KEY_PROD="" # From step 4a
|
|
# NOTE: LANGCHAIN_TRACING_V2 and LANGCHAIN_PROJECT are RESERVED on LangGraph Platform
|
|
# (LangSmith deployments) — the platform sets them itself and rejects the deploy if
|
|
# you provide them. Only set them for local/self-hosted runs, not in a deployment's env.
|
|
LANGSMITH_TENANT_ID_PROD=""
|
|
LANGSMITH_TRACING_PROJECT_ID_PROD="" # Fallback project ID for "View trace" links; graphs trace into the open-swe-agent / open-swe-review projects by name
|
|
LANGSMITH_URL_PROD="https://smith.langchain.com"
|
|
|
|
# === LLM ===
|
|
LLM_MODEL_ID="" # Default model, e.g. "bedrock_converse:us.anthropic.claude-opus-4-8"
|
|
ANTHROPIC_API_KEY="" # Anthropic API key
|
|
OPENAI_API_KEY="" # OpenAI API key (when using openai: models)
|
|
GOOGLE_API_KEY="" # Google AI API key (when using google_genai: models)
|
|
FIREWORKS_API_KEY="" # Fireworks API key (when using fireworks: models)
|
|
# AWS credentials for Bedrock (when using bedrock_converse: models). Region defaults to us-east-1.
|
|
AWS_ACCESS_KEY_ID=""
|
|
AWS_SECRET_ACCESS_KEY=""
|
|
|
|
# === GitHub App (required) ===
|
|
GITHUB_APP_ID="" # From step 3c
|
|
GITHUB_APP_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----
|
|
...
|
|
-----END RSA PRIVATE KEY-----
|
|
"
|
|
GITHUB_APP_INSTALLATION_ID="" # From step 3d
|
|
|
|
# === GitHub Webhook (required) ===
|
|
GITHUB_WEBHOOK_SECRET="" # The secret you generated in step 3b
|
|
|
|
# === Dashboard GitHub OAuth (required for the dashboard) ===
|
|
# Direct GitHub OAuth used by the dashboard login flow (not via LangSmith).
|
|
GITHUB_APP_CLIENT_ID="" # From step 3c
|
|
GITHUB_APP_CLIENT_SECRET="" # From step 3c
|
|
|
|
# === Agent-runtime GitHub OAuth via LangSmith (optional) ===
|
|
# Without these, all agent operations use the GitHub App's bot token.
|
|
# With these, each agent run authenticates as the triggering user.
|
|
GITHUB_OAUTH_PROVIDER_ID="" # The provider ID from steps 3a / 4b
|
|
# Secret used to mint short-lived service JWTs that ask LangSmith to resolve a
|
|
# specific user's GitHub token. Needed for per-user token resolution in deployed mode.
|
|
X_SERVICE_AUTH_JWT_SECRET=""
|
|
|
|
# === Repo Allowlist (optional) ===
|
|
# Comma-separated list of GitHub orgs the agent is allowed to operate on.
|
|
# Also gates dashboard login to members of these orgs (requires the GitHub App's
|
|
# Organization -> Members: Read-only permission; without it, all dashboard logins are rejected).
|
|
# Leave empty to allow all orgs.
|
|
ALLOWED_GITHUB_ORGS="" # e.g. "my-org,my-other-org"
|
|
# Comma-separated list of specific owner/repo pairs the agent is allowed to operate on.
|
|
# For GitHub/Linear webhooks, a repo is allowed if its org is in ALLOWED_GITHUB_ORGS OR its owner/repo is in ALLOWED_GITHUB_REPOS.
|
|
# Slack mentions are not rejected from regex-inferred repository text; repository access is bounded by GitHub App installation permissions.
|
|
# Leave both empty to allow all repos.
|
|
ALLOWED_GITHUB_REPOS="" # e.g. "some-user/their-repo,another-org/specific-repo"
|
|
# When "true", an empty allowlist fails CLOSED (allow nothing) instead of the
|
|
# back-compat allow-all. Set this once the allowlist above is populated so a
|
|
# forged/misconfigured trigger can't steer the agent at an arbitrary repo.
|
|
REQUIRE_REPO_ALLOWLIST="" # "true" to fail closed when the allowlist is empty
|
|
|
|
# === Default Repository ===
|
|
# Used across all triggers when no repo is specified.
|
|
DEFAULT_REPO_OWNER="" # Default GitHub org (e.g. "my-org")
|
|
DEFAULT_REPO_NAME="" # Default GitHub repo (e.g. "my-repo")
|
|
|
|
# === Dashboard (required to run the web dashboard) ===
|
|
# Public URL that browsers use for /dashboard/api/* and OAuth callbacks.
|
|
# Use the FastAPI backend URL for local/cross-origin direct API calls.
|
|
# Use the dashboard frontend URL when a same-origin frontend rewrite proxies /dashboard/api/*.
|
|
# Its scheme drives cookie security: http:// => SameSite=Lax (local);
|
|
# https:// => Secure + SameSite=None (production).
|
|
DASHBOARD_API_BASE_URL="http://localhost:2024"
|
|
# Public base URL of the dashboard frontend (the ui/ app). Default post-login redirect.
|
|
DASHBOARD_BASE_URL="http://localhost:3000"
|
|
# HMAC secret for dashboard JWTs (session cookie and OAuth state).
|
|
DASHBOARD_JWT_SECRET="" # Generate with: openssl rand -hex 32
|
|
# Comma-separated origins allowed for credentialed CORS and post-login redirects.
|
|
# Required whenever the frontend and API are on different origins — including local
|
|
# dev (UI :3000 -> API :2024 is cross-origin). CORS is only enabled when this is set.
|
|
DASHBOARD_ALLOWED_ORIGINS="http://localhost:3000" # prod: your frontend origin(s)
|
|
# Comma-separated GitHub login or email allowlist for admin dashboard endpoints.
|
|
# Empty => nobody is an admin.
|
|
CONFIGURED_ADMINS="" # e.g. "alice,bob@my-org.com"
|
|
# URL of the LangGraph server the FastAPI side calls to trigger/stream runs.
|
|
# Defaults to http://localhost:2024 locally; set to your deployment URL in prod.
|
|
LANGGRAPH_URL="http://localhost:2024"
|
|
|
|
# === Linear (if using Linear trigger) ===
|
|
LINEAR_API_KEY="" # From step 5
|
|
LINEAR_WEBHOOK_SECRET="" # From step 5
|
|
|
|
# === Jira (if using Jira trigger / tools) ===
|
|
JIRA_BASE_URL="" # e.g. "https://your-site.atlassian.net"
|
|
JIRA_SERVICE_EMAIL="" # Service-account email for Basic auth
|
|
JIRA_API_TOKEN="" # Service-account API token
|
|
# Shared secret the Jira Automation rule sends in X-Automation-Webhook-Token.
|
|
JIRA_WEBHOOK_SECRET="" # Generate with: openssl rand -hex 32
|
|
# Opt-in stronger trust: when "true", the Automation rule must also send
|
|
# X-Openswe-Signature (hex HMAC-SHA256 of the raw body keyed by
|
|
# JIRA_WEBHOOK_SECRET) and a fresh `timestamp` (Unix ms) in the body. Closes the
|
|
# static-token model's replay/forgery gap. Leave empty to keep token-only.
|
|
JIRA_WEBHOOK_REQUIRE_SIGNATURE="" # "true" to require HMAC body signature + timestamp
|
|
# Optional CIDR allowlist for the webhook's DIRECT client IP (comma-separated).
|
|
# Only meaningful when the app terminates connections directly; behind a proxy
|
|
# or LB, allowlist Atlassian's egress ranges at that layer instead.
|
|
JIRA_WEBHOOK_IP_ALLOWLIST="" # e.g. "1.2.3.0/24,5.6.7.8/32"
|
|
|
|
# === Confluence (if using Confluence tools / trigger) ===
|
|
# Basic-auth service account for the Confluence REST tools + webhook corroboration.
|
|
CONFLUENCE_BASE_URL="" # e.g. "https://your-site.atlassian.net"
|
|
CONFLUENCE_EMAIL="" # Service-account email
|
|
CONFLUENCE_API_TOKEN="" # Service-account API token
|
|
# Atlassian Connect app (the Confluence @openswe comment trigger). The descriptor
|
|
# is served at GET /connect/atlassian-connect.json with this baseUrl (public
|
|
# origin, EMPTY context path so descriptor path == request path == qsh path).
|
|
CONNECT_BASE_URL="" # e.g. "https://openswe.seahavenind.com"
|
|
# REQUIRED tenant binding: comma/space-separated clientKey(s) allowed to install.
|
|
# signed-install proves the caller is *an* Atlassian tenant, not *ours*, and the
|
|
# descriptor is public — so without this any tenant could install the app and
|
|
# trigger runs. Empty => reject ALL installs (fail closed). Bootstrap: attempt an
|
|
# install, read the rejected clientKey from the logs, add it here, re-install.
|
|
CONNECT_EXPECTED_CLIENT_KEYS="" # e.g. "a1b2c3d4-....-jira-confluence"
|
|
# Optional defense-in-depth on the (untrusted) install baseUrl host; enforced
|
|
# only when set. The clientKey allowlist above is the real tenant gate.
|
|
CONNECT_EXPECTED_BASE_URL="" # e.g. "your-site.atlassian.net"
|
|
# Optional: the app's own Confluence service-account accountId. When set,
|
|
# comments it authored are ignored (self-trigger loop guard).
|
|
CONFLUENCE_BOT_ACCOUNT_ID=""
|
|
# NOTE: install sharedSecrets are stored encrypted via TOKEN_ENCRYPTION_KEY (below)
|
|
# in the LangGraph store — that MUST be the durable Postgres store in prod, or
|
|
# installs are lost on restart and every webhook 401s until reinstall.
|
|
|
|
# === Slack (if using Slack trigger) ===
|
|
SLACK_BOT_TOKEN="" # From step 5
|
|
SLACK_BOT_USER_ID=""
|
|
SLACK_BOT_USERNAME=""
|
|
SLACK_SIGNING_SECRET=""
|
|
# Optional: Slack-specific default repo (falls back to DEFAULT_REPO_OWNER/NAME).
|
|
SLACK_REPO_OWNER=""
|
|
SLACK_REPO_NAME=""
|
|
# Optional: "Sign in with Slack" account linking (GitHub <-> Slack). See step 5.
|
|
SLACK_CLIENT_ID=""
|
|
SLACK_CLIENT_SECRET=""
|
|
SLACK_TEAM_ID="" # Optional; restrict linking to one workspace (T...)
|
|
|
|
# === Exa (optional — enables web search tool) ===
|
|
EXA_API_KEY="" # From https://dashboard.exa.ai
|
|
|
|
# === Reviewer / Analyzer (optional) ===
|
|
# LangSmith dataset where reviewer finding outcomes are recorded and read back by
|
|
# the analyzer. Defaults to "openswe-reviewer-outcomes" if unset.
|
|
REVIEWER_OUTCOMES_DATASET=""
|
|
# Single GitHub org whose members may trigger the agent on *public* repos.
|
|
# Empty => no public-repo gate (back-compat). Distinct from ALLOWED_GITHUB_ORGS.
|
|
PUBLIC_REPO_ORG_GATE=""
|
|
|
|
# === Sandbox (optional) ===
|
|
# Provider: langsmith (default), modal, daytona, runloop, or local. See CUSTOMIZATION.md.
|
|
SANDBOX_TYPE="langsmith"
|
|
DEFAULT_SANDBOX_SNAPSHOT_ID="" # Required when SANDBOX_TYPE=langsmith (see step 4c)
|
|
DEFAULT_SANDBOX_SNAPSHOT_FS_CAPACITY_BYTES="" # Root FS size in bytes (default: 32 GiB)
|
|
DEFAULT_SANDBOX_VCPUS="" # vCPUs per sandbox (default: 4)
|
|
DEFAULT_SANDBOX_MEM_BYTES="" # Memory in bytes per sandbox (default: 15 GiB)
|
|
DEFAULT_SANDBOX_IDLE_TTL_SECONDS="" # Auto-stop after N seconds idle (default: 7200; 0 disables)
|
|
DEFAULT_SANDBOX_DELETE_AFTER_STOP_SECONDS="" # Delete N seconds after stop (default: 86400; 0 disables)
|
|
|
|
# === Token Encryption ===
|
|
TOKEN_ENCRYPTION_KEY="" # Generate with: openssl rand -base64 32
|
|
# Supports key rotation: see "Rotating TOKEN_ENCRYPTION_KEY" below
|