Skip to content
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

Support JSONPath in AttributeSelector #5

Open
cdanger opened this issue Aug 21, 2023 · 4 comments
Open

Support JSONPath in AttributeSelector #5

cdanger opened this issue Aug 21, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@cdanger
Copy link

cdanger commented Aug 21, 2023

Proposal: add an optional attribute contentType in AttributeSelector, with two possible values: XML (default value) and JSON.
If contentType = JSON, the <Content> must be processed as JSON object instead of XML, and the Path handled as JsonPath according to the JSONPath RFC 5935, still in draft currently now an IETF Proposed Standard.

This is consistent with the JSON Profile.

@cdanger cdanger added the enhancement New feature or request label Aug 22, 2023
@cdanger cdanger added this to the xacml-core-3.1 milestone Aug 22, 2023
@cdanger cdanger self-assigned this Feb 29, 2024
@cdanger cdanger changed the title Feature Request - Support JSONPath in AttributeSelector Support JSONPath in AttributeSelector Mar 28, 2024
@cdanger
Copy link
Author

cdanger commented Mar 28, 2024

Good news: the JSONPath RFC draft has been finalized and promoted to an IETF Proposed Standard: RFC 5935 (Feb. 2024)!

IETF Proposed standard (RFC 2026): A Proposed Standard specification is generally stable, has resolved known design choices, is believed to be well-understood, has received significant community review, and appears to enjoy enough community interest to be considered valuable. [...]

@cdanger cdanger mentioned this issue Jun 24, 2024
@cdanger cdanger removed this from the xacml-core-3.1 milestone Jul 10, 2024
@cdanger
Copy link
Author

cdanger commented Jul 10, 2024

If we follow #33 logic, it should not go in the core spec but in a separate profile dedicated to JSON data processing.

@humantypo
Copy link

Personally I’m interested in exploring the idea of policies being expressed in either XML or JSON—which, in my mind, requires JSON be “promoted” to Core level incorporation (and ostensibly, the JSON Profile no longer be needed).

@steven-legg
Copy link

steven-legg commented Jul 11, 2024

Personally I’m interested in exploring the idea of policies being expressed in either XML or JSON—which, in my mind, requires JSON be “promoted” to Core level incorporation (and ostensibly, the JSON Profile no longer be needed).

@humantypo , Cyril is talking about moving the optional, path-related definitions to separate profiles regardless of format. It is a separate consideration to what format has prominence in the core specification for policy representation.

A separate XPath profile would still need XSD and/or JSON Schema definitions, as would a separate JSONPath profile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants