Repository navigation
[M2.3c3a] Validate tenant settings and scope configuration permissions - #84
Merged
Merged
Conversation
5 tasks done
samuelmbabhazi
force-pushed
the
feat/m2.3c2b2-live-tenant-access
branch
from
November 5, 2026 12:47
fa90cb8 to
dc34813
Compare
samuelmbabhazi
changed the base branch from
feat/m2.3c2b2-live-tenant-access
to
main
November 5, 2026 12:47
samuelmbabhazi
force-pushed
the
feat/m2.3c3a-resource-settings-policy
branch
from
November 5, 2026 12:47
7d52609 to
773de1a
Compare
samuelmbabhazi
added a commit
that referenced
this pull request
Nov 5, 2026
… to proof (#85) Resource commands need to recheck the caller under the same account lock as password resets and permission changes. This adds a public identity boundary for those commands, including password/MFA reauthentication and session rotation restricted to the same authenticated callback and security version. The callback joins the existing transaction: a failed business write or audit rolls back proof consumption, session revocation and rotation together. No new HTTP endpoint is exposed. Organization commands follow in M2.3c3b2. Base: #84. Please review in stack order; do not merge automatically. Validation: - All 148 PostgreSQL integration tests pass, including five new restricted-role cases for stale/disabled callers, password-reset races, proof isolation and rollback. - The new application boundary has 100% statement, branch and function coverage in the targeted PostgreSQL run. - API lint, typecheck, unit tests and production build pass. - Existing full-workspace, Go and protobuf checks remain covered by the preceding stack and CI. Security: no password hash or MFA secret is exposed to resource commands; rotation requires fresh proof bound to this request and account/version. No new shell invocation or credential logging path. - [x] M2.3c3b1 acceptance and documentation updated. - [x] New behavior and concurrency/rollback paths tested. - [x] State changes retain the existing transactional audit path. - [x] No secrets or generated artifacts edited manually. - [x] Enabled CI/security checks complete (CodeQL remains skipped by repository configuration).
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.
Task
M2.3c3a, stacked on #83 (
feat/m2.3c2b2-live-tenant-access).What changed and why
Add pure normalization/validation for organization, project and environment settings. Bound Unicode display names, reject control/format/unpaired-surrogate characters, require canonical lowercase slugs and accept only supported configuration enums and boolean protection. Defaults remain pull-request writes, protected environments and no automatic failover. Normalized values are immutable and include only explicitly supported fields.
Add explicit organization/project/environment update capabilities to the role matrix and generated API contract. Organization settings require an organization administrator; project/environment settings require administration of the corresponding scope. Tighten UUID validation to reject a terminal newline that JavaScript's dollar anchor otherwise accepts.
Validation
Security considerations
No command or settings endpoint is exposed in this slice; audited persistence follows in M2.3c3b/c. Inputs cannot inject ownership fields, coerce protection from a string, widen settings permissions or silently enable failover. No new dependency, shell invocation or secret is introduced.
Checklist