Skip to content

authz-probe: ink-only test app and signed test catalog for app roles - #8

Merged
reoring merged 2 commits into
mainfrom
work/20261113/authz-probe
Nov 13, 2026
Merged

reoring merged 2 commits into
mainfrom
work/20261113/authz-probe

Conversation

@reoring

@reoring reoring commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

What

An ink-only test fixture for platform app roles and bindings (ADR-0082, tracker APT-844).

  • cmd/authz-probe: dependency-free Go server on appserver-go v0.6.0. whoami returns the resolved permissions and the declared/accepted state; read/write/admin answer 403 without their permission. No fallback when the exchange fails.
  • catalog/authz-probe.yaml: definition declaring permissions, roles (viewer, editor, admin) and default bindings.
  • authz-probe.yml (manual, main only): pushes the image as ghcr.io/appthrust/memo:authz-probe-<version> and a signed one-entry catalog as ghcr.io/appthrust/memo:authz-test-catalog.
  • hack/authz-test/appcatalogsource.yaml: the task-owned source an operator applies on ink; it trusts only that workflow.

Why here

The shared catalog cannot carry roles yet: one undecodable definition makes the whole catalog invalid on estates with the older schema. Memo itself cannot be reused under another slug because its directory link must be in the same catalog. The image and catalog share Memo's public package so no new GHCR package needs a visibility change.

Effect on Memo

None on the Memo image, catalog entry, or release flow. Memo's follow-mode tag filter is anchored to bare versions and cannot select authz-probe-* or authz-test-* tags; the probe is pinned-only for the reverse reason. No workflow lists or prunes tags.

Verification

go build ./..., go vet ./cmd/..., go test ./cmd/authz-probe/..., bun test hack/authz-test-catalog.test.ts pass. The definition (with a version filled in) and the source manifest pass kubectl apply --dry-run=server on ink. The catalog bytes were parsed with the platform's pkg/appcatalog reader. Not yet run: the image build, publication and signing, and the app on a live estate.

To be removed or moved to an SDK example after the verification.

@reoring
reoring merged commit fdd4044 into main Nov 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant