mirror of
https://scm.tikali.ai/tikali/applications/monky/monky-deployd.git
synced 2026-09-18 06:16:16 +00:00
docs+defaults: 443 everywhere the agent dials; the attr the broker does not add yet; no jti state on the mount; release:gitea has not run
DD-0523 — !7 (31586c30, 0.1.5) moved install.sh and config.example.yaml to the
443 intercept after env-qa-02 hit "service not available". The ansible role
default (monky_deployd_tenancy_port) and TenancyCfg.port still said 8081, so
an ansible-installed box or a config that omits `port` still dialled the wrong
port; both now default to 443, the proxy-mapping and config tests follow, and
PROTOCOL.md §Where and how states the intercept port separately from the
in-pod 8081 and names openziti state/overlay/configs.json as the authority.
DD-0525 — PROTOCOL.md and README said "the broker adds the attr when the
identity is created at kit reveal". monky-ziti at b44c50a4 has no such code
(app/fabric.py host_identity_attrs carries the env template only) and openziti
docs/services.md says "Nothing carries the attr yet". Both now state the
dependency: an operator adds #monky-deploy-agent/#openbao-client on the
controller until the ADR-0028 addendum lands in monky-ziti.
DD-0527 — "the old kit's grant fails at login (unknown/used jti)". The
jwt-tenancy mount keeps no replay state (openbao terraform/jwt-tenancy.tf
see_env role: signature, aud, bound_claims, exp); a superseded grant logs in
until exp and the refusal is tenancy's 401 on the first bearer call. The
second-reveal paragraph, the grant-flow diagram and README §Security model say
so; FakeBao no longer pops a grant at login (the suite's superseded-token test
already goes through FakeTenancy.superseded_jtis, which is the real model).
DD-0528 — "Both locations keep being published": release:gitea has been a
never-run manual job on every tag pipeline (6999, 7044, 7066); README and
OPERATIONS.md now say when the Gitea mirror is published and that it has not
been yet.
Gates (local, py3.12): ruff format, ruff check, pytest 50 passed,
bash -n packaging/install.sh. `git grep 8081` afterwards hits only the in-pod
listener statements.
Doc-Drift: DD-0523 fixed
Doc-Drift: DD-0525 fixed
Doc-Drift: DD-0527 fixed
Doc-Drift: DD-0528 fixed
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AW3QqEpwLV69KHn24Re45Q
This commit is contained in:
@@ -10,7 +10,7 @@ transport: sdk
|
||||
identity: /opt/openziti/etc/identities/monky-host.env-qa-02.json
|
||||
tenancy:
|
||||
service: monky.tenancy.deploy
|
||||
base_url: http://monky.tenancy.deploy:8081
|
||||
base_url: http://monky.tenancy.deploy:443
|
||||
bao:
|
||||
service: openbao
|
||||
addr: https://bao.cbs.tikali.net:8200 # intercept, not public DNS
|
||||
@@ -27,7 +27,7 @@ volumes_on_absent: keep
|
||||
def test_yaml_subset_parses_nested_maps_and_types():
|
||||
d = c.parse_yaml_subset(KIT)
|
||||
assert d["env_id"] == "env-qa-02"
|
||||
assert d["tenancy"]["base_url"] == "http://monky.tenancy.deploy:8081"
|
||||
assert d["tenancy"]["base_url"] == "http://monky.tenancy.deploy:443"
|
||||
assert d["bao"]["addr"] == "https://bao.cbs.tikali.net:8200"
|
||||
assert d["interval_s"] == 60 and d["laptop_mode"] is False
|
||||
|
||||
@@ -46,7 +46,7 @@ def test_yaml_subset_refuses_flow_style_and_tabs():
|
||||
|
||||
def test_config_defaults_and_derivations():
|
||||
cfg = c.from_dict(c.parse_yaml_subset(KIT))
|
||||
assert cfg.tenancy.host == "monky.tenancy.deploy" and cfg.tenancy.port == 8081 and cfg.tenancy.scheme == "http"
|
||||
assert cfg.tenancy.host == "monky.tenancy.deploy" and cfg.tenancy.port == 443 and cfg.tenancy.scheme == "http"
|
||||
assert cfg.bao_url == ("https", "bao.cbs.tikali.net", 8200)
|
||||
assert cfg.deploy_dir == "/var/lib/monky-deployd/env-qa-02"
|
||||
assert cfg.compose_project == "monky-env-qa-02"
|
||||
|
||||
Reference in New Issue
Block a user