Repository navigation
authz-probe: ink-only test app and signed test catalog for app roles - #8
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.whoamireturns the resolved permissions and the declared/accepted state;read/write/adminanswer 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 asghcr.io/appthrust/memo:authz-probe-<version>and a signed one-entry catalog asghcr.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
directorylink 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-*orauthz-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.tspass. The definition (with a version filled in) and the source manifest passkubectl apply --dry-run=serveron ink. The catalog bytes were parsed with the platform'spkg/appcatalogreader. 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.