refactor(env+make): rename static.env→default.env + sort + lint gates

Rename env/static.env → env/default.env across the entire repo
(string label, doc links, Python file-path constants) — the
`parse_static_env*` function names stay as a stable API surface.

Sort all `*.env` / `*.env.j2` entries alphabetically (52 in
default.env, 4 in ci.env, 46 of 49 j2 templates; 3 templates
with Jinja2 `{% %}` control flow are skipped because conditional
blocks would tear apart under a naive sort). Sort all 83
Makefile target blocks alphabetically; .PHONY group headers
stay in place.

Collapse the two remaining multi-line Makefile recipe comments
(dotenv-force, test-signed) to single-line WHY comments.

Add four lint tests under tests/lint/filesystem/ to keep the
invariants enforced going forward:
- env/test_alphabetical_sort.py
- env/test_single_line_comments.py        (# nocheck: markers exempt)
- makefile/test_alphabetical_targets.py
- makefile/test_single_line_comments.py   (# nocheck: markers exempt)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
kevinveenbirkenbachandClaude Opus 4.7 committed 2026-05-20 22:26:16 +02:00
1 parent f0f11ca41f
commit 22cf6f38f1
79 files changed
+1820 -964

No files matched your search

+244 -249
View File
@@ -32,40 +32,21 @@ endif
.PHONY: deploy-fresh-purged-apps deploy-reuse-kept-apps deploy-reuse-purged-apps deploy-fresh-kept-all deploy-bundles redeploy-bundles
.PHONY: bootstrap mark-development
# Bootstrap the local development environment.
environment-bootstrap: wsl2-systemd-check install-python-dev install-lint apparmor-teardown dns-setup disable-ipv6
# Run all act-based deploy checks.
act-all:
@bash scripts/tests/deploy/act/all.sh
# Tear down the local development environment.
environment-teardown: apparmor-restore dns-remove restore-ipv6
# Run the act-based app deploy check.
act-app:
@bash scripts/tests/deploy/act/app.sh
# Enable systemd on WSL2.
wsl2-systemd-check:
@bash scripts/system/systemd/enable/wsl2.sh
# Run the act-based workflow deploy check.
act-workflow:
@bash scripts/tests/deploy/act/workflow.sh
# Set up DNS on WSL2.
wsl2-dns-setup:
@sudo bash scripts/system/network/dns/setup/wsl.sh
# Trust Windows certificates in WSL2.
wsl2-trust-windows:
@bash scripts/system/tls/trust/wsl2.sh
# Configure DNS on Linux.
dns-setup: wsl2-dns-setup
@bash scripts/system/network/dns/setup/linux.sh
# Remove the DNS configuration.
dns-remove:
@bash scripts/system/network/dns/remove.sh
# Tear down AppArmor for local development.
apparmor-teardown:
@echo "==> AppArmor: full teardown (local dev)"
@if grep -q '^[Yy1]' /sys/module/apparmor/parameters/enabled 2>/dev/null; then \
sudo bash scripts/system/apparmor/teardown.sh; \
else \
echo "[apparmor] AppArmor module is not loaded — skipping teardown"; \
fi
# Install OS-level sandbox dependencies (bubblewrap, socat) required by the Claude Code sandbox.
agent-install:
@bash scripts/install/sandbox.sh
# Restore AppArmor profiles.
apparmor-restore:
@@ -76,20 +57,60 @@ apparmor-restore:
echo "[apparmor] AppArmor module is not loaded — skipping restore"; \
fi
# Trust the local CA on Linux and WSL2.
trust-ca:
@bash scripts/system/tls/trust/linux.sh
@bash scripts/system/tls/trust/wsl2.sh
# Tear down AppArmor for local development.
apparmor-teardown:
@echo "==> AppArmor: full teardown (local dev)"
@if grep -q '^[Yy1]' /sys/module/apparmor/parameters/enabled 2>/dev/null; then \
sudo bash scripts/system/apparmor/teardown.sh; \
else \
echo "[apparmor] AppArmor module is not loaded — skipping teardown"; \
fi
# Disable IPv6 for local development.
disable-ipv6:
@sudo bash scripts/system/network/ipv6/disable.sh
@"$(MAKE)" refresh
# Auto-format all source files (skips tools that are not installed).
autoformat: install-lint
@bash scripts/lint/wrapper.sh autoformat
# Restore IPv6 settings.
restore-ipv6:
@sudo bash scripts/system/network/ipv6/restore.sh
@"$(MAKE)" refresh
# Install dependencies and prepare the project.
bootstrap: install setup
# Build the local image.
build: dockerignore
@IMAGE_TAG="$$(bash scripts/meta/resolve/image/local.sh)" \
bash scripts/image/build.sh
# Clean up image artifacts.
build-cleanup:
@bash scripts/image/cleanup.sh
# Pull the build dependency image.
build-dependency:
@docker pull ghcr.io/kevinveenbirkenbach/pkgmgr-$${INFINITO_DISTRO}:stable
# Build the local image if it is missing.
build-missing:
@IMAGE_TAG="$$(bash scripts/meta/resolve/image/local.sh)" \
bash scripts/image/build.sh --missing
# Build the local image without cache.
build-no-cache: build-dependency
@IMAGE_TAG="$$(bash scripts/meta/resolve/image/local.sh)" \
bash scripts/image/build.sh --no-cache
# Build the no-cache image for every distro.
build-no-cache-all:
@set -euo pipefail; \
for d in $${INFINITO_DISTROS}; do \
echo "=== build-no-cache: $$d ==="; \
INFINITO_DISTRO="$$d" "$(MAKE)" build-no-cache; \
done
# Wipe on-disk caches under /var/cache/infinito/core/cache/ (stops cache containers first; re-run `make up` to recreate).
cache-clean:
@bash scripts/system/cache/clean.sh
# Mark all shell scripts under scripts/ as executable.
chmod-scripts:
@find scripts/ -name "*.sh" -exec chmod +x {} \;
# Remove ignored files from the working tree; falls back to sudo for container-owned __pycache__/*.pyc, warns and continues if both fail.
clean:
@@ -107,110 +128,109 @@ clean:
echo "WARNING: (cleanup continues)"; \
fi
# Wipe on-disk caches under /var/cache/infinito/core/cache/ (stops cache containers first; re-run `make up` to recreate).
cache-clean:
@bash scripts/system/cache/clean.sh
# Remove ignored files from the working tree with sudo.
clean-sudo:
@echo "Removing ignored git files with sudo"
sudo git clean -fdX;
# Show disk and Docker resource usage to identify what to clean up.
system-disk-usage:
@bash scripts/system/meta/disk-usage.sh
# Purge one or more app entities from the container.
container-purge-entity:
@bash scripts/tests/deploy/local/purge/entity.sh
# Run the broad low-hardware cleanup routine.
system-purge:
@bash scripts/system/purge/system.sh
# Purge the broader container-level deploy artifacts.
container-purge-system: container-purge-entity
@bash scripts/tests/deploy/local/purge/inventory.sh
@bash scripts/tests/deploy/local/purge/web.sh
@bash scripts/tests/deploy/local/purge/lib.sh
# Restart the development stack.
restart:
@"$${PYTHON}" -m cli.administration.deploy.development restart
# Refresh the container inventory without deploying apps.
container-refresh-inventory:
@bash scripts/tests/deploy/local/reset/inventory.sh
# Refresh the running development stack only when it already exists.
refresh:
@bash scripts/system/network/docker/stack_refresh.sh
# One-off deploy of all apps cumulated from one or more inventory bundles. Set INFINITO_FULL_CYCLE=true to also run the update pass (default: false).
deploy-bundles: down up
@bash scripts/tests/deploy/local/deploy/bundles.sh
# Run a shell (`make exec`) or command (`make exec INFINITO_CMD="..."`) in the running container.
exec:
@bash scripts/tests/deploy/local/exec/container.sh
# Create a fresh inventory and deploy all apps.
deploy-fresh-kept-all:
@echo "=== local full deploy (type=$${INFINITO_TEST_DEPLOY_TYPE}, distro=$${INFINITO_DISTRO}) ==="
@bash scripts/tests/deploy/local/deploy/fresh-kept-all.sh
# Run a one-off `docker run` inside the running container.
run:
@bash scripts/tests/deploy/local/exec/run.sh
# Create a fresh inventory and deploy one or more apps.
deploy-fresh-kept-apps:
@: "$${INFINITO_APPS:?INFINITO_APPS must be set (e.g. INFINITO_APPS=web-app-nextcloud)}"
@bash scripts/tests/deploy/local/deploy/fresh-kept-app.sh "$${INFINITO_APPS}"
# Start the development stack.
up: install
@"$${PYTHON}" -m cli.administration.deploy.development up
# Deploy one or more apps with purged entities. Set INFINITO_FULL_CYCLE=true to also run the update pass.
deploy-fresh-purged-apps: down up
@bash scripts/tests/deploy/local/deploy/fresh-purged-app.sh
# Stop the development stack.
down:
@"$${PYTHON}" -m cli.administration.deploy.development down
# Redeploy all apps on an existing inventory.
deploy-reuse-kept-all:
@bash scripts/tests/deploy/local/deploy/reuse-kept-all.sh
# Stop the development stack without removing volumes.
stop:
@"$${PYTHON}" -m cli.administration.deploy.development stop
# Redeploy one or more apps on an existing inventory.
deploy-reuse-kept-apps:
@INFINITO_DEBUG=true bash scripts/tests/deploy/local/deploy/reuse-kept-app.sh
# Mark all shell scripts under scripts/ as executable.
chmod-scripts:
@find scripts/ -name "*.sh" -exec chmod +x {} \;
# Purge one or more app entities, then redeploy them on existing inventory.
deploy-reuse-purged-apps: container-purge-entity
@$(MAKE) deploy-reuse-kept-apps
# Print the repository role list.
list:
@echo "Generating the roles list"
@"$${PYTHON}" -m cli.build.list
# Disable IPv6 for local development.
disable-ipv6:
@sudo bash scripts/system/network/ipv6/disable.sh
@"$(MAKE)" refresh
# Print the repository tree.
tree:
@echo "Generating Tree"
@"$${PYTHON}" -m cli.build.tree -D 2
# Remove the DNS configuration.
dns-remove:
@bash scripts/system/network/dns/remove.sh
# Build the meta graph inputs.
mig: list tree
@echo "Creating meta data for meta infinity graph"
# Build the local image.
build: dockerignore
@IMAGE_TAG="$$(bash scripts/meta/resolve/image/local.sh)" \
bash scripts/image/build.sh
# Build the local image if it is missing.
build-missing:
@IMAGE_TAG="$$(bash scripts/meta/resolve/image/local.sh)" \
bash scripts/image/build.sh --missing
# Pull the build dependency image.
build-dependency:
@docker pull ghcr.io/kevinveenbirkenbach/pkgmgr-$${INFINITO_DISTRO}:stable
# Build the local image without cache.
build-no-cache: build-dependency
@IMAGE_TAG="$$(bash scripts/meta/resolve/image/local.sh)" \
bash scripts/image/build.sh --no-cache
# Build the no-cache image for every distro.
build-no-cache-all:
@set -euo pipefail; \
for d in $${INFINITO_DISTROS}; do \
echo "=== build-no-cache: $$d ==="; \
INFINITO_DISTRO="$$d" "$(MAKE)" build-no-cache; \
done
# Clean up image artifacts.
build-cleanup:
@bash scripts/image/cleanup.sh
# Configure DNS on Linux.
dns-setup: wsl2-dns-setup
@bash scripts/system/network/dns/setup/linux.sh
# Regenerate .dockerignore from .gitignore (which carries the .git entry Docker needs). Race-safe under parallel make setup invocations.
dockerignore:
@echo "Create dockerignore"
cat .gitignore > .dockerignore
# Regenerate .env (SPOT) from env/default.env + runtime context (distro, cache sizes, secrets, ...).
dotenv:
@python3 -m cli.meta.env
# Force a clean .env regeneration in a stripped env (avoids stale BASH_ENV INFINITO_* values pinning via setdefault).
dotenv-force:
@rm -f .env
@env -i HOME="$${HOME}" PATH="$${PATH}" python3 -m cli.meta.env
# Stop the development stack.
down:
@"$${PYTHON}" -m cli.administration.deploy.development down
# Bootstrap the local development environment.
environment-bootstrap: wsl2-systemd-check install-python-dev install-lint apparmor-teardown dns-setup disable-ipv6
# Tear down the local development environment.
environment-teardown: apparmor-restore dns-remove restore-ipv6
# Run a shell (`make exec`) or command (`make exec INFINITO_CMD="..."`) in the running container.
exec:
@bash scripts/tests/deploy/local/exec/container.sh
# Install all runtime dependencies, incremental via a stamp file (see scripts/install/all.sh).
install:
@bash scripts/install/all.sh
# Install Ansible dependencies.
install-ansible:
@ANSIBLE_COLLECTIONS_DIR="$(HOME)/.ansible/collections" \
bash scripts/install/ansible.sh
# Force a full reinstall (drop the stamp and rebuild it).
install-force:
@bash scripts/install/all.sh --force
# Install lint deps (host/docker via INFINITO_LINT_RUNNER, per-env stamp).
install-lint:
@bash scripts/install/wrapper.sh
@@ -219,22 +239,6 @@ install-lint:
install-lint-force:
@bash scripts/install/wrapper.sh --force
# Install agent skills from skills-lock.json.
install-skills:
@bash scripts/install/skills/install.sh
# Update all agent skills to latest versions and refresh skills-lock.json.
update-skills:
@bash scripts/install/skills/update.sh
# Install the system Python prerequisites.
install-system-python:
@bash roles/dev-python/files/install.sh ensure
# Install the virtual environment.
install-venv: install-system-python
@bash scripts/install/venv.sh
# Install Python tooling.
install-python: install-venv
@bash scripts/install/python.sh
@@ -244,43 +248,17 @@ install-python-dev: install-python
@bash scripts/install/python.sh dev
@bash scripts/install/pre-commit.sh
# Install all runtime dependencies, incremental via a stamp file (see scripts/install/all.sh).
install:
@bash scripts/install/all.sh
# Install agent skills from skills-lock.json.
install-skills:
@bash scripts/install/skills/install.sh
# Force a full reinstall (drop the stamp and rebuild it).
install-force:
@bash scripts/install/all.sh --force
# Install the system Python prerequisites.
install-system-python:
@bash roles/dev-python/files/install.sh ensure
# Install OS-level sandbox dependencies (bubblewrap, socat) required by the Claude Code sandbox.
agent-install:
@bash scripts/install/sandbox.sh
# Regenerate .env (SPOT) from env/static.env + runtime context (distro, cache sizes, secrets, ...).
dotenv:
@python3 -m cli.meta.env
# Force a clean .env regeneration. Runs in a stripped env so the Makefile's
# BASH_ENV-pre-loaded INFINITO_* values do not bleed into setdefault and
# pin stale numbers (e.g. INFINITO_WORKER_FETCH after a factor change).
dotenv-force:
@rm -f .env
@env -i HOME="$${HOME}" PATH="$${PATH}" python3 -m cli.meta.env
# Run the setup step after generating .dockerignore.
setup: dockerignore dotenv
@bash scripts/setup.sh
# Create the development setup marker.
mark-development: dockerignore
touch env.development
# Install dependencies and prepare the project.
bootstrap: install setup
# Run setup after cleaning ignored files.
setup-clean: clean setup
@echo "Full build with cleanup before was executed."
# Install the virtual environment.
install-venv: install-system-python
@bash scripts/install/venv.sh
# Run all lint checks in parallel (per-check host/docker via INFINITO_LINT_RUNNER).
lint: install-lint
@@ -300,6 +278,18 @@ lint-action: install-lint
lint-ansible: install-lint
@bash scripts/lint/wrapper.sh ansible
# Run ESLint over the project's JavaScript files (Playwright specs + persona helpers).
lint-javascript: install-lint
@bash scripts/lint/wrapper.sh javascript
# Run checkmake against the Makefile.
lint-makefile: install-lint
@bash scripts/lint/wrapper.sh makefile
# Run Markdown lint checks via markdownlint-cli2.
lint-markdown: install-lint
@bash scripts/lint/wrapper.sh markdown
# Run Python lint checks.
lint-python: install-lint
@bash scripts/lint/wrapper.sh python
@@ -308,21 +298,58 @@ lint-python: install-lint
lint-shellcheck: install-lint
@bash scripts/lint/wrapper.sh shellcheck
# Run Markdown lint checks via markdownlint-cli2.
lint-markdown: install-lint
@bash scripts/lint/wrapper.sh markdown
# Print the repository role list.
list:
@echo "Generating the roles list"
@"$${PYTHON}" -m cli.build.list
# Run checkmake against the Makefile.
lint-makefile: install-lint
@bash scripts/lint/wrapper.sh makefile
# Create the development setup marker.
mark-development: dockerignore
touch env.development
# Run ESLint over the project's JavaScript files (Playwright specs + persona helpers).
lint-javascript: install-lint
@bash scripts/lint/wrapper.sh javascript
# Build the meta graph inputs.
mig: list tree
@echo "Creating meta data for meta infinity graph"
# Auto-format all source files (skips tools that are not installed).
autoformat: install-lint
@bash scripts/lint/wrapper.sh autoformat
# Redeploy all apps cumulated from inventory bundles on an existing inventory (no down/up, no entity purge; requires a prior deploy-bundles run).
redeploy-bundles:
@bash scripts/tests/deploy/local/deploy/redeploy-bundles.sh
# Refresh the running development stack only when it already exists.
refresh:
@bash scripts/system/network/docker/stack_refresh.sh
# Restart the development stack.
restart:
@"$${PYTHON}" -m cli.administration.deploy.development restart
# Restore IPv6 settings.
restore-ipv6:
@sudo bash scripts/system/network/ipv6/restore.sh
@"$(MAKE)" refresh
# Run a one-off `docker run` inside the running container.
run:
@bash scripts/tests/deploy/local/exec/run.sh
# Run the setup step after generating .dockerignore.
setup: dockerignore dotenv
@bash scripts/setup.sh
# Run setup after cleaning ignored files.
setup-clean: clean setup
@echo "Full build with cleanup before was executed."
# Stop the development stack without removing volumes.
stop:
@"$${PYTHON}" -m cli.administration.deploy.development stop
# Show disk and Docker resource usage to identify what to clean up.
system-disk-usage:
@bash scripts/system/meta/disk-usage.sh
# Run the broad low-hardware cleanup routine.
system-purge:
@bash scripts/system/purge/system.sh
# Run the full test pipeline (lint + tests) in parallel; fail-fast.
test: install install-lint
@@ -333,15 +360,9 @@ test: install install-lint
test-lint \
test-unit
# Run the lint test suite.
test-lint: install
@INFINITO_TEST_TYPE="lint" \
INFINITO_COMPILE=0 \
bash scripts/tests/code/wrapper.sh
# Run the unit test suite.
test-unit: install
@INFINITO_TEST_TYPE="unit" \
# Run the external test suite.
test-external: install
@INFINITO_TEST_TYPE="external" \
INFINITO_COMPILE=0 \
bash scripts/tests/code/wrapper.sh
@@ -351,15 +372,13 @@ test-integration: install
INFINITO_COMPILE=0 \
bash scripts/tests/code/wrapper.sh
# Run the external test suite.
test-external: install
@INFINITO_TEST_TYPE="external" \
# Run the lint test suite.
test-lint: install
@INFINITO_TEST_TYPE="lint" \
INFINITO_COMPILE=0 \
bash scripts/tests/code/wrapper.sh
# Verify HEAD is signed. `%G?` returns N when no signature is attached
# (all other codes -- G/U/E/B/X/Y/R -- mean some signature exists).
# Gate the pre-push hook so unsigned tips never reach the remote.
# Verify HEAD is signed (`git log %G?` returns N for unsigned); gates the pre-push hook against unsigned tips.
test-signed:
@status="$$(git log -1 --pretty=%G?)"; \
if [ "$$status" = "N" ]; then \
@@ -368,62 +387,38 @@ test-signed:
fi; \
echo "✅ HEAD commit signature status: $$status"
# Run all act-based deploy checks.
act-all:
@bash scripts/tests/deploy/act/all.sh
# Run the unit test suite.
test-unit: install
@INFINITO_TEST_TYPE="unit" \
INFINITO_COMPILE=0 \
bash scripts/tests/code/wrapper.sh
# Run the act-based app deploy check.
act-app:
@bash scripts/tests/deploy/act/app.sh
# Print the repository tree.
tree:
@echo "Generating Tree"
@"$${PYTHON}" -m cli.build.tree -D 2
# Run the act-based workflow deploy check.
act-workflow:
@bash scripts/tests/deploy/act/workflow.sh
# Trust the local CA on Linux and WSL2.
trust-ca:
@bash scripts/system/tls/trust/linux.sh
@bash scripts/system/tls/trust/wsl2.sh
# Refresh the container inventory without deploying apps.
container-refresh-inventory:
@bash scripts/tests/deploy/local/reset/inventory.sh
# Start the development stack.
up: install
@"$${PYTHON}" -m cli.administration.deploy.development up
# Purge one or more app entities from the container.
container-purge-entity:
@bash scripts/tests/deploy/local/purge/entity.sh
# Update all agent skills to latest versions and refresh skills-lock.json.
update-skills:
@bash scripts/install/skills/update.sh
# Purge the broader container-level deploy artifacts.
container-purge-system: container-purge-entity
@bash scripts/tests/deploy/local/purge/inventory.sh
@bash scripts/tests/deploy/local/purge/web.sh
@bash scripts/tests/deploy/local/purge/lib.sh
# Set up DNS on WSL2.
wsl2-dns-setup:
@sudo bash scripts/system/network/dns/setup/wsl.sh
# Create a fresh inventory and deploy all apps.
deploy-fresh-kept-all:
@echo "=== local full deploy (type=$${INFINITO_TEST_DEPLOY_TYPE}, distro=$${INFINITO_DISTRO}) ==="
@bash scripts/tests/deploy/local/deploy/fresh-kept-all.sh
# Enable systemd on WSL2.
wsl2-systemd-check:
@bash scripts/system/systemd/enable/wsl2.sh
# Create a fresh inventory and deploy one or more apps.
deploy-fresh-kept-apps:
@: "$${INFINITO_APPS:?INFINITO_APPS must be set (e.g. INFINITO_APPS=web-app-nextcloud)}"
@bash scripts/tests/deploy/local/deploy/fresh-kept-app.sh "$${INFINITO_APPS}"
# Deploy one or more apps with purged entities. Set INFINITO_FULL_CYCLE=true to also run the update pass.
deploy-fresh-purged-apps: down up
@bash scripts/tests/deploy/local/deploy/fresh-purged-app.sh
# Redeploy one or more apps on an existing inventory.
deploy-reuse-kept-apps:
@INFINITO_DEBUG=true bash scripts/tests/deploy/local/deploy/reuse-kept-app.sh
# Redeploy all apps on an existing inventory.
deploy-reuse-kept-all:
@bash scripts/tests/deploy/local/deploy/reuse-kept-all.sh
# Purge one or more app entities, then redeploy them on existing inventory.
deploy-reuse-purged-apps: container-purge-entity
@$(MAKE) deploy-reuse-kept-apps
# One-off deploy of all apps cumulated from one or more inventory bundles. Set INFINITO_FULL_CYCLE=true to also run the update pass (default: false).
deploy-bundles: down up
@bash scripts/tests/deploy/local/deploy/bundles.sh
# Redeploy all apps cumulated from inventory bundles on an existing inventory (no down/up, no entity purge; requires a prior deploy-bundles run).
redeploy-bundles:
@bash scripts/tests/deploy/local/deploy/redeploy-bundles.sh
# Trust Windows certificates in WSL2.
wsl2-trust-windows:
@bash scripts/system/tls/trust/wsl2.sh
+1 -1
View File
@@ -1,6 +1,6 @@
"""`infinito meta env` subcommand -- generate the project's `.env`.
Reads `env/static.env` plus the current runtime context (distro, GHA/Act
Reads `env/default.env` plus the current runtime context (distro, GHA/Act
flags, df/meminfo-derived sizes, sha256 secrets, ...) and writes the
resulting `.env` at the repo root. Implementation lives in
`utils.env`; this package is the CLI entry point.
+1 -1
View File
@@ -12,7 +12,7 @@ from . import PROJECT_ROOT as REPO_ROOT
def main() -> int:
static_path = REPO_ROOT / "env" / "static.env"
static_path = REPO_ROOT / "env" / "default.env"
out_path = REPO_ROOT / ".env"
if not static_path.is_file():
@@ -16,14 +16,14 @@ It MUST NOT host application roles, fixtures, or test harnesses.
## Structure 📐
- You MUST keep every service in `compose.yml` behind a `profiles:` entry so that `docker compose up` without a profile stays a no-op.
- You MUST consume tunable runtime parameters via strict substitution `${VAR:?Run 'make dotenv' to generate the .env single source of truth}`; the default lives in [static.env](../../../../env/static.env). Inline `${VAR:-default}` forms are forbidden and enforced by [test_no_default_substitutions.py](../../../../tests/integration/infrastructure/compose/test_no_default_substitutions.py).
- You MUST consume tunable runtime parameters via strict substitution `${VAR:?Run 'make dotenv' to generate the .env single source of truth}`; the default lives in [default.env](../../../../env/default.env). Inline `${VAR:-default}` forms are forbidden and enforced by [test_no_default_substitutions.py](../../../../tests/integration/infrastructure/compose/test_no_default_substitutions.py).
- You MUST NOT hardcode values that differ between operators (paths, image tags, CPU or memory caps).
- You SHOULD annotate non-obvious keys with a short inline comment that explains why they exist, not what they do.
- You MUST document every new env var by adding the row below AND committing a one-line `# ...` comment above its key in [static.env](../../../../env/static.env).
- You MUST document every new env var by adding the row below AND committing a one-line `# ...` comment above its key in [default.env](../../../../env/default.env).
## Environment Variables 📋
All variables consumed by [compose.yml](../../../../compose.yml). The per-variable default + comment lives next to the key in [static.env](../../../../env/static.env) (or [ci.env](../../../../env/ci.env) for CI-stack network defaults); the tables below stay scoped to "what role does this variable play in compose.yml" and stop duplicating the default.
All variables consumed by [compose.yml](../../../../compose.yml). The per-variable default + comment lives next to the key in [default.env](../../../../env/default.env) (or [ci.env](../../../../env/ci.env) for CI-stack network defaults); the tables below stay scoped to "what role does this variable play in compose.yml" and stop duplicating the default.
### Image and Runtime
@@ -101,7 +101,7 @@ The env-var contracts each service expects strictly via `${VAR:?…}` (consumed
When you introduce a new env var in `compose.yml`, you MUST:
1. Add the default + one-line `# ...` comment to [static.env](../../../../env/static.env) (or [ci.env](../../../../env/ci.env) for the CI network block). Defaults never live in `compose.yml`.
1. Add the default + one-line `# ...` comment to [default.env](../../../../env/default.env) (or [ci.env](../../../../env/ci.env) for the CI network block). Defaults never live in `compose.yml`.
2. Consume the variable strictly via `${VAR:?Run 'make dotenv' to generate the .env single source of truth}`; bare `${VAR}` is acceptable only when the value is optional (e.g. `NIX_CONFIG`).
3. Add a row to the matching table above with its compose-side purpose.
4. Cross-link the variable from the relevant workflow page when it exists only to drive a specific workflow (e.g. resource caps link to [ci.md](../../actions/debugging/ci.md)).
+1 -1
View File
@@ -86,7 +86,7 @@ The runner's `compose` wrapper at [roles/sys-svc-compose/files/compose.py](../..
## Environment Variables 🌳
The host-side env-vars (`INFINITO_REGISTRY_CACHE_*`, `INFINITO_PACKAGE_CACHE_*`) are declared in [env/static.env](../../../env/static.env) and the dynamic ones (cache sizes from `df`/`/proc/meminfo`, sha256 admin password) are computed by [utils/env/builder.py](../../../utils/env/builder.py). `make dotenv` writes them into `.env`, which Compose auto-loads and which `BASH_ENV` makes available to every Makefile recipe through [scripts/meta/env/load.sh](../../../scripts/meta/env/load.sh). See [variables.md](variables.md).
The host-side env-vars (`INFINITO_REGISTRY_CACHE_*`, `INFINITO_PACKAGE_CACHE_*`) are declared in [env/default.env](../../../env/default.env) and the dynamic ones (cache sizes from `df`/`/proc/meminfo`, sha256 admin password) are computed by [utils/env/builder.py](../../../utils/env/builder.py). `make dotenv` writes them into `.env`, which Compose auto-loads and which `BASH_ENV` makes available to every Makefile recipe through [scripts/meta/env/load.sh](../../../scripts/meta/env/load.sh). See [variables.md](variables.md).
Per-variable defaults and purposes are in [compose.yml.md](../artefact/files/compose.yml.md) under the cache section.
+4 -4
View File
@@ -6,12 +6,12 @@ This page is just a map of where to look.
## Where the defaults live
- [`static.env`](../../../env/static.env) holds the committed defaults for static keys, each preceded by a one-line comment.
- [`default.env`](../../../env/default.env) holds the committed defaults for static keys, each preceded by a one-line comment.
Edit this file to change a default or to read the per-variable documentation.
- [`ci.env`](../../../env/ci.env) carries the defaults docker compose consumes via `--env-file env/ci.env` (DNS, subnet, gateway, domain).
Same per-key comment convention.
- `.env` (gitignored) is generated by `make dotenv`, which delegates to `python -m cli.meta.env`.
It combines `static.env` with runtime-resolved values (selected distro, GHA/Act flags, df/meminfo-derived cache sizes, sha256 secrets, repository owner, ...).
It combines `default.env` with runtime-resolved values (selected distro, GHA/Act flags, df/meminfo-derived cache sizes, sha256 secrets, repository owner, ...).
Each line in `.env` is preceded by its own comment, so the file is self-describing.
Open it after `make dotenv` to inspect the effective value-set together with its documentation.
@@ -22,7 +22,7 @@ make dotenv
```
Override individual values by exporting them before `make dotenv`.
Already-set env vars take precedence over `static.env` defaults.
Already-set env vars take precedence over `default.env` defaults.
## Pipeline
@@ -30,7 +30,7 @@ Already-set env vars take precedence over `static.env` defaults.
- [`env/`](../../../cli/meta/env/) (under `cli/meta/`) provides the CLI entry point invoked as `python -m cli.meta.env`.
- [`load.sh`](../../../scripts/meta/env/load.sh) is the shell loader; it sources `.env` and auto-generates it on a cold clone.
## Variables NOT in `static.env`
## Variables NOT in `default.env`
A handful of variables are documented next to their consumer because they cannot have a static default:
@@ -25,7 +25,7 @@ introduced for `registry-cache`:
cache section of
[docs/contributing/artefact/files/compose.yml.md](../contributing/artefact/files/compose.yml.md),
- the per-cache env defaults declared in
[env/static.env](../../env/static.env), materialised into `.env`
[env/default.env](../../env/default.env), materialised into `.env`
by `make dotenv`.
The `registry-cache` service MUST remain in place after this
Vendored
+4 -3
View File
@@ -9,11 +9,12 @@
# IPv4 of the CoreDNS sidecar inside INFINITO_SUBNET (services resolve here).
INFINITO_DNS_IP=172.30.0.53
# IPv4 of the infinito application container inside INFINITO_SUBNET.
INFINITO_IP4=172.30.0.10
# Top-level project domain rendered into vhost/cert/test fixtures.
INFINITO_DOMAIN=infinito.example
# INFINITO_DOMAIN escaped for inclusion in regex patterns (literal `.`).
INFINITO_DOMAIN_RE=infinito\.example
# IPv4 of the infinito application container inside INFINITO_SUBNET.
INFINITO_IP4=172.30.0.10
+103 -104
View File
@@ -13,35 +13,17 @@
# that explains what the value is for. The generator preserves the
# comments when materialising `.env`.
# Absolute path to the bind-mounted repo root inside the dev container.
INFINITO_SRC_DIR=/opt/src/infinito
# Space-separated app role list passed to deploy targets ('make deploy-* INFINITO_APPS=...').
INFINITO_APPS=
# Host interface(s) the compose stack binds published ports to.
INFINITO_BIND_IP=127.0.0.1
# CIDR of the internal docker bridge used by the compose stack.
INFINITO_SUBNET=172.30.0.0/24
# Comma-separated inventory bundles consumed by 'make deploy-bundles' / 'make redeploy-bundles'.
INFINITO_BUNDLES=
# IPv4 of the bridge gateway inside INFINITO_SUBNET.
INFINITO_GATEWAY=172.30.0.1
# Distro the build/test matrix is currently iterating over (generator may override).
INFINITO_DISTRO=debian
# Compose service container name; generator overrides as infinito_nexus_${INFINITO_DISTRO}.
INFINITO_CONTAINER=infinito_nexus_debian
# Truthy (1/true/yes) disables CA injection in the container wrapper; empty leaves it on.
INFINITO_CONTAINER_NO_CA=
# True when running under nektos/act locally; generator overrides via runtime detection.
INFINITO_RUNNING_ON_ACT=false
# True when running on real GitHub Actions; generator overrides via runtime detection.
INFINITO_RUNNING_ON_GITHUB=false
# True when /proc/version identifies the host as WSL2; generator overrides via runtime detection.
INFINITO_IS_WSL2=false
# One-shot command 'make exec INFINITO_CMD=...' runs inside the dev container (empty -> interactive shell).
INFINITO_CMD=
# 1 = build infinito locally inside the container on entry; generator overrides to 0 on GHA.
INFINITO_COMPILE=1
@@ -49,101 +31,62 @@ INFINITO_COMPILE=1
# 1 = silence the in-container rebuild log when INFINITO_COMPILE=1; 0 streams it.
INFINITO_COMPILE_SILENCE=0
# Docker pull policy compose applies; generator overrides to `always` on GHA.
INFINITO_PULL_POLICY=never
# Compose service container name; generator overrides as infinito_nexus_${INFINITO_DISTRO}.
INFINITO_CONTAINER=infinito_nexus_debian
# mem_limit cap applied to the infinito container; 0 means "unlimited".
INFINITO_MEM_LIMIT=0
# memswap_limit cap applied to the infinito container; 0 means "unlimited".
INFINITO_MEMSWAP_LIMIT=0
# Truthy (1/true/yes) disables CA injection in the container wrapper; empty leaves it on.
INFINITO_CONTAINER_NO_CA=
# cpus cap applied to the infinito container; 0 means "unlimited".
INFINITO_CPUS=0
# Seconds 'make up' waits for the infinito container healthcheck before failing.
INFINITO_WAIT_HEALTH_TIMEOUT_S=600
# Truthy enables debug behavior in the local deploy flows.
INFINITO_DEBUG=
# Docker volume backing /var/lib/docker; generator overrides to /mnt/docker on GHA.
INFINITO_DOCKER_VOLUME=docker
# Mount point inside the infinito container where INFINITO_DOCKER_VOLUME lands.
INFINITO_DOCKER_MOUNT=/var/lib/docker
# MTU of the compose stack's bridge network; 1500 matches most hosts.
INFINITO_OUTER_NETWORK_MTU=1500
# Deployment matrix target: server | workstation | universal.
INFINITO_TEST_DEPLOY_TYPE=server
# Where scripts/tests/code/wrapper.sh executes the test run: docker | host.
INFINITO_TEST_RUNNER=docker
# Where scripts/lint/wrapper.sh executes 'make lint*' / 'make autoformat': host | docker.
INFINITO_LINT_RUNNER=docker
# Glob `unittest discover -p` applies when running the test suites.
INFINITO_TEST_PATTERN=test*.py
# Distro the build/test matrix is currently iterating over (generator may override).
INFINITO_DISTRO=debian
# Space-separated list of distros the build/test matrix iterates over.
INFINITO_DISTROS="arch debian ubuntu fedora centos"
# Space-separated app role list passed to deploy targets ('make deploy-* INFINITO_APPS=...').
INFINITO_APPS=
# Mount point inside the infinito container where INFINITO_DOCKER_VOLUME lands.
INFINITO_DOCKER_MOUNT=/var/lib/docker
# Space- or comma-separated compose services flipped off by the inventory provisioner.
INFINITO_SERVICES_DISABLED=
# One-shot command 'make exec INFINITO_CMD=...' runs inside the dev container (empty -> interactive shell).
INFINITO_CMD=
# Truthy enables debug behavior in the local deploy flows.
INFINITO_DEBUG=
# Optional app-discovery filter consumed by scripts/meta/resolve/apps.sh and the GHA workflow.
INFINITO_WHITELIST=
# Ansible limit pattern for local deploys.
INFINITO_LIMIT_HOST=localhost
# Comma-separated inventory bundles consumed by 'make deploy-bundles' / 'make redeploy-bundles'.
INFINITO_BUNDLES=
# Docker volume backing /var/lib/docker; generator overrides to /mnt/docker on GHA.
INFINITO_DOCKER_VOLUME=docker
# Truthy adds the async update pass (Pass 2) to the local deploy flows.
INFINITO_FULL_CYCLE=
# Pin matrix-variant deploys to a single round (empty -> iterate all variants).
INFINITO_VARIANT=
# IPv4 of the bridge gateway inside INFINITO_SUBNET.
INFINITO_GATEWAY=172.30.0.1
# Extra flags forwarded verbatim to 'docker run' by 'make run'.
INFINITO_RUN_FLAGS=
# Prefix path under which GHCR mirror lookups search for cached images.
INFINITO_GHCR_MIRROR_PREFIX=mirror
# Master toggle for the worker SPOT chain (INFINITO_WORKER_CPU / _FETCH); falsy values: 0/false/no/off.
INFINITO_WORKER_ENABLED=true
# Image tag used to address the published infinito image (CI publishes 'latest' on push).
INFINITO_IMAGE_TAG=latest
# Parent directory under which named virtualenvs are created.
INFINITO_VENV_BASE=/opt/venvs
# True when /proc/version identifies the host as WSL2; generator overrides via runtime detection.
INFINITO_IS_WSL2=false
# Name of the project venv (used to derive INFINITO_VENV_FALLBACK).
INFINITO_VENV_NAME=infinito
# Ansible limit pattern for local deploys.
INFINITO_LIMIT_HOST=localhost
# PYTHONPATH for ad-hoc `python -m ...` invocations (`.` = repo root).
PYTHONPATH=.
# Where scripts/lint/wrapper.sh executes 'make lint*' / 'make autoformat': host | docker.
INFINITO_LINT_RUNNER=docker
# Repo-relative path to the Ansible vars file `infinito administration inventory provision --vars-file <...>` consumes.
INVENTORY_VARS_FILE=inventories/development/default.yml
# memswap_limit cap applied to the infinito container; 0 means "unlimited".
INFINITO_MEMSWAP_LIMIT=0
# Host directory backing the docker registry-mirror cache (bind mount).
INFINITO_REGISTRY_CACHE_HOST_PATH=/var/cache/infinito/core/cache/registry/mirror
# mem_limit cap applied to the infinito container; 0 means "unlimited".
INFINITO_MEM_LIMIT=0
# Host directory holding the registry-cache CA materials.
INFINITO_REGISTRY_CACHE_CA_HOST_PATH=/var/cache/infinito/core/cache/registry/ca
# `1` means CI never rebuilds infinito locally; it pulls the published image.
INFINITO_NO_BUILD=1
# Host directory backing the Nexus 3 package-cache blobstore.
INFINITO_PACKAGE_CACHE_HOST_PATH=/var/cache/infinito/core/cache/package/data
# Host port the Nexus 3 package cache binds to on BIND_IP.
INFINITO_PACKAGE_CACHE_PORT=8081
# MTU of the compose stack's bridge network; 1500 matches most hosts.
INFINITO_OUTER_NETWORK_MTU=1500
# Host directory holding the package-cache frontend CA materials.
INFINITO_PACKAGE_CACHE_FRONTEND_CA_DIR=/var/cache/infinito/core/cache/package/frontend/ca
@@ -151,22 +94,78 @@ INFINITO_PACKAGE_CACHE_FRONTEND_CA_DIR=/var/cache/infinito/core/cache/package/fr
# Host directory holding the package-cache frontend TLS certificates.
INFINITO_PACKAGE_CACHE_FRONTEND_CERTS_DIR=/var/cache/infinito/core/cache/package/frontend/certs
# Init image used by the package-cache frontend cert-gen wrapper to run cert-gen.sh.
INFINITO_PACKAGE_CACHE_FRONTEND_INIT_IMAGE=alpine:3.20
# Static IPv4 address the package-cache frontend takes on the docker bridge.
INFINITO_PACKAGE_CACHE_FRONTEND_IP=172.30.0.4
# Host directory backing the Nexus 3 package-cache blobstore.
INFINITO_PACKAGE_CACHE_HOST_PATH=/var/cache/infinito/core/cache/package/data
# Cache freshness window (minutes) Nexus tolerates before re-validating upstream. 8640 = 6 days (below the 7-day Debian Valid-Until).
INFINITO_PACKAGE_CACHE_MAX_AGE_MIN=8640
# Init image used by the package-cache frontend cert-gen wrapper to run cert-gen.sh.
INFINITO_PACKAGE_CACHE_FRONTEND_INIT_IMAGE=alpine:3.20
# Host port the Nexus 3 package cache binds to on BIND_IP.
INFINITO_PACKAGE_CACHE_PORT=8081
# Image tag used to address the published infinito image (CI publishes 'latest' on push).
INFINITO_IMAGE_TAG=latest
# Docker pull policy compose applies; generator overrides to `always` on GHA.
INFINITO_PULL_POLICY=never
# --- GitHub Actions defaults (emitted only when INFINITO_RUNNING_ON_GITHUB=true) ---
# Host directory holding the registry-cache CA materials.
INFINITO_REGISTRY_CACHE_CA_HOST_PATH=/var/cache/infinito/core/cache/registry/ca
# Prefix path under which GHCR mirror lookups search for cached images.
INFINITO_GHCR_MIRROR_PREFIX=mirror
# Host directory backing the docker registry-mirror cache (bind mount).
INFINITO_REGISTRY_CACHE_HOST_PATH=/var/cache/infinito/core/cache/registry/mirror
# True when running under nektos/act locally; generator overrides via runtime detection.
INFINITO_RUNNING_ON_ACT=false
# True when running on real GitHub Actions; generator overrides via runtime detection.
INFINITO_RUNNING_ON_GITHUB=false
# Extra flags forwarded verbatim to 'docker run' by 'make run'.
INFINITO_RUN_FLAGS=
# Space- or comma-separated compose services flipped off by the inventory provisioner.
INFINITO_SERVICES_DISABLED=
# Absolute path to the bind-mounted repo root inside the dev container.
INFINITO_SRC_DIR=/opt/src/infinito
# CIDR of the internal docker bridge used by the compose stack.
INFINITO_SUBNET=172.30.0.0/24
# Deployment matrix target: server | workstation | universal.
INFINITO_TEST_DEPLOY_TYPE=server
# Glob `unittest discover -p` applies when running the test suites.
INFINITO_TEST_PATTERN=test*.py
# Where scripts/tests/code/wrapper.sh executes the test run: docker | host.
INFINITO_TEST_RUNNER=docker
# Pin matrix-variant deploys to a single round (empty -> iterate all variants).
INFINITO_VARIANT=
# Parent directory under which named virtualenvs are created.
INFINITO_VENV_BASE=/opt/venvs
# Name of the project venv (used to derive INFINITO_VENV_FALLBACK).
INFINITO_VENV_NAME=infinito
# Seconds 'make up' waits for the infinito container healthcheck before failing.
INFINITO_WAIT_HEALTH_TIMEOUT_S=600
# Optional app-discovery filter consumed by scripts/meta/resolve/apps.sh and the GHA workflow.
INFINITO_WHITELIST=
# Master toggle for the worker SPOT chain (INFINITO_WORKER_CPU / _FETCH); falsy values: 0/false/no/off.
INFINITO_WORKER_ENABLED=true
# Repo-relative path to the Ansible vars file `infinito administration inventory provision --vars-file <...>` consumes.
INVENTORY_VARS_FILE=inventories/development/default.yml
# PYTHONPATH for ad-hoc `python -m ...` invocations (`.` = repo root).
PYTHONPATH=.
# `1` means CI never rebuilds infinito locally; it pulls the published image.
INFINITO_NO_BUILD=1
+7 -2
View File
@@ -1,5 +1,10 @@
MARIADB_AUTO_UPGRADE="1"
MYSQL_DATABASE="{{ lookup('database', application_id, 'name') }}"
MYSQL_USER="{{ lookup('database', application_id, 'username') }}"
MYSQL_PASSWORD="{{ lookup('database', application_id, 'password') }}"
MYSQL_ROOT_PASSWORD="{{ lookup('database', application_id, 'password') }}"
MARIADB_AUTO_UPGRADE="1"
MYSQL_USER="{{ lookup('database', application_id, 'username') }}"
+7 -3
View File
@@ -1,4 +1,8 @@
POSTGRES_PASSWORD={{ lookup('database', application_id, 'password') }}
POSTGRES_USER={{ lookup('database', application_id, 'username') }}
POSTGRES_DB={{ lookup('database', application_id, 'name') }}
POSTGRES_INITDB_ARGS=--encoding=UTF8 --locale=C
POSTGRES_INITDB_ARGS=--encoding=UTF8 --locale=C
POSTGRES_PASSWORD={{ lookup('database', application_id, 'password') }}
POSTGRES_USER={{ lookup('database', application_id, 'username') }}
@@ -1,24 +1,35 @@
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') }}
AKAUNTING_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
AKAUNTING_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
# No OIDC auto-provisioning on fresh deploy: Keycloak personas cannot auto-create an akaunting user. Block until auto-provisioning is wired.
PERSONA_BIBER_BLOCKED=true
PERSONA_ADMINISTRATOR_BLOCKED=true
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
LDAP_SERVICE_ENABLED={{ AKAUNTING_LDAP_ENABLED | string | lower }}
NODE_TLS_REJECT_UNAUTHORIZED=0
# Service gate flags rendered for closure.
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
NODE_TLS_REJECT_UNAUTHORIZED=0
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
PERSONA_ADMINISTRATOR_BLOCKED=true
# No OIDC auto-provisioning on fresh deploy: Keycloak personas cannot auto-create an akaunting user. Block until auto-provisioning is wired.
PERSONA_BIBER_BLOCKED=true
@@ -1,25 +1,38 @@
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') }}
BASEROW_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') }}
BASEROW_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
LDAP_SERVICE_ENABLED={{ BASEROW_LDAP_ENABLED | string | lower }}
NODE_TLS_REJECT_UNAUTHORIZED=0
PERSONA_BIBER_BLOCKED=true
PERSONA_ADMINISTRATOR_BLOCKED=true
# Service gate flags rendered for closure.
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
NODE_TLS_REJECT_UNAUTHORIZED=0
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
PERSONA_ADMINISTRATOR_BLOCKED=true
PERSONA_BIBER_BLOCKED=true
@@ -1,22 +1,34 @@
APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') | dotenv_quote }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
BBB_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') | dotenv_quote }}
BBB_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
# nocheck: playwright-service-gate — persona drives the OIDC path; LDAP federation is exercised in the LDAP-only matrix variant
LDAP_SERVICE_ENABLED={{ lookup('config', application_id, 'services.ldap.enabled') | string | lower }}
# nocheck: playwright-service-gate — consumed via shared persona helpers (roles/test-e2e-playwright/files/personas/)
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# Service gate flags rendered for closure.
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
# nocheck: playwright-service-gate — consumed via shared persona helpers (roles/test-e2e-playwright/files/personas/)
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
# nocheck: playwright-service-gate — consumed via shared persona helpers (roles/test-e2e-playwright/files/personas/)
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# nocheck: playwright-service-gate — persona drives the OIDC path; LDAP federation is exercised in the LDAP-only matrix variant
LDAP_SERVICE_ENABLED={{ lookup('config', application_id, 'services.ldap.enabled') | string | lower }}
# nocheck: playwright-service-gate — consumed via shared persona helpers (roles/test-e2e-playwright/files/personas/)
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
# nocheck: playwright-service-gate — consumed via shared persona helpers (roles/test-e2e-playwright/files/personas/)
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
@@ -11,29 +11,42 @@
# therefore blocked at the generic dashboard → app → logout persona-flow level — the role's OIDC +
# LDAP tests carry the equivalent contract.
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') }}
BLUESKY_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
ADMIN_HANDLE={{ BLUESKY_ADMIN_HANDLE | dotenv_quote }}
PDS_BASE_URL={{ (lookup('tls', application_id, 'protocols.web') ~ '://' ~ BLUESKY_API_DOMAIN) | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') }}
BLUESKY_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
# See file header for the why.
PERSONA_BIBER_BLOCKED=true
PERSONA_ADMINISTRATOR_BLOCKED=true
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
LDAP_SERVICE_ENABLED={{ BLUESKY_LDAP_ENABLED | string | lower }}
NODE_TLS_REJECT_UNAUTHORIZED=0
# Service gate flags rendered for closure.
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
NODE_TLS_REJECT_UNAUTHORIZED=0
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
PDS_BASE_URL={{ (lookup('tls', application_id, 'protocols.web') ~ '://' ~ BLUESKY_API_DOMAIN) | dotenv_quote }}
PERSONA_ADMINISTRATOR_BLOCKED=true
# See file header for the why.
PERSONA_BIBER_BLOCKED=true
@@ -1,24 +1,35 @@
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') }}
BOOKWYRM_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') }}
BOOKWYRM_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
# Bookwyrm logout sits in an icon-only avatar dropdown with no accessible name; the generic logout helper cannot match it. OIDC login works.
PERSONA_BIBER_BLOCKED=true
PERSONA_ADMINISTRATOR_BLOCKED=true
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
LDAP_SERVICE_ENABLED={{ BOOKWYRM_LDAP_ENABLED | string | lower }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
LDAP_SERVICE_ENABLED={{ BOOKWYRM_LDAP_ENABLED | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
NODE_TLS_REJECT_UNAUTHORIZED=0
# Service gate flags rendered for closure.
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
PERSONA_ADMINISTRATOR_BLOCKED=true
# Bookwyrm logout sits in an icon-only avatar dropdown with no accessible name; the generic logout helper cannot match it. OIDC login works.
PERSONA_BIBER_BLOCKED=true
@@ -1,14 +1,20 @@
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
# Bridgy-Fed is a federation-only bridge; users authenticate at their source platform, so no local persona auth surface exists.
PERSONA_BIBER_BLOCKED=true
PERSONA_ADMINISTRATOR_BLOCKED=true
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# Service gate flags rendered for closure.
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
PERSONA_ADMINISTRATOR_BLOCKED=true
# Bridgy-Fed is a federation-only bridge; users authenticate at their source platform, so no local persona auth surface exists.
PERSONA_BIBER_BLOCKED=true
@@ -1,32 +1,52 @@
APP_BASE_URL={{ lookup('tls', DASHBOARD_APPLICATION_ID, 'url.base') }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
LOGIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
LOGIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', DASHBOARD_APPLICATION_ID, 'url.base') }}
ASSET_SERVICE_ENABLED={{ lookup('config', application_id, 'services.asset.enabled') | string | lower }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
CDN_BASE_URL={{ lookup('tls', 'web-svc-cdn', 'url.base') | dotenv_quote }}
DASHBOARD_JS_BASE_URL={{ DASHBOARD_JS_BASE_URL | dotenv_quote }}
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
# With OIDC disabled the dashboard renders no Login link, so persona helpers have no auth surface. Collapse to BLOCKED for a clean skip.
PERSONA_BIBER_BLOCKED={{ (not (lookup('config', application_id, 'services.oidc.enabled') | bool)) | string | lower }}
PERSONA_ADMINISTRATOR_BLOCKED={{ (not (lookup('config', application_id, 'services.oidc.enabled') | bool)) | string | lower }}
CDN_BASE_URL={{ lookup('tls', 'web-svc-cdn', 'url.base') | dotenv_quote }}
CDN_SERVICE_ENABLED={{ lookup('config', application_id, 'services.cdn.enabled') | string | lower }}
CSS_SERVICE_ENABLED={{ lookup('config', application_id, 'services.css.enabled') | string | lower }}
DASHBOARD_JS_BASE_URL={{ DASHBOARD_JS_BASE_URL | dotenv_quote }}
# Tile-reachability targets: every role declaring services.dashboard.{enabled,shared}. Spec parameterises one test per entry.
DASHBOARD_TARGET_ROLES_JSON={{ lookup('roles_with_service', 'dashboard') | to_json | dotenv_quote }}
LOGIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
LOGIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
# Service gate flags rendered for closure.
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
ASSET_SERVICE_ENABLED={{ lookup('config', application_id, 'services.asset.enabled') | string | lower }}
CDN_SERVICE_ENABLED={{ lookup('config', application_id, 'services.cdn.enabled') | string | lower }}
PERSONA_ADMINISTRATOR_BLOCKED={{ (not (lookup('config', application_id, 'services.oidc.enabled') | bool)) | string | lower }}
# With OIDC disabled the dashboard renders no Login link, so persona helpers have no auth surface. Collapse to BLOCKED for a clean skip.
PERSONA_BIBER_BLOCKED={{ (not (lookup('config', application_id, 'services.oidc.enabled') | bool)) | string | lower }}
PLATFORM_FAVICON_URL={{ DASHBOARD_PLATFORM_FAVICON_URL | dotenv_quote }}
# Resolved branding URLs from vars/main.yml. port-ui embeds reachable URLs so rendered img src and link href match exactly.
PLATFORM_LOGO_URL={{ DASHBOARD_PLATFORM_LOGO_URL | dotenv_quote }}
PLATFORM_FAVICON_URL={{ DASHBOARD_PLATFORM_FAVICON_URL | dotenv_quote }}
CSS_SERVICE_ENABLED={{ lookup('config', application_id, 'services.css.enabled') | string | lower }}
SIMPLEICONS_SERVICE_ENABLED={{ lookup('config', application_id, 'services.simpleicons.enabled') | string | lower }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
@@ -1,22 +1,36 @@
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') | regex_replace('/+$', '') | dotenv_quote }}
DECIDIM_BASE_URL={{ lookup('tls', application_id, 'url.base') | regex_replace('/+$', '') | dotenv_quote }}
ADMIN_EMAIL={{ lookup('users', 'administrator').email | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
OIDC_ISSUER_URL={{ DECIDIM_OIDC_ISSUER | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') | regex_replace('/+$', '') | dotenv_quote }}
BIBER_EMAIL={{ lookup('users', 'biber').email | dotenv_quote }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
PERSONA_BIBER_BLOCKED=true
PERSONA_ADMINISTRATOR_BLOCKED=true
DECIDIM_BASE_URL={{ lookup('tls', application_id, 'url.base') | regex_replace('/+$', '') | dotenv_quote }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# Service gate flags rendered for closure.
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
OIDC_ISSUER_URL={{ DECIDIM_OIDC_ISSUER | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
PERSONA_ADMINISTRATOR_BLOCKED=true
PERSONA_BIBER_BLOCKED=true
@@ -1,21 +1,33 @@
APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') | dotenv_quote }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
DISCOURSE_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') | dotenv_quote }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
DISCOURSE_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
# nocheck: playwright-service-gate — persona drives the OIDC path; LDAP federation is exercised in the LDAP-only matrix variant
LDAP_SERVICE_ENABLED={{ lookup('config', application_id, 'services.ldap.enabled') | string | lower }}
# nocheck: playwright-service-gate — consumed via shared persona helpers (roles/test-e2e-playwright/files/personas/)
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# Service gate flags rendered for closure.
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
# nocheck: playwright-service-gate — persona drives the OIDC path; LDAP federation is exercised in the LDAP-only matrix variant
LDAP_SERVICE_ENABLED={{ lookup('config', application_id, 'services.ldap.enabled') | string | lower }}
# nocheck: playwright-service-gate — consumed via shared persona helpers (roles/test-e2e-playwright/files/personas/)
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# nocheck: playwright-service-gate — consumed via shared persona helpers (roles/test-e2e-playwright/files/personas/)
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
+29 -15
View File
@@ -1,23 +1,37 @@
APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
FIDER_BASE_URL={{ lookup('tls', 'web-app-fider', 'url.base') | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
# Playwright has no custom ENTRYPOINT, so the infinito CA cert is not injected and npm fails on the proxy-intercepted npm registry TLS.
NODE_TLS_REJECT_UNAUTHORIZED=0
PERSONA_BIBER_BLOCKED=true
PERSONA_ADMINISTRATOR_BLOCKED=true
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
FIDER_BASE_URL={{ lookup('tls', 'web-app-fider', 'url.base') | dotenv_quote }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# Service gate flags rendered for closure.
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
# Playwright has no custom ENTRYPOINT, so the infinito CA cert is not injected and npm fails on the proxy-intercepted npm registry TLS.
NODE_TLS_REJECT_UNAUTHORIZED=0
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
PERSONA_ADMINISTRATOR_BLOCKED=true
PERSONA_BIBER_BLOCKED=true
@@ -1,26 +1,39 @@
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') }}
FLOWISE_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
FLOWISE_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
LDAP_SERVICE_ENABLED={{ FLOWISE_LDAP_ENABLED | string | lower }}
# Service gate flags rendered for closure.
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# Flowise routes OIDC via the web-app-oauth2-proxy sidecar, so the OIDC gate keys off services.oauth2.enabled, not services.oidc.enabled.
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
LDAP_SERVICE_ENABLED={{ FLOWISE_LDAP_ENABLED | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
NODE_TLS_REJECT_UNAUTHORIZED=0
PERSONA_BIBER_BLOCKED=true
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
PERSONA_ADMINISTRATOR_BLOCKED=true
# Service gate flags rendered for closure.
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
PERSONA_BIBER_BLOCKED=true
@@ -1,25 +1,39 @@
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') }}
FRIENDICA_BASE_URL={{ lookup('tls', 'web-app-friendica', 'url.base') | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
# Stock Friendica has no header-trusted auto-login (only API auth via HTTP_AUTHORIZATION), so generic persona flows cannot drive its login.
PERSONA_BIBER_BLOCKED=true
PERSONA_ADMINISTRATOR_BLOCKED=true
# Playwright has no custom ENTRYPOINT, so the infinito CA cert is not injected and npm fails on the proxy-intercepted npm registry TLS.
NODE_TLS_REJECT_UNAUTHORIZED=0
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
FRIENDICA_BASE_URL={{ lookup('tls', 'web-app-friendica', 'url.base') | dotenv_quote }}
# nocheck: playwright-service-gate — persona drives the OIDC path; LDAP federation is exercised in the LDAP-only matrix variant
LDAP_SERVICE_ENABLED={{ FRIENDICA_LDAP_ENABLED | string | lower }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# Service gate flags rendered for closure.
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# nocheck: playwright-service-gate — persona drives the OIDC path; LDAP federation is exercised in the LDAP-only matrix variant
LDAP_SERVICE_ENABLED={{ FRIENDICA_LDAP_ENABLED | string | lower }}
OIDC_SERVICE_ENABLED={{ FRIENDICA_OIDC_ENABLED | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
# Playwright has no custom ENTRYPOINT, so the infinito CA cert is not injected and npm fails on the proxy-intercepted npm registry TLS.
NODE_TLS_REJECT_UNAUTHORIZED=0
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
OIDC_SERVICE_ENABLED={{ FRIENDICA_OIDC_ENABLED | string | lower }}
PERSONA_ADMINISTRATOR_BLOCKED=true
# Stock Friendica has no header-trusted auto-login (only API auth via HTTP_AUTHORIZATION), so generic persona flows cannot drive its login.
PERSONA_BIBER_BLOCKED=true
@@ -1,25 +1,38 @@
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') }}
FUSIONDIRECTORY_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
FUSIONDIRECTORY_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
LDAP_SERVICE_ENABLED={{ lookup('config', application_id, 'services.ldap.enabled') | string | lower }}
NODE_TLS_REJECT_UNAUTHORIZED=0
PERSONA_BIBER_BLOCKED=true
PERSONA_ADMINISTRATOR_BLOCKED=true
# Service gate flags rendered for closure.
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
NODE_TLS_REJECT_UNAUTHORIZED=0
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
PERSONA_ADMINISTRATOR_BLOCKED=true
PERSONA_BIBER_BLOCKED=true
+26 -12
View File
@@ -1,21 +1,35 @@
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') }}
GITEA_BASE_URL={{ lookup('tls', 'web-app-gitea', 'url.base') | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
PERSONA_BIBER_BLOCKED=true
PERSONA_ADMINISTRATOR_BLOCKED=true
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
GITEA_BASE_URL={{ lookup('tls', 'web-app-gitea', 'url.base') | dotenv_quote }}
# nocheck: playwright-service-gate — persona drives the OIDC path; LDAP federation is exercised in the LDAP-only matrix variant
LDAP_SERVICE_ENABLED={{ lookup('config', application_id, 'services.ldap.enabled') | string | lower }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# Service gate flags rendered for closure.
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# nocheck: playwright-service-gate — persona drives the OIDC path; LDAP federation is exercised in the LDAP-only matrix variant
LDAP_SERVICE_ENABLED={{ lookup('config', application_id, 'services.ldap.enabled') | string | lower }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
PERSONA_ADMINISTRATOR_BLOCKED=true
PERSONA_BIBER_BLOCKED=true
+15 -8
View File
@@ -1,16 +1,23 @@
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
# Hugo is a static site with no runtime auth, so personas have nothing to log into; opt out for a clean skip.
PERSONA_BIBER_BLOCKED=true
PERSONA_ADMINISTRATOR_BLOCKED=true
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# Service gate flags rendered for closure.
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
PERSONA_ADMINISTRATOR_BLOCKED=true
# Hugo is a static site with no runtime auth, so personas have nothing to log into; opt out for a clean skip.
PERSONA_BIBER_BLOCKED=true
@@ -1,22 +1,33 @@
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') }}
JENKINS_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
JENKINS_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ JENKINS_OIDC_ENABLED | string | lower }}
LDAP_SERVICE_ENABLED={{ JENKINS_LDAP_ENABLED | string | lower }}
NODE_TLS_REJECT_UNAUTHORIZED=0
PERSONA_BIBER_BLOCKED=true
PERSONA_ADMINISTRATOR_BLOCKED=true
# Service gate flags rendered for closure.
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
NODE_TLS_REJECT_UNAUTHORIZED=0
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ JENKINS_OIDC_ENABLED | string | lower }}
PERSONA_ADMINISTRATOR_BLOCKED=true
PERSONA_BIBER_BLOCKED=true
@@ -1,27 +1,39 @@
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
# APP_BASE_URL is consumed unquoted as Playwright's baseURL; quoting it makes page.goto("/") resolve to an invalid URL.
APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
JOOMLA_BASE_URL={{ lookup('tls', 'web-app-joomla', 'url.base') | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
JOOMLA_BASE_URL={{ lookup('tls', 'web-app-joomla', 'url.base') | dotenv_quote }}
LDAP_SERVICE_ENABLED={{ lookup('config', application_id, 'services.ldap.enabled') | string | lower }}
# Service gate flags rendered for closure.
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# Joomla OIDC variant uses plg_system_keycloak; LDAP variant uses Joomla's core LDAP plugin. Gate values are literal true/false.
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
LDAP_SERVICE_ENABLED={{ lookup('config', application_id, 'services.ldap.enabled') | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
# Playwright has no custom ENTRYPOINT, so the infinito CA cert is not injected and npm fails on the proxy-intercepted npm registry TLS.
NODE_TLS_REJECT_UNAUTHORIZED=0
PERSONA_BIBER_BLOCKED=true
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
PERSONA_ADMINISTRATOR_BLOCKED=true
# Service gate flags rendered for closure.
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
PERSONA_BIBER_BLOCKED=true
@@ -1,26 +1,39 @@
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
KEYCLOAK_REALM_NAME={{ KEYCLOAK_REALM | dotenv_quote }}
SUPER_ADMIN_USERNAME={{ KEYCLOAK_PERMANENT_ADMIN_USERNAME | dotenv_quote }}
SUPER_ADMIN_PASSWORD={{ KEYCLOAK_PERMANENT_ADMIN_PASSWORD | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
# Keycloak IS the auth provider, so generic personas have no app surface. Bespoke realm-account and admin-console tests cover the contract.
PERSONA_BIBER_BLOCKED=true
PERSONA_ADMINISTRATOR_BLOCKED=true
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
# Service gate flags rendered for closure.
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
KEYCLOAK_REALM_NAME={{ KEYCLOAK_REALM | dotenv_quote }}
# nocheck: playwright-service-gate — persona drives the OIDC path; LDAP federation is exercised in the LDAP-only matrix variant
LDAP_SERVICE_ENABLED={{ lookup('config', application_id, 'services.ldap.enabled') | string | lower }}
# nocheck: persona-required-envs — auth-provider role; persona-flow runners are not used here
# nocheck: playwright-service-gate — auth-provider role; generic persona scenarios are exempt (covered by bespoke realm-account / admin-console tests above)
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# nocheck: playwright-service-gate — persona drives the OIDC path; LDAP federation is exercised in the LDAP-only matrix variant
LDAP_SERVICE_ENABLED={{ lookup('config', application_id, 'services.ldap.enabled') | string | lower }}
# Service gate flags rendered for closure.
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
# nocheck: playwright-service-gate — auth-provider role; generic persona scenarios are exempt
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
PERSONA_ADMINISTRATOR_BLOCKED=true
# Keycloak IS the auth provider, so generic personas have no app surface. Bespoke realm-account and admin-console tests cover the contract.
PERSONA_BIBER_BLOCKED=true
SUPER_ADMIN_PASSWORD={{ KEYCLOAK_PERMANENT_ADMIN_PASSWORD | dotenv_quote }}
SUPER_ADMIN_USERNAME={{ KEYCLOAK_PERMANENT_ADMIN_USERNAME | dotenv_quote }}
+34 -19
View File
@@ -1,29 +1,44 @@
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
LOGOUT_URL={{ lookup('tls', 'web-svc-logout', 'url.base') | dotenv_quote }}
KEYCLOAK_BASE_URL={{ lookup('tls', 'web-app-keycloak', 'url.base') | dotenv_quote }}
KEYCLOAK_REALM={{ OIDC.CLIENT.REALM | dotenv_quote }}
KEYCLOAK_ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
KEYCLOAK_ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
KIX_USER_GROUP_PATH={{ ('/' ~ (RBAC.GROUP.NAME | trim('/')) ~ '/' ~ application_id ~ '/user') | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
# Generic helpers cannot drive KIX' native LDAP form after the Keycloak OIDC round-trip; bespoke runKixLoginLogoutFlow covers it.
PERSONA_BIBER_BLOCKED=true
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
KEYCLOAK_ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
KEYCLOAK_ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
KEYCLOAK_BASE_URL={{ lookup('tls', 'web-app-keycloak', 'url.base') | dotenv_quote }}
KEYCLOAK_REALM={{ OIDC.CLIENT.REALM | dotenv_quote }}
KIX_USER_GROUP_PATH={{ ('/' ~ (RBAC.GROUP.NAME | trim('/')) ~ '/' ~ application_id ~ '/user') | dotenv_quote }}
# nocheck: playwright-service-gate — persona drives the OIDC path; LDAP federation is exercised in the LDAP-only matrix variant
LDAP_SERVICE_ENABLED={{ lookup('config', application_id, 'services.ldap.enabled') | string | lower }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
LOGOUT_URL={{ lookup('tls', 'web-svc-logout', 'url.base') | dotenv_quote }}
# Service gate flags rendered for closure.
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
# nocheck: playwright-service-gate — persona drives the OIDC path; LDAP federation is exercised in the LDAP-only matrix variant
LDAP_SERVICE_ENABLED={{ lookup('config', application_id, 'services.ldap.enabled') | string | lower }}
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
# Generic helpers cannot drive KIX' native LDAP form after the Keycloak OIDC round-trip; bespoke runKixLoginLogoutFlow covers it.
PERSONA_BIBER_BLOCKED=true
+27 -13
View File
@@ -1,22 +1,36 @@
APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
MAILU_BASE_URL={{ lookup('tls', 'web-app-mailu', 'url.base') | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
ADMIN_EMAIL={{ lookup('users', 'administrator').email | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') }}
BIBER_EMAIL={{ (lookup('users', 'biber').username ~ '@' ~ lookup('config', 'web-app-mailu', 'services.mailu.domain')) | dotenv_quote }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
# Shared persona helpers route via the dashboard Account menu which depends on dashboard silent-SSO; bespoke scenarios drive Mailu directly.
PERSONA_BIBER_BLOCKED=true
PERSONA_ADMINISTRATOR_BLOCKED=true
PERSONA_GUEST_BLOCKED={{ (not (lookup('config', application_id, 'services.dashboard.enabled') | bool)) | string | lower }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
MAILU_BASE_URL={{ lookup('tls', 'web-app-mailu', 'url.base') | dotenv_quote }}
# Service gate flags rendered for closure.
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
PERSONA_ADMINISTRATOR_BLOCKED=true
# Shared persona helpers route via the dashboard Account menu which depends on dashboard silent-SSO; bespoke scenarios drive Mailu directly.
PERSONA_BIBER_BLOCKED=true
PERSONA_GUEST_BLOCKED={{ (not (lookup('config', application_id, 'services.dashboard.enabled') | bool)) | string | lower }}
@@ -1,21 +1,31 @@
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
# Matomo is admin-only and reachable only via the dashboard tile; generic flows have no surface to land on. Bespoke admin test covers it.
PERSONA_BIBER_BLOCKED=true
PERSONA_ADMINISTRATOR_BLOCKED=true
# Tracker-target list: every role declaring services.matomo.{enabled,shared}. Spec parameterises one tracker-presence assertion per entry.
MATOMO_TARGET_ROLES_JSON={{ lookup('roles_with_service', 'matomo') | to_json | dotenv_quote }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# Service gate flags rendered for closure.
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
# Tracker-target list: every role declaring services.matomo.{enabled,shared}. Spec parameterises one tracker-presence assertion per entry.
MATOMO_TARGET_ROLES_JSON={{ lookup('roles_with_service', 'matomo') | to_json | dotenv_quote }}
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
PERSONA_ADMINISTRATOR_BLOCKED=true
# Matomo is admin-only and reachable only via the dashboard tile; generic flows have no surface to land on. Bespoke admin test covers it.
PERSONA_BIBER_BLOCKED=true
@@ -1,21 +1,34 @@
APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') | dotenv_quote }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
ELEMENT_BASE_URL={{ lookup('tls', lookup('config', application_id, 'server.domains.canonical.element'), 'url.base') | dotenv_quote }}
MATRIX_BASE_URL={{ lookup('tls', lookup('config', application_id, 'server.domains.canonical.synapse'), 'url.base') | dotenv_quote }}
MATRIX_SERVER_NAME={{ MATRIX_SERVER_NAME | dotenv_quote }}
ADMIN_USERNAME={{ MATRIX_ADMINISTRATOR_USERNAME | dotenv_quote }}
ADMIN_PASSWORD={{ MATRIX_ADMINISTRATOR_PASSWORD | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
ADMIN_USERNAME={{ MATRIX_ADMINISTRATOR_USERNAME | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') | dotenv_quote }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ (lookup('applications', application_id).server.domains.canonical.element) | dotenv_quote }}
ELEMENT_BASE_URL={{ lookup('tls', lookup('config', application_id, 'server.domains.canonical.element'), 'url.base') | dotenv_quote }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
# nocheck: playwright-service-gate — consumed via shared persona helpers (roles/test-e2e-playwright/files/personas/)
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# Service gate flags rendered for closure.
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
# nocheck: playwright-service-gate — consumed via shared persona helpers (roles/test-e2e-playwright/files/personas/)
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# nocheck: playwright-service-gate — consumed via shared persona helpers (roles/test-e2e-playwright/files/personas/)
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
MATRIX_BASE_URL={{ lookup('tls', lookup('config', application_id, 'server.domains.canonical.synapse'), 'url.base') | dotenv_quote }}
MATRIX_SERVER_NAME={{ MATRIX_SERVER_NAME | dotenv_quote }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
@@ -1,24 +1,38 @@
APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
MATTERMOST_BASE_URL={{ lookup('tls', 'web-app-mattermost', 'url.base') | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
# Mattermost post-login UI exposes no logout control the generic helpers recognize; bespoke SSO login/logout drives Mattermost's own flow.
PERSONA_BIBER_BLOCKED=true
PERSONA_ADMINISTRATOR_BLOCKED=true
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
# nocheck: playwright-service-gate — persona drives the OIDC path; LDAP federation is exercised in the LDAP-only matrix variant
LDAP_SERVICE_ENABLED={{ lookup('config', application_id, 'services.ldap.enabled') | string | lower }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# Service gate flags rendered for closure.
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# nocheck: playwright-service-gate — persona drives the OIDC path; LDAP federation is exercised in the LDAP-only matrix variant
LDAP_SERVICE_ENABLED={{ lookup('config', application_id, 'services.ldap.enabled') | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
MATTERMOST_BASE_URL={{ lookup('tls', 'web-app-mattermost', 'url.base') | dotenv_quote }}
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
PERSONA_ADMINISTRATOR_BLOCKED=true
# Mattermost post-login UI exposes no logout control the generic helpers recognize; bespoke SSO login/logout drives Mattermost's own flow.
PERSONA_BIBER_BLOCKED=true
+12 -6
View File
@@ -1,14 +1,20 @@
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
# mig is an in-app module of web-app-dashboard with no separate auth surface; personas have nothing to log into.
PERSONA_BIBER_BLOCKED=true
PERSONA_ADMINISTRATOR_BLOCKED=true
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# Service gate flags rendered for closure.
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
PERSONA_ADMINISTRATOR_BLOCKED=true
# mig is an in-app module of web-app-dashboard with no separate auth surface; personas have nothing to log into.
PERSONA_BIBER_BLOCKED=true
+30 -16
View File
@@ -1,25 +1,39 @@
APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') | dotenv_quote }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
OIDC_CLIENT_ID={{ OIDC.CLIENT.ID | dotenv_quote }}
OIDC_CLIENT_SECRET={{ OIDC.CLIENT.SECRET | dotenv_quote }}
MINIO_CONSOLE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
MINIO_API_URL={{ MINIO_API_URL | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') | dotenv_quote }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('applications', application_id).server.domains.canonical.console | dotenv_quote }}
# Minio uses OIDC STS (AssumeRoleWithWebIdentity), not oauth2-proxy, and biber has no minio account; bespoke admin tests cover both modes.
PERSONA_BIBER_BLOCKED=true
PERSONA_ADMINISTRATOR_BLOCKED=true
# Service gate flags. Values MUST be literal "true" or "false".
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
LDAP_SERVICE_ENABLED={{ lookup('config', application_id, 'services.ldap.enabled') | string | lower }}
# Service gate flags rendered for closure.
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# Service gate flags. Values MUST be literal "true" or "false".
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
MINIO_API_URL={{ MINIO_API_URL | dotenv_quote }}
MINIO_CONSOLE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
OIDC_CLIENT_ID={{ OIDC.CLIENT.ID | dotenv_quote }}
OIDC_CLIENT_SECRET={{ OIDC.CLIENT.SECRET | dotenv_quote }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
PERSONA_ADMINISTRATOR_BLOCKED=true
# Minio uses OIDC STS (AssumeRoleWithWebIdentity), not oauth2-proxy, and biber has no minio account; bespoke admin tests cover both modes.
PERSONA_BIBER_BLOCKED=true
@@ -1,31 +1,50 @@
APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
NEXTCLOUD_BASE_URL={{ lookup('tls', 'web-app-nextcloud', 'url.base') | dotenv_quote }}
LOGIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
LOGIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
NEXTCLOUD_DIRECT_LOGIN_PASSWORD={{ lookup('config', application_id, 'credentials.administrator_password') | dotenv_quote }}
NEXTCLOUD_TALK_SETTINGS_CHECK_ENABLED={{ NEXTCLOUD_HPB_PLUGIN_ENABLED | string | lower }}
NEXTCLOUD_TALK_SETTINGS_URL={{ NEXTCLOUD_TALK_ADMIN_URL | dotenv_quote }}
NEXTCLOUD_TALK_EXPECTED_SIGNALING_URL={{ NEXTCLOUD_HPB_SIGNALING_URL | dotenv_quote }}
NEXTCLOUD_TALK_EXPECTED_STUN_SERVER={{ NEXTCLOUD_HPB_STUN_ACTIVE_CONFIG | dotenv_quote }}
NEXTCLOUD_TALK_EXPECTED_TURN_SERVER={{ NEXTCLOUD_HPB_TURN_ACTIVE_SERVER | dotenv_quote }}
NEXTCLOUD_TALK_UNEXPECTED_STUN_SERVER={{ (NEXTCLOUD_HPB_STUN_ONBOARD_CONFIG if NEXTCLOUD_HPB_TURN_STANDALONE_ENABLED | bool else '') | dotenv_quote }}
NEXTCLOUD_TALK_UNEXPECTED_TURN_SERVER={{ (NEXTCLOUD_HPB_TURN_ONBOARD_CONFIG.server | default('') if NEXTCLOUD_HPB_TURN_STANDALONE_ENABLED | bool else '') | dotenv_quote }}
# Nextcloud /login reverse-proxies Keycloak's form, hiding the /openid-connect/auth URL marker; bespoke tests cover both personas.
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
PERSONA_BIBER_BLOCKED=true
PERSONA_ADMINISTRATOR_BLOCKED=true
LDAP_SERVICE_ENABLED={{ lookup('config', application_id, 'services.ldap.enabled') | string | lower }}
LOGIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
LOGIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# Service gate flags rendered for closure.
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
LDAP_SERVICE_ENABLED={{ lookup('config', application_id, 'services.ldap.enabled') | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
NEXTCLOUD_BASE_URL={{ lookup('tls', 'web-app-nextcloud', 'url.base') | dotenv_quote }}
NEXTCLOUD_DIRECT_LOGIN_PASSWORD={{ lookup('config', application_id, 'credentials.administrator_password') | dotenv_quote }}
NEXTCLOUD_TALK_EXPECTED_SIGNALING_URL={{ NEXTCLOUD_HPB_SIGNALING_URL | dotenv_quote }}
NEXTCLOUD_TALK_EXPECTED_STUN_SERVER={{ NEXTCLOUD_HPB_STUN_ACTIVE_CONFIG | dotenv_quote }}
NEXTCLOUD_TALK_EXPECTED_TURN_SERVER={{ NEXTCLOUD_HPB_TURN_ACTIVE_SERVER | dotenv_quote }}
NEXTCLOUD_TALK_SETTINGS_CHECK_ENABLED={{ NEXTCLOUD_HPB_PLUGIN_ENABLED | string | lower }}
NEXTCLOUD_TALK_SETTINGS_URL={{ NEXTCLOUD_TALK_ADMIN_URL | dotenv_quote }}
NEXTCLOUD_TALK_UNEXPECTED_STUN_SERVER={{ (NEXTCLOUD_HPB_STUN_ONBOARD_CONFIG if NEXTCLOUD_HPB_TURN_STANDALONE_ENABLED | bool else '') | dotenv_quote }}
NEXTCLOUD_TALK_UNEXPECTED_TURN_SERVER={{ (NEXTCLOUD_HPB_TURN_ONBOARD_CONFIG.server | default('') if NEXTCLOUD_HPB_TURN_STANDALONE_ENABLED | bool else '') | dotenv_quote }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
PERSONA_ADMINISTRATOR_BLOCKED=true
PERSONA_BIBER_BLOCKED=true
+30 -15
View File
@@ -1,23 +1,38 @@
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
ODOO_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
PERSONA_BIBER_BLOCKED=true
PERSONA_ADMINISTRATOR_BLOCKED=true
# Playwright has no custom ENTRYPOINT, so the infinito CA cert is not injected and npm fails on the proxy-intercepted npm registry TLS.
NODE_TLS_REJECT_UNAUTHORIZED=0
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
# nocheck: playwright-service-gate — persona drives the OIDC path; LDAP federation is exercised in the LDAP-only matrix variant
LDAP_SERVICE_ENABLED={{ lookup('config', application_id, 'services.ldap.enabled') | string | lower }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# Service gate flags rendered for closure.
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
# nocheck: playwright-service-gate — persona drives the OIDC path; LDAP federation is exercised in the LDAP-only matrix variant
LDAP_SERVICE_ENABLED={{ lookup('config', application_id, 'services.ldap.enabled') | string | lower }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
# Playwright has no custom ENTRYPOINT, so the infinito CA cert is not injected and npm fails on the proxy-intercepted npm registry TLS.
NODE_TLS_REJECT_UNAUTHORIZED=0
ODOO_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
PERSONA_ADMINISTRATOR_BLOCKED=true
PERSONA_BIBER_BLOCKED=true
@@ -1,22 +1,34 @@
APP_BASE_URL={{ OPENCLOUD_URL | dotenv_quote }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
LOGIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
LOGIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
# Opencloud OIDC chain uses its own auth route, not the oauth2-proxy /openid-connect/auth pattern. Bespoke SSO tests cover both personas.
PERSONA_BIBER_BLOCKED=true
PERSONA_ADMINISTRATOR_BLOCKED=true
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
# nocheck: playwright-service-gate — persona drives the OIDC path; LDAP federation is exercised in the LDAP-only matrix variant
LDAP_SERVICE_ENABLED={{ lookup('config', application_id, 'services.ldap.enabled') | string | lower }}
LOGIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
LOGIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# Service gate flags rendered for closure.
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
# nocheck: playwright-service-gate — persona drives the OIDC path; LDAP federation is exercised in the LDAP-only matrix variant
LDAP_SERVICE_ENABLED={{ lookup('config', application_id, 'services.ldap.enabled') | string | lower }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
PERSONA_ADMINISTRATOR_BLOCKED=true
# Opencloud OIDC chain uses its own auth route, not the oauth2-proxy /openid-connect/auth pattern. Bespoke SSO tests cover both personas.
PERSONA_BIBER_BLOCKED=true
@@ -1,21 +1,33 @@
APP_BASE_URL={{ OPENTALK_URL | dotenv_quote }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
LOGIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
LOGIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
PERSONA_BIBER_BLOCKED=true
PERSONA_ADMINISTRATOR_BLOCKED=true
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
# nocheck: playwright-service-gate — persona drives the OIDC path; LDAP federation is exercised in the LDAP-only matrix variant
LDAP_SERVICE_ENABLED={{ lookup('config', application_id, 'services.ldap.enabled') | string | lower }}
LOGIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
LOGIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# Service gate flags rendered for closure.
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
# nocheck: playwright-service-gate — persona drives the OIDC path; LDAP federation is exercised in the LDAP-only matrix variant
LDAP_SERVICE_ENABLED={{ lookup('config', application_id, 'services.ldap.enabled') | string | lower }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
PERSONA_ADMINISTRATOR_BLOCKED=true
PERSONA_BIBER_BLOCKED=true
@@ -1,22 +1,34 @@
APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') | dotenv_quote }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
OPENWEBUI_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') | dotenv_quote }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('applications', application_id).server.domains.canonical.openwebui | dotenv_quote }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
# nocheck: playwright-service-gate — persona drives the OIDC path; LDAP federation is exercised in the LDAP-only matrix variant
LDAP_SERVICE_ENABLED={{ lookup('config', application_id, 'services.ldap.enabled') | string | lower }}
# nocheck: playwright-service-gate — consumed via shared persona helpers (roles/test-e2e-playwright/files/personas/)
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# Service gate flags rendered for closure.
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
# nocheck: playwright-service-gate — consumed via shared persona helpers (roles/test-e2e-playwright/files/personas/)
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
# nocheck: playwright-service-gate — persona drives the OIDC path; LDAP federation is exercised in the LDAP-only matrix variant
LDAP_SERVICE_ENABLED={{ lookup('config', application_id, 'services.ldap.enabled') | string | lower }}
# nocheck: playwright-service-gate — consumed via shared persona helpers (roles/test-e2e-playwright/files/personas/)
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# nocheck: playwright-service-gate — consumed via shared persona helpers (roles/test-e2e-playwright/files/personas/)
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
# nocheck: playwright-service-gate — consumed via shared persona helpers (roles/test-e2e-playwright/files/personas/)
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
OPENWEBUI_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
@@ -1,21 +1,33 @@
APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') | dotenv_quote }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
OIDC_BUTTON_TEXT={{ OIDC.BUTTON_TEXT | dotenv_quote }}
PEERTUBE_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') | dotenv_quote }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
# nocheck: playwright-service-gate — consumed via shared persona helpers (roles/test-e2e-playwright/files/personas/)
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# Service gate flags rendered for closure.
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
# nocheck: playwright-service-gate — consumed via shared persona helpers (roles/test-e2e-playwright/files/personas/)
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
# nocheck: playwright-service-gate — consumed via shared persona helpers (roles/test-e2e-playwright/files/personas/)
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# nocheck: playwright-service-gate — consumed via shared persona helpers (roles/test-e2e-playwright/files/personas/)
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
OIDC_BUTTON_TEXT={{ OIDC.BUTTON_TEXT | dotenv_quote }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
# nocheck: playwright-service-gate — consumed via shared persona helpers (roles/test-e2e-playwright/files/personas/)
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
PEERTUBE_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
@@ -1,29 +1,46 @@
APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
PIXELFED_BASE_URL={{ lookup('tls', 'web-app-pixelfed', 'url.base') | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
# Stock pixelfed /login expects an email, not a username; used by the native-login test that exercises the upstream form without OIDC.
ADMIN_EMAIL={{ lookup('users', 'administrator').email | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') }}
BIBER_OIDC_EMAIL_OVERRIDE={{ (lookup('users', 'biber').username ~ '@infinito.nexus') | dotenv_quote }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
KEYCLOAK_ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
KEYCLOAK_ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
# Keycloak admin API lets the OIDC test swap biber's email to a DNS-resolvable host; pixelfed's dns,spoof validator rejects .example.
KEYCLOAK_BASE_URL={{ lookup('tls', 'web-app-keycloak', 'url.base') | dotenv_quote }}
KEYCLOAK_REALM={{ OIDC.CLIENT.REALM | dotenv_quote }}
KEYCLOAK_ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
KEYCLOAK_ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
BIBER_OIDC_EMAIL_OVERRIDE={{ (lookup('users', 'biber').username ~ '@infinito.nexus') | dotenv_quote }}
PERSONA_BIBER_BLOCKED=true
PERSONA_ADMINISTRATOR_BLOCKED=true
KEYCLOAK_REALM={{ OIDC.CLIENT.REALM | dotenv_quote }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# Service gate flags rendered for closure.
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
PERSONA_ADMINISTRATOR_BLOCKED=true
PERSONA_BIBER_BLOCKED=true
PIXELFED_BASE_URL={{ lookup('tls', 'web-app-pixelfed', 'url.base') | dotenv_quote }}
@@ -1,24 +1,35 @@
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
POSTMARKS_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# Postmarks gates the entire UI via a sidecar oauth2-proxy to Keycloak; in-app RBAC is a documented exception (lifecycle.md, README.md).
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
NODE_TLS_REJECT_UNAUTHORIZED=0
PERSONA_BIBER_BLOCKED=true
# Service gate flags rendered for closure.
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
PERSONA_BIBER_BLOCKED=true
POSTMARKS_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
@@ -1,27 +1,39 @@
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
PROMETHEUS_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
# Prometheus is admin-only via oauth2-proxy allowed_groups; biber lacks the admin role, the proxy denies, and biber has no surface to drive.
PERSONA_BIBER_BLOCKED=true
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
# With oauth2-proxy disabled, prometheus is direct-accessible and admin has no logout to click; collapse to BLOCKED for a clean skip.
PERSONA_ADMINISTRATOR_BLOCKED={{ (not (lookup('config', application_id, 'services.oauth2.enabled') | bool)) | string | lower }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
# Scrape-target list: every role declaring `services.prometheus.{enabled,shared}`. The spec parameterises one `up=1` assertion per entry.
PROMETHEUS_TARGET_ROLES_JSON={{ lookup('roles_with_service', 'prometheus') | to_json | dotenv_quote }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# Service gate flags rendered for closure.
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
# With oauth2-proxy disabled, prometheus is direct-accessible and admin has no logout to click; collapse to BLOCKED for a clean skip.
PERSONA_ADMINISTRATOR_BLOCKED={{ (not (lookup('config', application_id, 'services.oauth2.enabled') | bool)) | string | lower }}
# Prometheus is admin-only via oauth2-proxy allowed_groups; biber lacks the admin role, the proxy denies, and biber has no surface to drive.
PERSONA_BIBER_BLOCKED=true
PROMETHEUS_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
# Scrape-target list: every role declaring `services.prometheus.{enabled,shared}`. The spec parameterises one `up=1` assertion per entry.
PROMETHEUS_TARGET_ROLES_JSON={{ lookup('roles_with_service', 'prometheus') | to_json | dotenv_quote }}
@@ -1,16 +1,23 @@
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
# Sphinx serves a static documentation site with no user accounts; personas have nothing to log into.
PERSONA_BIBER_BLOCKED=true
PERSONA_ADMINISTRATOR_BLOCKED=true
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# Service gate flags rendered for closure.
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
PERSONA_ADMINISTRATOR_BLOCKED=true
# Sphinx serves a static documentation site with no user accounts; personas have nothing to log into.
PERSONA_BIBER_BLOCKED=true
+37 -19
View File
@@ -1,28 +1,46 @@
APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
OIDC_BUTTON_TEXT={{ OIDC.BUTTON_TEXT | dotenv_quote }}
TAIGA_BASE_URL={{ lookup('tls', 'web-app-taiga', 'url.base') | dotenv_quote }}
LOGIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
LOGIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
# Taiga post-login UI exposes no logout control the generic helpers recognize; bespoke dashboard-to-taiga test drives Taiga's own flow.
PERSONA_BIBER_BLOCKED=true
PERSONA_ADMINISTRATOR_BLOCKED=true
CSS_SERVICE_ENABLED={{ lookup('config', application_id, 'services.css.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
# nocheck: playwright-service-gate — persona drives the OIDC path; LDAP federation is exercised in the LDAP-only matrix variant
LDAP_SERVICE_ENABLED={{ lookup('config', application_id, 'services.ldap.enabled') | string | lower }}
LOGIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
LOGIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# Service gate flags rendered for closure.
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
# nocheck: playwright-service-gate — persona drives the OIDC path; LDAP federation is exercised in the LDAP-only matrix variant
LDAP_SERVICE_ENABLED={{ lookup('config', application_id, 'services.ldap.enabled') | string | lower }}
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
CSS_SERVICE_ENABLED={{ lookup('config', application_id, 'services.css.enabled') | string | lower }}
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
OIDC_BUTTON_TEXT={{ OIDC.BUTTON_TEXT | dotenv_quote }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
PERSONA_ADMINISTRATOR_BLOCKED=true
# Taiga post-login UI exposes no logout control the generic helpers recognize; bespoke dashboard-to-taiga test drives Taiga's own flow.
PERSONA_BIBER_BLOCKED=true
TAIGA_BASE_URL={{ lookup('tls', 'web-app-taiga', 'url.base') | dotenv_quote }}
@@ -1,36 +1,55 @@
APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') | dotenv_quote }}
KEYCLOAK_BASE_URL={{ lookup('tls', 'web-app-keycloak', 'url.base') | dotenv_quote }}
KEYCLOAK_REALM_NAME={{ OIDC.CLIENT.REALM | dotenv_quote }}
WORDPRESS_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
SUPER_ADMIN_USERNAME={{ lookup('config', 'web-app-keycloak', 'services.keycloak.accounts.system.username') | dotenv_quote }}
SUPER_ADMIN_PASSWORD={{ lookup('config', 'web-app-keycloak', 'credentials.administrator_password') | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') | dotenv_quote }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
RBAC_GROUP_PATH_PREFIX={{ ('/' ~ (RBAC.GROUP.NAME | trim('/')) ~ '/' ~ application_id ~ '/') | dotenv_quote }}
DISCOURSE_API_KEY={{ (vault_discourse_api_key | default('')) | dotenv_quote }}
DISCOURSE_API_USERNAME={{ 'system' | dotenv_quote }}
# --- WP-Discourse round-trip ----------------------------------------------
DISCOURSE_BASE_URL={{ (lookup('tls', 'web-app-discourse', 'url.base') | dotenv_quote) if (lookup('config', application_id, 'services.discourse.enabled') | bool) else '""' }}
# Discourse keys off services.discourse.enabled; raw group_names is unreliable because matrix-deploy keeps the dep across all variants.
DISCOURSE_SERVICE_ENABLED={{ lookup('config', application_id, 'services.discourse.enabled') | string | lower }}
KEYCLOAK_BASE_URL={{ lookup('tls', 'web-app-keycloak', 'url.base') | dotenv_quote }}
KEYCLOAK_REALM_NAME={{ OIDC.CLIENT.REALM | dotenv_quote }}
LDAP_SERVICE_ENABLED={{ lookup('service', 'ldap').required | string | lower }}
# Service gate flags rendered for closure.
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# Service gate flags. Values are literal "true"/"false"; `tests/service-gating.js` reads them and hard-fails on unknown service names.
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('service', 'oidc').required | string | lower }}
LDAP_SERVICE_ENABLED={{ lookup('service', 'ldap').required | string | lower }}
# Discourse keys off services.discourse.enabled; raw group_names is unreliable because matrix-deploy keeps the dep across all variants.
DISCOURSE_SERVICE_ENABLED={{ lookup('config', application_id, 'services.discourse.enabled') | string | lower }}
PERSONA_ADMINISTRATOR_BLOCKED=true
PERSONA_BIBER_BLOCKED=true
RBAC_GROUP_PATH_PREFIX={{ ('/' ~ (RBAC.GROUP.NAME | trim('/')) ~ '/' ~ application_id ~ '/') | dotenv_quote }}
SUPER_ADMIN_PASSWORD={{ lookup('config', 'web-app-keycloak', 'credentials.administrator_password') | dotenv_quote }}
SUPER_ADMIN_USERNAME={{ lookup('config', 'web-app-keycloak', 'services.keycloak.accounts.system.username') | dotenv_quote }}
WORDPRESS_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
# WordPress Multisite toggle (true = multi-domain Multisite, false = Single-Site); source: services.wordpress.multisite.enabled.
WORDPRESS_MULTISITE_ENABLED={{ lookup('config', application_id, 'services.wordpress.multisite.enabled') | string | lower }}
# --- WP-Discourse round-trip ----------------------------------------------
DISCOURSE_BASE_URL={{ (lookup('tls', 'web-app-discourse', 'url.base') | dotenv_quote) if (lookup('config', application_id, 'services.discourse.enabled') | bool) else '""' }}
DISCOURSE_API_KEY={{ (vault_discourse_api_key | default('')) | dotenv_quote }}
DISCOURSE_API_USERNAME={{ 'system' | dotenv_quote }}
PERSONA_BIBER_BLOCKED=true
PERSONA_ADMINISTRATOR_BLOCKED=true
# Service gate flags rendered for closure.
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
@@ -1,24 +1,37 @@
APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
YOURLS_BASE_URL={{ lookup('tls', 'web-app-yourls', 'url.base') | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
NODE_TLS_REJECT_UNAUTHORIZED=0
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
# Service gate flags rendered for closure.
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# Service gate flags. Values MUST be literal "true" or "false".
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
NODE_TLS_REJECT_UNAUTHORIZED=0
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
PERSONA_BIBER_BLOCKED=true
PERSONA_ADMINISTRATOR_BLOCKED=true
# Service gate flags rendered for closure.
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
# nocheck: playwright-service-gate — covered by sys-svc-mail integration tests, not the persona surface
EMAIL_SERVICE_ENABLED={{ lookup('config', application_id, 'services.email.enabled') | string | lower }}
PERSONA_BIBER_BLOCKED=true
YOURLS_BASE_URL={{ lookup('tls', 'web-app-yourls', 'url.base') | dotenv_quote }}
@@ -1,2 +1,4 @@
CDN_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
CDN_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
@@ -1,5 +1,10 @@
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
CSS_BASE_URL={{ lookup('tls', 'web-svc-css', 'url.base') | dotenv_quote }}
CDN_BASE_URL={{ lookup('tls', 'web-svc-cdn', 'url.base') | dotenv_quote }}
CSS_BASE_URL={{ lookup('tls', 'web-svc-css', 'url.base') | dotenv_quote }}
CSS_TARGET_ROLES_JSON={{ lookup('roles_with_service', 'css') | to_json | dotenv_quote }}
@@ -1,20 +1,28 @@
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
LIBRETRANSLATE_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
LIBRETRANSLATE_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# LibreTranslate ships only OIDC via a sidecar oauth2-proxy on the UI; LDAP and in-app RBAC are exceptions (README.md, lifecycle.md).
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
NODE_TLS_REJECT_UNAUTHORIZED=0
PERSONA_BIBER_BLOCKED=true
# Service gate flags rendered for closure.
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
PERSONA_BIBER_BLOCKED=true
@@ -1,13 +1,21 @@
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
CDN_BASE_URL={{ lookup('tls', 'web-svc-cdn', 'url.base') | dotenv_quote }}
LOGOUT_TARGET_ROLES_JSON={{ lookup('roles_with_service', 'logout') | to_json | dotenv_quote }}
PERSONA_ADMINISTRATOR_BLOCKED=true
# Web-svc-logout has no user-facing surface; the role only ships universal-logout JS injected into every consumer. No persona surface.
PERSONA_BIBER_BLOCKED=true
PERSONA_ADMINISTRATOR_BLOCKED=true
LOGOUT_TARGET_ROLES_JSON={{ lookup('roles_with_service', 'logout') | to_json | dotenv_quote }}
CDN_BASE_URL={{ lookup('tls', 'web-svc-cdn', 'url.base') | dotenv_quote }}
@@ -1,8 +1,11 @@
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') }}
KNOWN_ICON_SLUG=keycloak
# Service gate flags rendered for closure.
MATOMO_BASE_URL={{ lookup('tls', 'web-app-matomo', 'url.base') | dotenv_quote }}
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
OAUTH2_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oauth2.enabled') | string | lower }}
+11 -6
View File
@@ -1,14 +1,19 @@
APP_BASE_URL={{ lookup('tls', application_id, 'url.base') }}
XMPP_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
LDAP_SERVICE_ENABLED={{ lookup('config', application_id, 'services.ldap.enabled') | string | lower }}
NODE_TLS_REJECT_UNAUTHORIZED=0
PERSONA_BIBER_BLOCKED=true
PERSONA_ADMINISTRATOR_BLOCKED=true
# Service gate flags rendered for closure.
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
NODE_TLS_REJECT_UNAUTHORIZED=0
OIDC_SERVICE_ENABLED={{ lookup('config', application_id, 'services.oidc.enabled') | string | lower }}
PERSONA_ADMINISTRATOR_BLOCKED=true
PERSONA_BIBER_BLOCKED=true
XMPP_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
+1 -1
View File
@@ -11,7 +11,7 @@
set -euo pipefail
# Default lives in env/static.env (SPOT); load.sh exports it.
# Default lives in env/default.env (SPOT); load.sh exports it.
PARALLEL="${INFINITO_WORKER_ENABLED}"
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
+1 -1
View File
@@ -17,7 +17,7 @@ fi
# shellcheck source=scripts/meta/env/load.sh
source scripts/meta/env/load.sh
: "${INFINITO_WORKER_CPU:?INFINITO_WORKER_CPU must be set (provided by env/static.env via the env loader)}"
: "${INFINITO_WORKER_CPU:?INFINITO_WORKER_CPU must be set (provided by env/default.env via the env loader)}"
n_targets=$#
if ((n_targets < INFINITO_WORKER_CPU)); then
+1 -1
View File
@@ -4,7 +4,7 @@
# Project env loader -- the single entry point that pulls the generated
# `.env` file into the current shell. `.env` is produced by
# `python -m cli.meta.env` (a.k.a. `make dotenv`) from the committed
# `env/static.env` plus runtime context (distro, GHA/Act flags,
# `env/default.env` plus runtime context (distro, GHA/Act flags,
# df/meminfo-derived sizes, sha256 secrets, etc.). `.env` is the single
# source of truth for both static defaults and runtime-resolved values.
#
+1 -1
View File
@@ -10,7 +10,7 @@ set -euo pipefail
# - Aggregates and deduplicates all role groups declared in each bundle's
# inventory.yml (see utils.inventory.bundle_apps).
# - Exports INFINITO_APPS=<csv> and delegates to fresh-purged-app.sh.
# - Defaults INFINITO_FULL_CYCLE=false (override via env/static.env or by
# - Defaults INFINITO_FULL_CYCLE=false (override via env/default.env or by
# exporting INFINITO_FULL_CYCLE=true).
#
# Required env:
@@ -13,14 +13,14 @@ Why:
which value won (the env-file, the env override, or the compose
default). Debugging the resulting drift is painful.
* **Single source of truth** -- the project keeps the canonical
default for every variable in ``env/static.env`` (consumed by
default for every variable in ``env/default.env`` (consumed by
``make dotenv`` into ``.env``). Inline compose defaults duplicate
that contract in a second place and drift the moment the static
default changes.
Fix when this test fails:
* Move the default to ``env/static.env`` so ``make dotenv`` materialises
* Move the default to ``env/default.env`` so ``make dotenv`` materialises
it into ``.env`` (which Docker Compose auto-loads).
* Replace the inline ``${VAR:-fallback}`` with ``${VAR:?Run 'make dotenv'
to generate the .env single source of truth}`` so the failure mode
@@ -115,8 +115,8 @@ class TestComposeNoDefaultSubstitutions(unittest.TestCase):
lines.append("")
lines.append(
"Inline defaults make the effective value ambiguous and "
"duplicate the SPOT that env/static.env owns. Move the "
"default into env/static.env and replace the substitution "
"duplicate the SPOT that env/default.env owns. Move the "
"default into env/default.env and replace the substitution "
"with ${VAR:?Run 'make dotenv' to generate the .env single "
"source of truth}."
)
+8 -8
View File
@@ -1,11 +1,11 @@
"""Drift + smoke guards for the project env generator.
The generator at ``cli/meta/env/__main__.py`` is the single source of
truth that materialises ``.env`` from the committed ``env/static.env``
truth that materialises ``.env`` from the committed ``env/default.env``
at the repo root plus runtime context. This integration test locks in
two invariants:
1. **Drift**: every key declared in ``env/static.env`` is read by a
1. **Drift**: every key declared in ``env/default.env`` is read by a
handler in :mod:`utils.env.handlers` (exposed via
``PASSTHROUGH_STATIC_KEYS`` / ``GHA_STATIC_KEYS``). No silent drops.
This is a cross-file consistency check, not a single-file lint.
@@ -33,7 +33,7 @@ from . import PROJECT_ROOT
if TYPE_CHECKING:
from pathlib import Path
STATIC_ENV = PROJECT_ROOT / "env" / "static.env"
STATIC_ENV = PROJECT_ROOT / "env" / "default.env"
# Baseline keys the rest of the codebase relies on after a clean
# (non-GHA, non-act) generation.
@@ -103,7 +103,7 @@ EXPECTED_BASELINE_KEYS = frozenset(
}
)
# Same env/static.env parser as the generator (kept here to avoid importing
# Same env/default.env parser as the generator (kept here to avoid importing
# the generator module just for the helper).
_LINE_RE = re.compile(r"^([A-Za-z_][A-Za-z0-9_]*)\s*=\s*(.*?)\s*$")
@@ -142,11 +142,11 @@ def parse_dotenv(path: Path) -> dict[str, str]:
def generator_referenced_keys() -> set[str]:
"""Return the set of env/static.env keys the generator actually reads.
"""Return the set of env/default.env keys the generator actually reads.
Sourced from the handler registry's ``PASSTHROUGH_STATIC_KEYS`` and
``GHA_STATIC_KEYS`` tuples. Catches the most common drift: a new
key in env/static.env that no handler references."""
key in env/default.env that no handler references."""
return set(PASSTHROUGH_STATIC_KEYS) | set(GHA_STATIC_KEYS)
@@ -157,7 +157,7 @@ class TestStaticYamlDrift(unittest.TestCase):
unread = static_keys - ref_keys
self.assertFalse(
unread,
"Keys in env/static.env are not read by any handler under "
"Keys in env/default.env are not read by any handler under "
"utils/env/handlers/ (silent drop). Add them to "
"PASSTHROUGH_STATIC_KEYS or GHA_STATIC_KEYS: "
f"{sorted(unread)}",
@@ -169,7 +169,7 @@ class TestStaticYamlDrift(unittest.TestCase):
phantom = ref_keys - static_keys
self.assertFalse(
phantom,
"Generator references keys that do not exist in env/static.env: "
"Generator references keys that do not exist in env/default.env: "
f"{sorted(phantom)}",
)
+79
View File
@@ -0,0 +1,79 @@
"""Env files (`*.env`, `*.env.j2`) must list keys in ASC order."""
from __future__ import annotations
import re
import unittest
from dataclasses import dataclass
from typing import TYPE_CHECKING
from utils.cache.files import iter_non_ignored_files, read_text
from . import PROJECT_ROOT
if TYPE_CHECKING:
from pathlib import Path
_KEY_RE = re.compile(r"^\s*(?P<key>[A-Za-z_][A-Za-z0-9_]*)\s*=")
# Jinja2 control flow makes line ordering load-bearing; skip files that use it.
_JINJA_BLOCK_RE = re.compile(r"\{%")
@dataclass(frozen=True)
class _Entry:
line_no: int
key: str
def _entries_in(path: Path) -> list[_Entry] | None:
raw = read_text(str(path))
if _JINJA_BLOCK_RE.search(raw):
return None
out: list[_Entry] = []
for index, line in enumerate(raw.splitlines(), start=1):
match = _KEY_RE.match(line)
if match is None:
continue
out.append(_Entry(index, match.group("key")))
return out
def _scan_targets() -> list[Path]:
return [
PROJECT_ROOT / rel
for rel in iter_non_ignored_files(root=str(PROJECT_ROOT))
if rel.endswith((".env", ".env.j2"))
]
class TestEnvFilesAlphabetical(unittest.TestCase):
def test_env_entries_sorted_ascending(self) -> None:
targets = _scan_targets()
self.assertTrue(targets, "no env files found to scan")
violations: list[str] = []
for path in targets:
entries = _entries_in(path)
if entries is None or len(entries) < 2:
continue
keys = [e.key for e in entries]
sorted_keys = sorted(keys)
if keys == sorted_keys:
continue
rel = path.relative_to(PROJECT_ROOT).as_posix()
for entry, expected in zip(entries, sorted_keys, strict=True):
if entry.key != expected:
violations.append(
f" {rel}:{entry.line_no}: {entry.key} (expected {expected})"
)
break
if violations:
self.fail(
"Env files must list keys in ASC order "
f"({len(violations)} file(s) out of order):\n" + "\n".join(violations)
)
if __name__ == "__main__":
unittest.main()
+102
View File
@@ -0,0 +1,102 @@
"""Env files (`*.env`, `*.env.j2`): at most one `# ...` comment line directly above each entry."""
from __future__ import annotations
import re
import unittest
from dataclasses import dataclass
from typing import TYPE_CHECKING
from utils.cache.files import iter_non_ignored_files, read_text
from . import PROJECT_ROOT
if TYPE_CHECKING:
from pathlib import Path
_KEY_RE = re.compile(r"^\s*(?P<key>[A-Za-z_][A-Za-z0-9_]*)\s*=")
_COMMENT_RE = re.compile(r"^\s*#")
# nocheck:foo / nocheck: foo markers are suppression directives, not WHY comments.
_NOCHECK_RE = re.compile(r"^\s*#\s*nocheck\s*:")
@dataclass(frozen=True)
class _Violation:
file: str
line_no: int
key: str
comment_lines: int
def _comments_directly_above(lines: list[str], entry_idx: int) -> int:
"""Count consecutive `#`-prefixed lines directly above index *entry_idx*
(no blank line between). `# nocheck:` suppression markers do not count."""
count = 0
cursor = entry_idx - 1
while cursor >= 0:
line = lines[cursor]
if _COMMENT_RE.match(line):
if not _NOCHECK_RE.match(line):
count += 1
cursor -= 1
continue
break
return count
def _scan_file(path: Path) -> list[_Violation]:
lines = read_text(str(path)).splitlines()
out: list[_Violation] = []
rel = path.relative_to(PROJECT_ROOT).as_posix()
for index, line in enumerate(lines):
match = _KEY_RE.match(line)
if match is None:
continue
n = _comments_directly_above(lines, index)
if n > 1:
out.append(_Violation(rel, index + 1, match.group("key"), n))
return out
def _scan_targets() -> list[Path]:
return [
PROJECT_ROOT / rel
for rel in iter_non_ignored_files(root=str(PROJECT_ROOT))
if rel.endswith((".env", ".env.j2"))
]
class TestEnvSingleLineComments(unittest.TestCase):
def test_env_entries_have_at_most_one_comment_line_above(self) -> None:
targets = _scan_targets()
self.assertTrue(targets, "no env files found to scan")
violations: list[_Violation] = []
for path in targets:
violations.extend(_scan_file(path))
if violations:
grouped: dict[str, list[_Violation]] = {}
for v in violations:
grouped.setdefault(v.file, []).append(v)
lines = [
f"Env entries with multi-line comment block "
f"({len(violations)} violations across {len(grouped)} file(s)):",
"",
"Env entries (`KEY=value`) must be preceded by AT MOST one `# ...` comment "
"line on the immediately preceding line. Collapse multi-line blocks to a "
"single one-line WHY comment.",
"",
"Offenders:",
]
for f, vs in sorted(grouped.items()):
lines.append(f" {f}:")
lines.extend(
f" line {v.line_no} ({v.key}): {v.comment_lines} comment lines above"
for v in vs
)
self.fail("\n".join(lines))
if __name__ == "__main__":
unittest.main()
@@ -0,0 +1,3 @@
from tests.lint.filesystem import PROJECT_ROOT
__all__ = ["PROJECT_ROOT"]
@@ -0,0 +1,63 @@
"""Makefile target definitions must be listed in ASC order."""
from __future__ import annotations
import re
import unittest
from dataclasses import dataclass
from typing import TYPE_CHECKING
from utils.cache.files import read_text
from . import PROJECT_ROOT
if TYPE_CHECKING:
from pathlib import Path
_TARGET_RE = re.compile(r"^(?P<name>[A-Za-z][A-Za-z0-9_-]*)\s*:")
@dataclass(frozen=True)
class _Target:
line_no: int
name: str
def _targets_in(path: Path) -> list[_Target]:
out: list[_Target] = []
for index, line in enumerate(read_text(str(path)).splitlines(), start=1):
match = _TARGET_RE.match(line)
if match is None:
continue
out.append(_Target(index, match.group("name")))
return out
class TestMakefileTargetsAlphabetical(unittest.TestCase):
def test_makefile_targets_sorted_ascending(self) -> None:
path = PROJECT_ROOT / "Makefile"
self.assertTrue(path.is_file(), "Makefile not found at project root")
targets = _targets_in(path)
self.assertTrue(targets, "no targets found in Makefile")
names = [t.name for t in targets]
sorted_names = sorted(names)
if names == sorted_names:
return
violations: list[str] = []
for target, expected in zip(targets, sorted_names, strict=True):
if target.name != expected:
violations.append(
f" Makefile:{target.line_no}: {target.name} (expected {expected})"
)
self.fail(
"Makefile target definitions must appear in ASC order "
f"({len(violations)} out of place):\n" + "\n".join(violations)
)
if __name__ == "__main__":
unittest.main()
@@ -0,0 +1,86 @@
"""Makefile target definitions: at most one `# ...` comment line directly above each target."""
from __future__ import annotations
import re
import unittest
from dataclasses import dataclass
from typing import TYPE_CHECKING
from utils.cache.files import read_text
from . import PROJECT_ROOT
if TYPE_CHECKING:
from pathlib import Path
_TARGET_RE = re.compile(r"^(?P<name>[A-Za-z][A-Za-z0-9_-]*)\s*:")
_COMMENT_RE = re.compile(r"^\s*#")
# nocheck:foo markers are suppression directives, not WHY comments.
_NOCHECK_RE = re.compile(r"^\s*#\s*nocheck\s*:")
@dataclass(frozen=True)
class _Violation:
line_no: int
target: str
comment_lines: int
def _comments_directly_above(lines: list[str], target_idx: int) -> int:
"""Count consecutive `#`-prefixed lines directly above index *target_idx*
(no blank line between). `# nocheck:` suppression markers do not count."""
count = 0
cursor = target_idx - 1
while cursor >= 0:
line = lines[cursor]
if _COMMENT_RE.match(line):
if not _NOCHECK_RE.match(line):
count += 1
cursor -= 1
continue
break
return count
def _scan_file(path: Path) -> list[_Violation]:
lines = read_text(str(path)).splitlines()
out: list[_Violation] = []
for index, line in enumerate(lines):
match = _TARGET_RE.match(line)
if match is None:
continue
n = _comments_directly_above(lines, index)
if n > 1:
out.append(_Violation(index + 1, match.group("name"), n))
return out
class TestMakefileSingleLineComments(unittest.TestCase):
def test_makefile_targets_have_at_most_one_comment_line_above(self) -> None:
path = PROJECT_ROOT / "Makefile"
self.assertTrue(path.is_file(), "Makefile not found at project root")
violations = _scan_file(path)
if not violations:
return
lines = [
f"Makefile targets with multi-line comment block "
f"({len(violations)} violations):",
"",
"Makefile targets must be preceded by AT MOST one `# ...` comment line "
"on the immediately preceding line. Collapse multi-line blocks to a "
"single one-line WHY comment.",
"",
"Offenders:",
]
lines.extend(
f" Makefile:{v.line_no} ({v.target}): {v.comment_lines} comment lines above"
for v in violations
)
self.fail("\n".join(lines))
if __name__ == "__main__":
unittest.main()
@@ -1,6 +1,6 @@
"""Lint guard: `.sh` files MUST NOT declare INFINITO_* defaults.
The single source of truth for INFINITO_* defaults is ``env/static.env``
The single source of truth for INFINITO_* defaults is ``env/default.env``
(materialised into ``.env`` by ``make dotenv``). Shell-side defaults
duplicate that contract and drift silently the moment the static
default changes.
@@ -20,7 +20,7 @@ Forbidden:
Suppress on a per-line basis with a same-line ``# nocheck: <reason>``
marker. Use it only when the shell context genuinely cannot consume
``env/static.env`` (e.g. GHA workflow-input bridges, script-internal
``env/default.env`` (e.g. GHA workflow-input bridges, script-internal
overrides not exposed as a stack-wide variable).
"""
@@ -104,7 +104,7 @@ def _scan_file(path: Path) -> list[Violation]:
idx,
"inline-default",
f"${{{key}{op}{default}}} declares a shell-side default; "
f"move the default to env/static.env (SPOT) and read as "
f"move the default to env/default.env (SPOT) and read as "
f"bare ${{{key}}} or required ${{{key}:?msg}}",
)
)
@@ -119,7 +119,7 @@ def _scan_file(path: Path) -> list[Violation]:
idx,
"setdefault",
f"${{{key}{op}{default}}} sets a shell-side default; "
f"move it to env/static.env (SPOT)",
f"move it to env/default.env (SPOT)",
)
)
return violations
@@ -145,7 +145,7 @@ class TestShellNoInfinitoDefaults(unittest.TestCase):
f"({len(all_violations)} violations across "
f"{len(grouped)} file(s)):",
"",
"INFINITO_* defaults belong in env/static.env (SPOT); the "
"INFINITO_* defaults belong in env/default.env (SPOT); the "
"generated .env then carries them. Shell-side defaults are "
"a second source that drifts silently. Read bare "
"${INFINITO_VAR} or use ${INFINITO_VAR:?msg}; the empty-form "
@@ -3,7 +3,7 @@
The literal path "inventories/development/default.yml" is exposed in
TWO places that must stay in lockstep:
* `env/static.env` — `INVENTORY_VARS_FILE` (SPOT-of-record for callers
* `env/default.env` — `INVENTORY_VARS_FILE` (SPOT-of-record for callers
that go through `make dotenv` / the bash deploy chain).
* `cli/administration/deploy/development/common.DEV_INVENTORY_VARS_FILE`
— fallback for direct/test invocations that bypass the bash chain.
@@ -24,7 +24,7 @@ from utils.cache.files import iter_project_files, read_text
from . import PROJECT_ROOT
STATIC_ENV = PROJECT_ROOT / "env" / "static.env"
STATIC_ENV = PROJECT_ROOT / "env" / "default.env"
def _parse_env_default(file_text: str) -> str:
@@ -52,7 +52,7 @@ class TestInventoryVarsFileSpotDriftGuard(unittest.TestCase):
self.assertEqual(
env_default,
DEV_INVENTORY_VARS_FILE,
"INVENTORY_VARS_FILE default in env/static.env drifted from "
"INVENTORY_VARS_FILE default in env/default.env drifted from "
"cli.administration.deploy.development.common.DEV_INVENTORY_VARS_FILE. "
"Update both literals (or, better, rebase one on the other).",
)
@@ -63,7 +63,7 @@ class TestInventoryVarsFileSpotDriftGuard(unittest.TestCase):
# path is a missed SPOT migration.
literal = "inventories/development/default.yml"
allowed_relative = {
"env/static.env",
"env/default.env",
"cli/administration/deploy/development/common.py",
Path(__file__).relative_to(PROJECT_ROOT).as_posix(),
# Documentation and historical/comment references stay as-is:
+1 -1
View File
@@ -15,7 +15,7 @@ from utils.env.parser import parse_static_env, parse_static_env_with_comments
def _write(td: str, body: str) -> Path:
p = Path(td) / "static.env"
p = Path(td) / "default.env"
p.write_text(body, encoding="utf-8")
return p
+3 -3
View File
@@ -2,18 +2,18 @@
This directory hosts the Python implementation behind `make dotenv`.
For the general rules that govern READMEs in code directories see [documentation.md](../../docs/contributing/documentation.md).
For the per-variable defaults that this code consumes see [static.env](../../env/static.env).
For the per-variable defaults that this code consumes see [default.env](../../env/default.env).
## Purpose 🎯
The package converts the committed [static.env](../../env/static.env) plus a small runtime context into the gitignored `.env` at the repo root.
The package converts the committed [default.env](../../env/default.env) plus a small runtime context into the gitignored `.env` at the repo root.
Every module here belongs to one of four roles: parse, resolve, orchestrate, write.
## Structure 🗂️
| File | Role |
|---|---|
| `parser.py` | Read [static.env](../../env/static.env) into `(values, comments)` tuples. |
| `parser.py` | Read [default.env](../../env/default.env) into `(values, comments)` tuples. |
| `runtime.py` | Resolve host-context lookups (disk, RAM, hostname, GHA/Act flags, `/proc/version`, helper-script invocation). |
| `builder.py` | Thin orchestrator that defines `EnvBuilder`, `BuildContext`, and `build_env()`. Walks the handler registry. |
| `writer.py` | Serialise an `EnvBuilder` into a docker-compose-compatible `.env` on disk. |
+1 -1
View File
@@ -1,7 +1,7 @@
"""Project .env generator -- internal helpers.
The CLI entry point lives at ``cli.meta.env`` (`python -m cli.meta.env`
or `make dotenv`). It reads the committed ``env/static.env``, layers
or `make dotenv`). It reads the committed ``env/default.env``, layers
runtime context on top (distro, GHA/Act flags, df/meminfo-derived
sizes, sha256 secrets, repo owner/name resolution), and writes the
resulting ``.env`` to the repo root.
+2 -2
View File
@@ -71,10 +71,10 @@ def build_env(
*,
comments: dict[str, str] | None = None,
) -> EnvBuilder:
"""Compose the full env-set from ``static`` (parsed env/static.env) +
"""Compose the full env-set from ``static`` (parsed env/default.env) +
runtime context resolved against ``repo_root``.
``comments`` is the parsed per-key comment map from env/static.env
``comments`` is the parsed per-key comment map from env/default.env
(see :func:`utils.env.parser.parse_static_env_with_comments`).
Dynamic keys carry their comments via each handler's ``COMMENT``
constant.
+2 -2
View File
@@ -34,7 +34,7 @@ if TYPE_CHECKING:
from utils.env.builder import BuildContext, EnvBuilder
KEY = "INFINITO_..."
COMMENT = "<single-line per-key comment, mirrors env/static.env style>"
COMMENT = "<single-line per-key comment, mirrors env/default.env style>"
def apply(eb: EnvBuilder, ctx: BuildContext) -> None:
@@ -60,4 +60,4 @@ def apply(eb: EnvBuilder, ctx: BuildContext) -> None:
- [__init__.py](__init__.py) MUST list every handler module in `ORDERED_HANDLERS`.
- The order in `ORDERED_HANDLERS` MUST respect data dependencies.
Example: `infinito_container` runs after `passthrough` so it can read the resolved `INFINITO_DISTRO`.
- Adding a handler MUST also bump the relevant baseline test in [test_dotenv_generator.py](../../../tests/integration/meta/env/test_dotenv_generator.py) when the new key is a static-default in [static.env](../../../env/static.env), so the drift test stays honest.
- Adding a handler MUST also bump the relevant baseline test in [test_dotenv_generator.py](../../../tests/integration/meta/env/test_dotenv_generator.py) when the new key is a static-default in [default.env](../../../env/default.env), so the drift test stays honest.
+1 -1
View File
@@ -1,4 +1,4 @@
"""GHA-only static-env passthrough: keys from env/static.env that are
"""GHA-only static-env passthrough: keys from env/default.env that are
only seeded when running on real GitHub Actions."""
from __future__ import annotations
+1 -1
View File
@@ -1,6 +1,6 @@
"""INFINITO_COMPILE: 1 = build infinito locally inside the container on
entry; 0 = use the pulled image as-is. On GHA we force 0 (pull the
published image, don't rebuild locally). Locally the static.env default
published image, don't rebuild locally). Locally the default.env default
``1`` carries through."""
from __future__ import annotations
+1 -1
View File
@@ -2,7 +2,7 @@
1. An active VIRTUAL_ENV pins the base to its parent (caller is already
inside a managed venv, respect it).
2. The static.env default (typically ``/opt/venvs``) wins when it is
2. The default.env default (typically ``/opt/venvs``) wins when it is
user-writable -- this is the container path.
3. Otherwise fall back to ``$HOME/.venvs`` so a non-root host user can
create the venv without sudo.
+2 -2
View File
@@ -1,6 +1,6 @@
"""Static-env passthrough: copy every declared key from env/static.env
"""Static-env passthrough: copy every declared key from env/default.env
with caller-env-wins (setdefault) semantics. Comments come from
``ctx.static_comments`` (parsed from env/static.env)."""
``ctx.static_comments`` (parsed from env/default.env)."""
from __future__ import annotations
+1 -1
View File
@@ -1,4 +1,4 @@
"""Parse the project's `env/static.env`.
"""Parse the project's `env/default.env`.
The format is the docker-compose `.env`-subset: flat `KEY=value` lines,
`#` for comments, optional surrounding double/single quotes for values
+2 -2
View File
@@ -6,7 +6,7 @@ contain only "safe" characters are emitted bare; everything else is
double-quoted with backslash-escaping of `\\` and `"`.
Each key is preceded by its documentation comment when the builder
carries one, mirroring the convention used in `env/static.env`.
carries one, mirroring the convention used in `env/default.env`.
"""
from __future__ import annotations
@@ -41,7 +41,7 @@ def quote_for_dotenv(value: str) -> str:
def write_dotenv(eb: EnvBuilder, dest: Path) -> None:
lines: list[str] = [
"# Generated by `make dotenv` (python -m cli.meta.env) -- do NOT edit.",
"# Re-run after changes to env/static.env or after the runtime context",
"# Re-run after changes to env/default.env or after the runtime context",
"# shifts (distro, CI vs local, fresh checkout).",
]
for key in sorted(eb.values):