NUB-CLASS-2: User-approved explicit-origin posture (sub-track)#18
Draft
NUB-CLASS-2: User-approved explicit-origin posture (sub-track)#18
Conversation
NUB-CLASS-2 is the user-approved explicit-origin posture in the NUB-CLASS sub-track: shells emit runtime CSP with connect-src <granted-origins>, prompt the user at first load per (dTag, aggregateHash), persist the decision, and send class.assigned with class: 2 when approved. Denied prompts downgrade to NUB-CLASS-1. Approved origin set MUST be emitted exactly as user approved (no shell-side normalization between approval and CSP directive). Empty approved set MUST emit connect-src 'none' and SHOULD downgrade to NUB-CLASS-1. Sub-track member under NUB-CLASS.
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.
Status: Draft
Parent: NUB-CLASS
Class number: 2
Summary
NUB-CLASS-2 is the posture for napplets that declare explicit direct-network origins and have received user consent for those origins. Shells emit a runtime CSP with
connect-src <granted-origins>, prompt the user on first load, persist the decision keyed on(dTag, aggregateHash), and sendclass.assignedwithclass: 2when approved. If the user denies the prompt, the napplet is served under the NUB-CLASS-1 posture instead (class: 1,connect-src 'none').CSP Posture
Shells emitting the NUB-CLASS-2 posture MUST include
connect-src <granted-origins>where<granted-origins>is the user-approved origin list for the napplet identified by(dTag, aggregateHash). The origin list MUST be exactly the set the user approved — shells MUST NOT add, remove, or normalize origins between the approved set and the emitted directive.If the approved set is empty (user approved zero origins on the prompt), the shell MUST emit
connect-src 'none'and SHOULD downgrade the assignment to NUB-CLASS-1.Scope
["connect", "<origin>"]— seeNUB-CONNECT.md).(dTag, aggregateHash), MUST persist the decision, MAY expose revocation affordance.(dTag, aggregateHash)composite. AggregateHash changes (via contributing-NUB synthetic xTags likeconnect:origins) MUST auto-invalidate prior grants.connect-srcset to the approved set, prompt + persist + optionally revoke, send terminalclass.assignedwithclass: 2after iframe-ready.class.assignedclass: 1or trigger shell-side refusal-to-serve until user re-approves. Mid-session dynamic class change is out of scope.Non-Goals
Implementations
(none yet)