Repository navigation
feat(training): versioned attest:* tag contract + conformance test (closes #32) - #44
Merged
Merged
Conversation
…loses #32) The attest:* IAM tag namespace shared with attest was defined independently in each repo, so a rename on either side would silently break the other. Close that gap without coupling the products at build time (no new provabl/* dependency — the byte-identical schema + shared SchemaVersion are the contract): - Add internal/training/attest-tags-schema.json — the canonical, machine-readable schema, byte-identical with attest's pkg/schema/attest-tags-schema.json. - Add SchemaVersion const + embed/parse the schema. - Add internal/training/tags_schema_test.go: locks qualify's writer=qualify tag constants, moduleTagMap, and ModuleExpiryTag to the schema's keys / module / expiry metadata, and asserts SchemaVersion matches. Drift fails CI. - Document the contract + bump rule in the README. Closes #32
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.
Closes #32 — the silent qualify↔attest tag-drift gap, qualify (writer) side.
Problem
The
attest:*tag namespace was defined independently in each repo; a rename on either side silently broke the other (Cedar then sees the attribute as missing, not an error).Approach (no new dependency)
No
provabl/*coupling added — the byte-identical schema + sharedSchemaVersionare the contract:internal/training/attest-tags-schema.json— canonical schema, byte-identical with attest'spkg/schema/attest-tags-schema.json.SchemaVersionconst + embed/parse.internal/training/tags_schema_test.go— locks qualify'swriter:qualifytag constants,moduleTagMap(← schemamodule), andModuleExpiryTag(← schemaexpiry) to the schema, and assertsSchemaVersionmatches. Verified it fails CI on a renamed key.Companion
attest side: PR on
feat/versioned-tag-schemain provabl/attest (reader-side conformance). Both carry the byte-identical schema; merge together.