docs(auth,gitops): update deployments.yaml docstrings to reflect ~/Workloads registry
- Update scripts/appctl_auth.py module and load_admitted_workloads docstrings to reference ~/Workloads/deployments.yaml and HOMELAB_DEPLOYMENTS_FILE / WORKLOADS_DIR overrides instead of config/deployments.yaml - Update scripts/gitops_dispatcher.py get_trusted_repository_mapping docstring to reference the ~/Workloads/deployments.yaml admission registry (templated by config/deployments.yaml)
This commit is contained in:
1 parent
df7c1f5292
commit
c337914fb3
2 files changed
+4
-3
No files matched your search
@@ -6,7 +6,7 @@ Implements the zero-trust authorization pipeline for homelab-appctl.service:
|
|||||||
- Unix domain socket SO_PEERCRED fallback to homelab-viewer for zero-friction local reads
|
- Unix domain socket SO_PEERCRED fallback to homelab-viewer for zero-friction local reads
|
||||||
- Mandatory Bearer tokens for all network (HTTP) operations and all mutations / sensitive reads
|
- Mandatory Bearer tokens for all network (HTTP) operations and all mutations / sensitive reads
|
||||||
- 3-role RBAC enforcement (homelab-admin, homelab-operator, homelab-viewer)
|
- 3-role RBAC enforcement (homelab-admin, homelab-operator, homelab-viewer)
|
||||||
- Workload scope gating against config/deployments.yaml for homelab-operator
|
- Workload scope gating against ~/Workloads/deployments.yaml (or HOMELAB_DEPLOYMENTS_FILE / WORKLOADS_DIR override) for homelab-operator
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
@@ -227,7 +227,8 @@ class TokenStore:
|
|||||||
|
|
||||||
def load_admitted_workloads(deployments_path: Path | str | None = None) -> set[str]:
|
def load_admitted_workloads(deployments_path: Path | str | None = None) -> set[str]:
|
||||||
"""
|
"""
|
||||||
Load admitted repository names and aliases from config/deployments.yaml.
|
Load admitted repository names and aliases from ~/Workloads/deployments.yaml
|
||||||
|
(or HOMELAB_DEPLOYMENTS_FILE / WORKLOADS_DIR override).
|
||||||
Fails closed (empty set) if registry is missing or malformed.
|
Fails closed (empty set) if registry is missing or malformed.
|
||||||
"""
|
"""
|
||||||
if deployments_path is not None:
|
if deployments_path is not None:
|
||||||
|
|||||||
@@ -260,7 +260,7 @@ def get_trusted_repository_mapping() -> dict[str, Path]:
|
|||||||
"""
|
"""
|
||||||
Build authoritative mapping of logical repository identities to local paths.
|
Build authoritative mapping of logical repository identities to local paths.
|
||||||
Webhook payloads can only select repositories defined in this mapping.
|
Webhook payloads can only select repositories defined in this mapping.
|
||||||
Core Authoritative Registry (deployments.yaml) is the sole admission authority.
|
Workloads admission registry (~/Workloads/deployments.yaml, templated by config/deployments.yaml) is the sole admission authority.
|
||||||
Fails closed if the registry is missing, unreadable, or malformed.
|
Fails closed if the registry is missing, unreadable, or malformed.
|
||||||
"""
|
"""
|
||||||
mapping: dict[str, Path] = {}
|
mapping: dict[str, Path] = {}
|
||||||
|
|||||||
Reference in new issue
Block a user