-
Notifications
You must be signed in to change notification settings - Fork 1
feat: add obligations #150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
771b0ac
add obligation doc
alkalescent b2fa2d1
gemini suggestion
alkalescent 4c41516
npm run update-vendored-yaml
alkalescent 867dbfc
suggestions
alkalescent f77bf40
Update docs/components/policy/obligations.md
alkalescent bc7649d
Update docs/components/policy/obligations.md
alkalescent 9474d41
Update docs/components/policy/obligations.md
alkalescent a93d361
Update docs/components/policy/obligations.md
alkalescent 3a221e3
add triggers
alkalescent 3d81327
Update docs/components/policy/obligations.md
alkalescent 1739b6a
clarify that pep is optional w explanation of global obl and update d…
alkalescent File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,80 @@ | ||
| # Obligations | ||
|
|
||
| Obligations are policy constructs that enable Policy Decision Point(PDP) - to - Policy Enforcement Point (PEP) directives that accompany a decision. They express additional controls the PEP should enforce—such as requiring MFA, applying watermarking, encrypting content, or limiting access by time. In effect, the PDP is saying “permit, provided these controls are enforced.” The PDP cannot compel or verify enforcement; it relies on the PEP to honor the obligations. | ||
| If the PEP cannot or will not enforce an obligation, it should decline to grant access. | ||
| ## Composition | ||
|
|
||
| An obligation consists of: | ||
|
|
||
| 1. A Namespace | ||
| 2. A Definition | ||
| 3. Values | ||
| 4. Triggers | ||
|
|
||
| Platform Policy Obligations can contain multiple Namespaces, each with multiple Definitions, and each Definition can have multiple Values. Each Value can have multiple Triggers. Each trigger can have an Action, Attribute Value, and PEP identifier (optional). Not specifying a PEP results in a global obligation that applies across *all* PEPs. | ||
|
Check failure on line 14 in docs/components/policy/obligations.md
|
||
|
|
||
| ```mermaid | ||
| graph LR; | ||
| %% Every definition is namespaced. | ||
| Namespace_A-->ObligationDefinition_A; | ||
|
|
||
| %% Define definition and value A. | ||
| ObligationDefinition_A-->ObligationValue_A; | ||
|
|
||
| %% Define triggers. | ||
| ObligationValue_A-->Trigger_A1 | ||
| Trigger_A1-->Action_A1 | ||
| Trigger_A1-->AttributeValue_A1 | ||
| Trigger_A1-->PEP_A | ||
|
|
||
| ObligationValue_A-->Trigger_A2 | ||
| Trigger_A2-->Action_A2 | ||
| Trigger_A2-->AttributeValue_A2 | ||
|
|
||
| %% Define definition and value B. | ||
| ObligationDefinition_A-->ObligationValue_B; | ||
|
|
||
| %% Define triggers. | ||
| ObligationValue_B-->Trigger_B1 | ||
| Trigger_B1-->Action_B1 | ||
| Trigger_B1-->AttributeValue_B1 | ||
|
|
||
| ObligationValue_B-->Trigger_B2 | ||
| Trigger_B2-->Action_B2 | ||
| Trigger_B2-->AttributeValue_B2 | ||
| Trigger_B2-->PEP_B | ||
| ``` | ||
|
|
||
| ## Standard Obligations | ||
|
|
||
| Standard Obligations are enforced by the Access PDP (Policy Decision Point) when validating whether an Entity of a specified Category can perform an Action on a given Resource. These obligations must be satisfied for access to be granted. | ||
alkalescent marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| A Standard Obligation includes: | ||
| - **Action**: The specific action being performed (READ, STORE, CREATE, UPDATE, DELETE) | ||
| - **Resource Attribute Value**: The data attribute for which this obligation is scoped | ||
| - **Obligation Value**: The required obligation value that must be satisfied | ||
|
|
||
| ### Examples of Standard Obligations: | ||
|
|
||
| #### Watermarking | ||
| Ensure document traceability: | ||
| - **Obligation**: `https://example.com/obl/drm/value/watermarking` | ||
| - **Applied to**: sensitive documents | ||
| - **Condition**: PEP must apply watermark | ||
|
|
||
| #### Prevent Download | ||
| Prevent download of plaintext content: | ||
|
Check failure on line 66 in docs/components/policy/obligations.md
|
||
| - **Obligation**: `https://example.com/obl/drm/value/no-download` | ||
| - **Applied to**: sensitive documents | ||
| - **Condition**: PEP must not allow download | ||
|
|
||
| ## FQN (Fully Qualified Name) Convention | ||
|
Check failure on line 71 in docs/components/policy/obligations.md
|
||
|
|
||
| Obligations use a specific naming convention to distinguish them from attributes: | ||
|
|
||
| - **Obligation Definition**: `<namespace>/obl/<obligation_name>` | ||
| - **Obligation Value**: `<namespace>/obl/<obligation_name>/value/<obligation_value>` | ||
|
|
||
| For example: | ||
| - `https://example.com/obl/drm` (definition) | ||
| - `https://example.com/obl/drm/value/watermarking` (value) | ||
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.