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

feat(jans-cedarling): update PolicyStore parser to support agama-lab generated policies #10098

Closed
wants to merge 38 commits into from

Commits on Nov 9, 2024

  1. Configuration menu
    Copy the full SHA
    8b72543 View commit details
    Browse the repository at this point in the history
  2. feat(jans-cedarling): implement parser for new Claim Mapping field

    - implement a `ClaimMapping` struct for the new `claim_mapping` field in
      the policy store
    - implement deserialize for the `ClaimMapping` struct
    
    Signed-off-by: rmarinn <[email protected]>
    rmarinn committed Nov 9, 2024
    Configuration menu
    Copy the full SHA
    6551913 View commit details
    Browse the repository at this point in the history
  3. feat(jans-cedarling): implement parser for new Token Entity Metadata

    - implement `TokenEntityMetada` struct
    - implement `Deserialize` for `TokenEntityMetadata`
    
    Signed-off-by: rmarinn <[email protected]>
    rmarinn committed Nov 9, 2024
    Configuration menu
    Copy the full SHA
    01c5b3d View commit details
    Browse the repository at this point in the history
  4. feat(jans-cedarling): update parser for Trusted Issuer Metadata

    - implement new struct TrustedIssuerMetadata
    - implement Deserialize for TrustedIssuerMetadata
    
    Signed-off-by: rmarinn <[email protected]>
    rmarinn committed Nov 9, 2024
    Configuration menu
    Copy the full SHA
    6ea860c View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2024

  1. feat(jans-cedarling): implement parser for new policy store from agama

    - Implement AgamaPolicyStore struct.
    - Implement Deserialize for AgamaPolicyStore struct.
    
    Signed-off-by: rmarinn <[email protected]>
    rmarinn committed Nov 10, 2024
    Configuration menu
    Copy the full SHA
    e450537 View commit details
    Browse the repository at this point in the history
  2. refactor(jans-cedarling): change AgamaPolicyStore.cedar_schema type

    - change the type of AgamaPolicyStore.cedar_schema from
      cedar_policy::Schema to CedarSchema to make it compatibale with the
      existsing implementation
    
    Signed-off-by: rmarinn <[email protected]>
    rmarinn committed Nov 10, 2024
    Configuration menu
    Copy the full SHA
    fd48517 View commit details
    Browse the repository at this point in the history
  3. refactor(jans-cedarling): update token_metada implementation

    - update the token_metadata implementation in the Cerdarling PolicyStore
      to support the new schema.
    
    Signed-off-by: rmarinn <[email protected]>
    rmarinn committed Nov 10, 2024
    Configuration menu
    Copy the full SHA
    a7f6ad0 View commit details
    Browse the repository at this point in the history
  4. refactor(jans-cedarling): remove old implementation for identity_source

    - remove old implementation for IdentitySource struct and related
      implementations. The new implementation, TrustedIssuerMetadata, has
      now been implementd with the main policy store.
    
    Signed-off-by: rmarinn <[email protected]>
    rmarinn committed Nov 10, 2024
    Configuration menu
    Copy the full SHA
    ae4d547 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ae4eadc View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2024

  1. Configuration menu
    Copy the full SHA
    c134ce5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    194e776 View commit details
    Browse the repository at this point in the history
  3. chore(jans-cedarling): auto-format policy_store.rs

    Signed-off-by: rmarinn <[email protected]>
    rmarinn committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    69d902c View commit details
    Browse the repository at this point in the history
  4. feat(jans-cedarling): implement YAML parser for single policy store

    - Simplify YAML test files by removing the need for
      a top-level `policy_store` ID
    - Ensure YAML test files exclusively contain human-readable Cedar code;
      base64-encoded schemas are now only used for JSON test files.
    - Pending: Replace the existing implementation with the new parser.
    
    Signed-off-by: rmarinn <[email protected]>
    rmarinn committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    fcae8e9 View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2024

  1. fix(jans-cedarling): correct parsing behavior to return parsed HashMa…

    …p instead of None
    
    Signed-off-by: rmarinn <[email protected]>
    rmarinn committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    2692448 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a401d9f View commit details
    Browse the repository at this point in the history
  3. refactor(jans-cedarling): split parser for TokenEntityMetadata

    - split the parsing for TokenEntityMetadata into separate functions per
      field for easier unit-testing
    
    Signed-off-by: rmarinn <[email protected]>
    rmarinn committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    9255cb7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    303a2c7 View commit details
    Browse the repository at this point in the history
  5. chore(jans-cedarling): clean up stray docstring

    Signed-off-by: rmarinn <[email protected]>
    rmarinn committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    0c9bb65 View commit details
    Browse the repository at this point in the history
  6. test(jans-cedarling): add parser tests for TokenEntityMetadata

    - add test for parsing JSON into TokenEntityMetadata
    - add test for parsing YAML into TokenEntityMetadata
    
    Signed-off-by: rmarinn <[email protected]>
    rmarinn committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    25f406d View commit details
    Browse the repository at this point in the history
  7. feat(jans-cedarling): implement parsing into default for missing fields

    - implement parsing into default for missing fields in
      TrustedIssuerMetadata
    
    Signed-off-by: rmarinn <[email protected]>
    rmarinn committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    d78a406 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2a5ea51 View commit details
    Browse the repository at this point in the history
  9. refactor(jans-cedarling): Simplify AgamaPolicyStore deserialization

    - Refactor deserialization logic to utilize existing helper functions.
    
    Signed-off-by: rmarinn <[email protected]>
    rmarinn committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    9a0180c View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    1a6a93e View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2024

  1. Configuration menu
    Copy the full SHA
    8d2bd9b View commit details
    Browse the repository at this point in the history
  2. refactor(jans-cedarling): organize structs into their own files

    - rename AgamaPolicyStore to PolicySource
    - move PolicySouceJson into it's own file
    - move PolicySouceYaml into it's own file
    
    Signed-off-by: rmarinn <[email protected]>
    rmarinn committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    07252a8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9dffcfe View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    13ec524 View commit details
    Browse the repository at this point in the history
  5. refactor(jans-cedarling): replace old PolicyStore with updated implem…

    …entation
    
    Signed-off-by: rmarinn <[email protected]>
    rmarinn committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    961b15a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0b36c4a View commit details
    Browse the repository at this point in the history
  7. chore(jans-cedarling): delete unused test files and move still used

    - moved a test file to the /test_files directory
    
    Signed-off-by: rmarinn <[email protected]>
    rmarinn committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    8650646 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ab776e2 View commit details
    Browse the repository at this point in the history
  9. docs(jans-cedarling): update cedarling-policy-store.md

    Signed-off-by: rmarinn <[email protected]>
    rmarinn committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    02aab05 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    b2e1ce4 View commit details
    Browse the repository at this point in the history
  11. chore(jans-cedarling): resolve clippy issues

    Signed-off-by: rmarinn <[email protected]>
    rmarinn committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    051b402 View commit details
    Browse the repository at this point in the history
  12. fix(jans-cedarling): update test files

    Signed-off-by: rmarinn <[email protected]>
    rmarinn committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    18d242c View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    7eceeb4 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    2db2c0f View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    e340b87 View commit details
    Browse the repository at this point in the history