Skip to content

Coordinator configuration constraints ​

These 20 checks apply when the coordinator loads or uses its configuration.

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.

Rules ​

nix-selection-defaults-format ​

JSON object with optional requirements and environment hash defaults; predicates use eq/gte/lte/contains and a pinned environment is a lowercase SHA-256 digest. Repository predicates replace defaults per key.

  • Options: NGIT_CI_PROVIDER_REQUIREMENT_DEFAULTS
  • Rule: format rule nix_selection_defaults_json
  • Enforced at: startup
  • Stable ID: ngit-ci.configuration.coordinator.constraint.nix-selection-defaults-format

nix-provider-format ​

Every trusted Nix provider must be an npub or hexadecimal Nostr public key, with no empty entries.

  • Options: NGIT_CI_PROVIDERS, NGIT_CI_PROVIDERS_ALLOWED_SECRETS
  • Rule: format rule nostr_public_key
  • Enforced at: startup
  • Stable ID: ngit-ci.configuration.coordinator.constraint.nix-provider-format

nix-workflows-provider-opt-in ​

Native workflows must be enabled and at least one ordinary or secret provider must be configured.

  • Options: NGIT_CI_NIX_WORKFLOWS, NGIT_CI_PROVIDERS, NGIT_CI_PROVIDERS_ALLOWED_SECRETS
  • Rule: custom rule native_enabled_and_nonempty_provider_list
  • Enforced at: startup
  • Stable ID: ngit-ci.configuration.coordinator.constraint.nix-workflows-provider-opt-in

Weak containers require native workflows and exact repository/signer grants; secret consent additionally requires weak mode. Grants are enforced on admission and restart.

  • Options: NGIT_CI_WEAK_CONTAINERIZATION, NGIT_CI_WEAK_CONTAINERIZATION_ALLOW_SECRETS, NGIT_CI_WEAK_CONTAINERIZATION_AUTHORIZATION, NGIT_CI_NIX_WORKFLOWS
  • Rule: custom rule explicit_weak_execution_and_separate_secret_consent
  • Enforced at: startup
  • Stable ID: ngit-ci.configuration.coordinator.constraint.weak-container-explicit-consent

index-relays-non-empty ​

At least one index relay must be configured.

  • Options: NGIT_CI_INDEX_RELAYS
  • Rule: at least 1 item
  • Enforced at: startup
  • Stable ID: ngit-ci.configuration.coordinator.constraint.index-relays-non-empty

index-relay-url-format ​

Every index relay must be a bare host or use a ws:// or wss:// URL; bare hosts are normalized to wss://.

  • Options: NGIT_CI_INDEX_RELAYS
  • Rule: format rule bare_host_or_websocket_url
  • Enforced at: startup
  • Stable ID: ngit-ci.configuration.coordinator.constraint.index-relay-url-format

nostr-secret-relay-url-format ​

Every non-empty Nostr secret inbox relay must parse as a relay URL after bare-host normalization to wss://.

  • Options: NGIT_CI_NOSTR_SECRET_RELAYS
  • Rule: format rule nostr_relay_url
  • Enforced at: startup
  • Stable ID: ngit-ci.configuration.coordinator.constraint.nostr-secret-relay-url-format

watched-repositories-valid-non-empty ​

At least one repository selector must parse as an npub or hex public key, optionally followed by an identifier and uppercase alias; invalid entries are skipped.

  • Options: NGIT_CI_REPOS
  • Rule: custom rule at_least_one_valid_repository_selector_after_skipping_invalid_entries
  • Enforced at: startup
  • Stable ID: ngit-ci.configuration.coordinator.constraint.watched-repositories-valid-non-empty

additional-requester-format ​

Every additional requester must be an npub or hexadecimal Nostr public key, with no empty entries.

  • Options: NGIT_CI_ADDITIONAL_REQUESTERS
  • Rule: format rule comma_separated_npub_or_hex_public_keys
  • Enforced at: startup
  • Stable ID: ngit-ci.configuration.coordinator.constraint.additional-requester-format

max-active-workflows-positive ​

The active native workflow limit must be greater than zero.

  • Options: NGIT_CI_MAX_ACTIVE_WORKFLOWS
  • Rule: greater than 0 workflows
  • Enforced at: startup
  • Stable ID: ngit-ci.configuration.coordinator.constraint.max-active-workflows-positive

max-execution-timeout-range ​

The native execution ceiling defaults to the greater of 21600 seconds and the execution default. An explicit ceiling must be at least the execution default and at most 604800 seconds.

  • Options: NGIT_CI_MAX_EXECUTION_TIMEOUT_SECS, NGIT_CI_EXECUTION_TIMEOUT_SECS
  • Rule: custom rule execution_default_lte_maximum_lte_604800_seconds
  • Enforced at: startup
  • Stable ID: ngit-ci.configuration.coordinator.constraint.max-execution-timeout-range

execution-timeout-range ​

The signed native execution timeout must be between 1 and 604800 seconds.

  • Options: NGIT_CI_EXECUTION_TIMEOUT_SECS
  • Rule: custom rule integer_between_1_and_604800_seconds
  • Enforced at: startup
  • Stable ID: ngit-ci.configuration.coordinator.constraint.execution-timeout-range

max-queued-jobs-positive ​

The queued-job limit must be greater than zero.

  • Options: NGIT_CI_MAX_QUEUED_JOBS
  • Rule: greater than 0 jobs
  • Enforced at: startup
  • Stable ID: ngit-ci.configuration.coordinator.constraint.max-queued-jobs-positive

nix-result-finalization-timeout-positive ​

The Nix result finalization allowance must be greater than zero seconds.

  • Options: NGIT_CI_RESULT_RECOVERY_TIMEOUT_SECS
  • Rule: greater than 0 seconds
  • Enforced at: startup
  • Stable ID: ngit-ci.configuration.coordinator.constraint.nix-result-finalization-timeout-positive

coordinator-key-format ​

A supplied coordinator key must be a valid Nostr secret key.

  • Options: NGIT_CI_COORDINATOR_NSEC
  • Rule: format rule nostr_secret_key
  • Enforced at: startup
  • Stable ID: ngit-ci.configuration.coordinator.constraint.coordinator-key-format

operator-bunker-uri-format ​

A supplied operator bunker must be a non-empty valid NIP-46 bunker URI.

  • Options: NGIT_CI_OPERATOR_BUNKER
  • Rule: format rule nip46_bunker_uri
  • Enforced at: startup
  • Stable ID: ngit-ci.configuration.coordinator.constraint.operator-bunker-uri-format

repository-secret-aliases-unique ​

Repository aliases declared by watched-repository entries must be unique before repository secrets can be loaded.

  • Options: NGIT_CI_REPOS, NGIT_CI_SECRET_<ALIAS>__<NAME>
  • Rule: custom rule declared_repository_aliases_unique
  • Enforced at: startup
  • Stable ID: ngit-ci.configuration.coordinator.constraint.repository-secret-aliases-unique

repository-secret-name-format ​

Repository secret names must match [A-Z_][A-Z0-9_]*.

  • Options: NGIT_CI_SECRET_<ALIAS>__<NAME>
  • Rule: matches ^[A-Z_][A-Z0-9_]*$ (case-sensitive)
  • Enforced at: secret_ingestion
  • Stable ID: ngit-ci.configuration.coordinator.constraint.repository-secret-name-format

repository-secret-name-reserved ​

Repository secret names are case-insensitively reserved when equal to PATH, HOME, CI, DOCKER_HOST, XDG_CONFIG_HOME, XDG_CACHE_HOME, or NIX_CONFIG, or when prefixed by NGIT_CI_, RUNNER_, or ACTIONS_. Operator sources also skip WORKFLOW_SECRETS_DECRYPTION_BUNKER because maintainer bindings own it.

  • Options: NGIT_CI_SECRET_<ALIAS>__<NAME>
  • Rule: reject reserved names: exact PATH, HOME, CI, DOCKER_HOST, XDG_CONFIG_HOME, XDG_CACHE_HOME, NIX_CONFIG; prefixes NGIT_CI_, RUNNER_, ACTIONS_; operator-source exact WORKFLOW_SECRETS_DECRYPTION_BUNKER (case-insensitive)
  • Enforced at: secret_ingestion
  • Stable ID: ngit-ci.configuration.coordinator.constraint.repository-secret-name-reserved

github-read-token-format ​

A GH_READ_TOKEN selected for an authorized run must contain one or more ASCII letters, digits, underscores, or hyphens.

  • Options: NGIT_CI_SECRET_<ALIAS>__<NAME>
  • Rule: matches ^[A-Za-z0-9_-]+$ (case-sensitive)
  • Enforced at: authorized_run_setup
  • Stable ID: ngit-ci.configuration.coordinator.constraint.github-read-token-format