Skip to content

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.
  • 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; cardinality 0+; default —; values —
    • Runtime: scope coordinator; reload restart required
    • Rules: nostr-secret-relay-url-format
  • 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.
  • NGIT_CI_NIX_WORKFLOWS — Enable native Nix workflows with explicitly trusted providers. Required in ngit-ci 0.3 and later.
  • 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; cardinality 1; default /run/ngit-ci-discovery/worker.sock; values —
    • Runtime: scope coordinator; reload restart required
    • Rules: —
  • NGIT_CI_WEAK_CONTAINERIZATION — Use shared-kernel job containers instead of hardware VMs. Trusted code only
    • CLI: --weak-containerization
    • Value: type boolean; cardinality 1; default false; values —
    • Runtime: scope coordinator; reload restart required
    • Rules: weak-container-explicit-consent
  • NGIT_CI_WEAK_CONTAINERIZATION_ALLOW_SECRETS — Permit otherwise-authorized secrets in weak containers (requires weak mode)
    • CLI: --weak-containerization-allow-secrets
    • Value: type boolean; cardinality 1; default false; values —
    • Runtime: scope coordinator; reload restart required
    • Rules: weak-container-explicit-consent
  • 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; cardinality 0+; default —; values —
    • Runtime: scope coordinator; reload restart required
    • Rules: weak-container-explicit-consent
  • 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-relays used for coordinator and repository discovery. Empty denies secret-free jobs. Both provider allowlists require --nix-workflows.
  • NGIT_CI_PROVIDERS_ALLOWED_SECRETS — Nostr identities explicitly allowed to receive authorized job secrets. May overlap --providers; empty denies all secret-bearing Nix jobs
  • 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; cardinality 1; default 10800; values —
    • Runtime: scope coordinator; reload restart required
    • Rules: nix-result-finalization-timeout-positive
  • 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; cardinality 1; default {"requirements":{"resources":{"vcpus":{"gte":4},"memory-mib":{"gte":8192}}}}; values —
    • Runtime: scope coordinator; reload restart required
    • Rules: nix-selection-defaults-format
  • NGIT_CI_EXECUTION_POLICY — When admitted repositories may execute ordinary CI triggers: request-required (default) or automatic. Admission remains controlled by --repos. Under request-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; cardinality 1; default request-required; values request-required, automatic
    • Runtime: scope coordinator; reload restart required
    • Rules: —
  • 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; cardinality 0+; default empty string; values —
    • Runtime: scope coordinator; reload restart required
    • Rules: additional-requester-format
  • NGIT_CI_LOG_LEVEL — Log level (e.g. info, debug, ngit_ci=debug,nostr=info)
    • CLI: --log-level <LOG_LEVEL>
    • Value: type tracing_filter; cardinality 1; default info; values —
    • Runtime: scope coordinator; reload restart required
    • Rules: —
  • NGIT_CI_WORK_DIR — Local working directory for embedded runner clones and job state
    • CLI: --work-dir <WORK_DIR>
    • Value: type path; cardinality 1; default .ngit-ci-work; values —
    • Runtime: scope coordinator; reload restart required
    • Rules: —
  • 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; cardinality 1; default 32; values —
    • Runtime: scope coordinator; reload restart required
    • Rules: max-active-workflows-positive
  • 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; cardinality 1; default —; values —
    • Runtime: scope coordinator; reload restart required
    • Rules: max-execution-timeout-range
  • NGIT_CI_EXECUTION_TIMEOUT_SECS — Default signed execution timeout for a native job, enforced by its provider
  • 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; cardinality 1; default 64; values —
    • Runtime: scope coordinator; reload restart required
    • Rules: max-queued-jobs-positive
  • 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.json in the working directory.
    • CLI: --processed-ids-path <PROCESSED_IDS_PATH>
    • Value: type path; cardinality 1; default .coordinator-processed-ids.json; values —
    • Runtime: scope coordinator; reload restart required
    • Rules: —
  • 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; cardinality 1; default .ngit-ci-cache; values —
    • Runtime: scope coordinator; reload restart required
    • Rules: —
  • 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.
  • 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; cardinality 0–1; default —; values —
    • Runtime: scope coordinator; reload restart 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; cardinality 0–1; default —; values —
    • Runtime: scope coordinator; reload restart required
    • Rules: operator-bunker-uri-format