Coordinator command and configuration
Runtime configuration owned by the ngit-ci coordinator.
Tagged CI release
These pages are generated from ngit-ci 0.3.0. The /upcoming/ route is retained for compatibility; the exact source commit is pinned above.
Command syntax
text
Usage: ngit-ci [OPTIONS] --repos <REPOS>Self-hosted CI coordinator for Nostr Git repositories
Loading behaviour
ngit-ci automatically reads a .env file from its working directory. Variables already present in the process environment take precedence over .env values. The complete precedence order is cli → process_environment → dotenv → defaults.
Options
This surface exports 25 public configuration entries. Pattern entries describe a family of names, not one concrete environment variable.
NGIT_CI_INDEX_RELAYS— Comma-separated list of index relay URLs. These relays index NIP-34 repository announcements (kind 30617) network-wide. They are used solely for discovery: the coordinator learns which repos exist matching the whitelist, and which relays host each repo. Live 30618 / 1618 / 1619 subscriptions are then opened directly against those repo-announced relays. Defaults to a single entry:wss://index.ngit.dev.- CLI:
--index-relays <INDEX_RELAYS> - Value: type
relay_url; cardinality1+; defaultwss://index.ngit.dev; values — - Runtime: scope
coordinator; reloadrestart required - Rules:
index-relays-non-empty,index-relay-url-format
- CLI:
NGIT_CI_NOSTR_SECRET_RELAYS— Coordinator inbox relays for encrypted Repository Secret Updates. Empty disables Nostr secret intake. When configured, the same recipient and every normalized relay URL are advertised to all maintainers of repositories admitted by--repos.- CLI:
--nostr-secret-relays <NOSTR_SECRET_RELAYS> - Value: type
relay_url; cardinality0+; default —; values — - Runtime: scope
coordinator; reloadrestart required - Rules:
nostr-secret-relay-url-format
- CLI:
NGIT_CI_REPOS— Comma-separated list of repositories to watch. Each entry is one of: -npub1...→ all repos from this author -npub1.../identifier→ a specific repo Hex pubkeys are also accepted in place of npubs. Bare identifiers (no pubkey) are not supported and will be skipped.- CLI:
--repos <REPOS> - Value: type
repository_selector; cardinality1+; default —; values — - Runtime: scope
coordinator; reloadrestart required - Rules:
watched-repositories-valid-non-empty,repository-secret-aliases-unique
- CLI:
NGIT_CI_NIX_WORKFLOWS— Enable native Nix workflows with explicitly trusted providers. Required in ngit-ci 0.3 and later.- CLI:
--nix-workflows <NIX_WORKFLOWS> - Value: type
boolean; cardinality1; defaulttrue; valuestrue,false - Runtime: scope
coordinator; reloadrestart required - Rules:
nix-workflows-provider-opt-in,weak-container-explicit-consent
- CLI:
NGIT_CI_DISCOVERY_SOCKET— Private socket of the separately credentialed discovery service. Required at startup when native Nix workflows are enabled- CLI:
--discovery-socket <DISCOVERY_SOCKET> - Value: type
path; cardinality1; default/run/ngit-ci-discovery/worker.sock; values — - Runtime: scope
coordinator; reloadrestart required - Rules: —
- CLI:
NGIT_CI_WEAK_CONTAINERIZATION— Use shared-kernel job containers instead of hardware VMs. Trusted code only- CLI:
--weak-containerization - Value: type
boolean; cardinality1; defaultfalse; values — - Runtime: scope
coordinator; reloadrestart required - Rules:
weak-container-explicit-consent
- CLI:
NGIT_CI_WEAK_CONTAINERIZATION_ALLOW_SECRETS— Permit otherwise-authorized secrets in weak containers (requires weak mode)- CLI:
--weak-containerization-allow-secrets - Value: type
boolean; cardinality1; defaultfalse; values — - Runtime: scope
coordinator; reloadrestart required - Rules:
weak-container-explicit-consent
- CLI:
NGIT_CI_WEAK_CONTAINERIZATION_AUTHORIZATION— Standing execution grants: exact repository coordinate=trusted trigger signer hex/npub. Each signer may authorize arbitrary code for that repository, including PR revisions- CLI:
--weak-containerization-authorization <WEAK_CONTAINERIZATION_AUTHORIZATION> - Value: type
string; cardinality0+; default —; values — - Runtime: scope
coordinator; reloadrestart required - Rules:
weak-container-explicit-consent
- CLI:
NGIT_CI_PROVIDERS— Nostr identities trusted to execute native Nix jobs without secrets. Secret-bearing jobs require the separate --providers-allowed-secrets allowlist. Provider Advertisements are discovered on the same--index-relaysused for coordinator and repository discovery. Empty denies secret-free jobs. Both provider allowlists require--nix-workflows.- CLI:
--providers <NIX_PROVIDERS> - Value: type
nostr_public_key; cardinality0+; default —; values — - Runtime: scope
coordinator; reloadrestart required - Rules:
nix-provider-format,nix-workflows-provider-opt-in
- CLI:
NGIT_CI_PROVIDERS_ALLOWED_SECRETS— Nostr identities explicitly allowed to receive authorized job secrets. May overlap --providers; empty denies all secret-bearing Nix jobs- CLI:
--providers-allowed-secrets <NIX_SECRET_PROVIDERS> - Value: type
nostr_public_key; cardinality0+; default —; values — - Runtime: scope
coordinator; reloadrestart required - Rules:
nix-provider-format,nix-workflows-provider-opt-in
- CLI:
NGIT_CI_RESULT_RECOVERY_TIMEOUT_SECS— Additional time to await a Nix result after its latest execution deadline- CLI:
--result-recovery-timeout-secs <RESULT_RECOVERY_TIMEOUT_SECS> - Value: type
duration_seconds; cardinality1; default10800; values — - Runtime: scope
coordinator; reloadrestart required - Rules:
nix-result-finalization-timeout-positive
- CLI:
NGIT_CI_PROVIDER_REQUIREMENT_DEFAULTS— JSON object containing optional requirements and environment hash defaults. Defaults to 4 vCPUs and 8 GiB RAM, with no scratch minimum. Repository values replace these defaults per key; authorization and isolation still apply- CLI:
--provider-requirement-defaults <NIX_SELECTION_DEFAULTS> - Value: type
json_object; cardinality1; default{"requirements":{"resources":{"vcpus":{"gte":4},"memory-mib":{"gte":8192}}}}; values — - Runtime: scope
coordinator; reloadrestart required - Rules:
nix-selection-defaults-format
- CLI:
NGIT_CI_EXECUTION_POLICY— When admitted repositories may execute ordinary CI triggers:request-required(default) orautomatic. Admission remains controlled by--repos. Underrequest-required, a valid kind-9843 Service Request must be observed before push and pull request workflows run. A kind-9840 Manual Trigger remains a one-shot explicit request and does not need a standing Service Request.- CLI:
--execution-policy <EXECUTION_POLICY> - Value: type
enum; cardinality1; defaultrequest-required; valuesrequest-required,automatic - Runtime: scope
coordinator; reloadrestart required - Rules: —
- CLI:
NGIT_CI_ADDITIONAL_REQUESTERS— Comma-separated npubs or hex pubkeys whose Service Requests may enable work for an admitted repository even when they are not maintainers. This is a local acceptance policy and does not grant repository authority.- CLI:
--additional-requesters <ADDITIONAL_REQUESTERS> - Value: type
nostr_public_key; cardinality0+; defaultempty string; values — - Runtime: scope
coordinator; reloadrestart required - Rules:
additional-requester-format
- CLI:
NGIT_CI_LOG_LEVEL— Log level (e.g.info,debug,ngit_ci=debug,nostr=info)- CLI:
--log-level <LOG_LEVEL> - Value: type
tracing_filter; cardinality1; defaultinfo; values — - Runtime: scope
coordinator; reloadrestart required - Rules: —
- CLI:
NGIT_CI_WORK_DIR— Local working directory for embedded runner clones and job state- CLI:
--work-dir <WORK_DIR> - Value: type
path; cardinality1; default.ngit-ci-work; values — - Runtime: scope
coordinator; reloadrestart required - Rules: —
- CLI:
NGIT_CI_MAX_ACTIVE_WORKFLOWS— Maximum active native workflow drivers, including waits for remote results. Providers independently enforce execution capacity using their budgets- CLI:
--max-active-workflows <MAX_ACTIVE_WORKFLOWS> - Value: type
integer; cardinality1; default32; values — - Runtime: scope
coordinator; reloadrestart required - Rules:
max-active-workflows-positive
- CLI:
NGIT_CI_MAX_EXECUTION_TIMEOUT_SECS— Ceiling for job timeout overrides; unset uses the greater of 6 hours and the default timeout- CLI:
--max-execution-timeout-secs <MAX_EXECUTION_TIMEOUT_SECS> - Value: type
duration_seconds; cardinality1; default —; values — - Runtime: scope
coordinator; reloadrestart required - Rules:
max-execution-timeout-range
- CLI:
NGIT_CI_EXECUTION_TIMEOUT_SECS— Default signed execution timeout for a native job, enforced by its provider- CLI:
--execution-timeout-secs <EXECUTION_TIMEOUT_SECS> - Value: type
duration_seconds; cardinality1; default7200; values — - Runtime: scope
coordinator; reloadrestart required - Rules:
max-execution-timeout-range,execution-timeout-range
- CLI:
NGIT_CI_MAX_QUEUED_JOBS— Maximum number of native workflow requests waiting for admission or scheduling. Excess incoming requests may be retried on relay replay- CLI:
--max-queued-jobs <MAX_QUEUED_JOBS> - Value: type
integer; cardinality1; default64; values — - Runtime: scope
coordinator; reloadrestart required - Rules:
max-queued-jobs-positive
- CLI:
NGIT_CI_PROCESSED_IDS_PATH— Path to the JSON file storing event ids the coordinator has already processed. Prevents duplicate CI runs across restarts when the index relay still has those events in its retention window. Defaults to.coordinator-processed-ids.jsonin the working directory.- CLI:
--processed-ids-path <PROCESSED_IDS_PATH> - Value: type
path; cardinality1; default.coordinator-processed-ids.json; values — - Runtime: scope
coordinator; reloadrestart required - Rules: —
- CLI:
NGIT_CI_EVENT_CACHE_DIR— Directory containing the persistent rust-nostr event cache. Backend filenames and layout are private implementation details- CLI:
--event-cache-dir <EVENT_CACHE_DIR> - Value: type
path; cardinality1; default.ngit-ci-cache; values — - Runtime: scope
coordinator; reloadrestart required - Rules: —
- CLI:
NGIT_CI_SECRET_<ALIAS>__<NAME>(pattern, secret) — Per-repository workflow secrets selected by an alias declared on a watched repository. Secret values are never accepted on argv.- CLI: not accepted on argv
- Value: type
repository_secret_pattern; cardinality0+; default —; values — - Runtime: scope
coordinator_jobs; reloadsource dependent - Rules:
repository-secret-aliases-unique,repository-secret-name-format,repository-secret-name-reserved,github-read-token-format
NGIT_CI_COORDINATOR_NSEC(secret) — Coordinator Nostr secret key. It is never accepted on argv.- CLI: not accepted on argv
- Value: type
nostr_secret_key; cardinality0–1; default —; values — - Runtime: scope
coordinator; reloadrestart required - Rules:
coordinator-key-format
NGIT_CI_OPERATOR_BUNKER(secret) — Operator fallback NIP-46 bunker URI for sealing Nostr-provisioned secrets. It is never accepted on argv.- CLI: not accepted on argv
- Value: type
nip46_bunker_uri; cardinality0–1; default —; values — - Runtime: scope
coordinator; reloadrestart required - Rules:
operator-bunker-uri-format