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: Authz #3008

Merged
merged 25 commits into from
May 30, 2024
Merged

feat: Authz #3008

merged 25 commits into from
May 30, 2024

Commits on May 20, 2024

  1. feat(wip): authz/rbac

    feat: impl authz middleware
    
    feat: impl authz middleware
    
    chore: fix panic and bad redux selector
    
    chore: fmt ui
    
    chore: refactor
    
    chore: fix build, change to single role, default role
    
    chore: fix build, change to single role, default role
    
    chore: rm unneeded files
    
    feat: configurable roles/policies
    
    chore: config schema and tests
    
    chore: mv back events to audit package
    
    chore: reset ui folder
    
    chore: revert ui back to main
    
    chore: policy schema, visibility of errors
    
    chore: add policy schema test
    
    chore: rebase on main
    
    Signed-off-by: Mark Phelps <[email protected]>
    markphelps committed May 20, 2024
    Configuration menu
    Copy the full SHA
    ddfd3e8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9dee8e1 View commit details
    Browse the repository at this point in the history
  3. chore: mod tidy

    markphelps committed May 20, 2024
    Configuration menu
    Copy the full SHA
    61049d5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f4e8290 View commit details
    Browse the repository at this point in the history

Commits on May 21, 2024

  1. Authz OIDC tests (#3098)

    * chore: fix tests, add role attribute path / role mapping to oidc server tests
    
    Signed-off-by: Mark Phelps <[email protected]>
    
    * chore: authz middleware tests
    
    Signed-off-by: Mark Phelps <[email protected]>
    
    * chore: fix audit tests
    
    Signed-off-by: Mark Phelps <[email protected]>
    
    * chore: proto regen
    
    Signed-off-by: Mark Phelps <[email protected]>
    
    * chore: try to fix marshal audit events behaviour
    
    Signed-off-by: Mark Phelps <[email protected]>
    
    * chore: fix failing test
    
    Signed-off-by: Mark Phelps <[email protected]>
    
    ---------
    
    Signed-off-by: Mark Phelps <[email protected]>
    markphelps committed May 21, 2024
    Configuration menu
    Copy the full SHA
    ab1b48a View commit details
    Browse the repository at this point in the history
  2. chore: refactor request models to include scope

    Signed-off-by: Mark Phelps <[email protected]>
    markphelps committed May 21, 2024
    Configuration menu
    Copy the full SHA
    32e5686 View commit details
    Browse the repository at this point in the history
  3. chore: fix engine_test

    markphelps committed May 21, 2024
    Configuration menu
    Copy the full SHA
    90e776a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    574f261 View commit details
    Browse the repository at this point in the history
  5. chore: fix executor_test

    Signed-off-by: Mark Phelps <[email protected]>
    markphelps committed May 21, 2024
    Configuration menu
    Copy the full SHA
    2605802 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    31afa47 View commit details
    Browse the repository at this point in the history
  7. chore: fix log sink test

    Signed-off-by: Mark Phelps <[email protected]>
    markphelps committed May 21, 2024
    Configuration menu
    Copy the full SHA
    19e6e7b View commit details
    Browse the repository at this point in the history

Commits on May 22, 2024

  1. Configuration menu
    Copy the full SHA
    92ab78d View commit details
    Browse the repository at this point in the history
  2. Merge pull request #3104 from flipt-io/authz-request-refactor

    chore: refactor request models to include scope
    GeorgeMac committed May 22, 2024
    Configuration menu
    Copy the full SHA
    8a04470 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2024

  1. Configuration menu
    Copy the full SHA
    9776f04 View commit details
    Browse the repository at this point in the history

Commits on May 24, 2024

  1. refactor(server/authz): make policy and data external dependencies (#…

    …3108)
    
    * refactor(server/authz): rename scope to resource
    
    Signed-off-by: George MacRorie <[email protected]>
    
    * feat(config/authz): add policy and data source configuration
    
    Signed-off-by: George MacRorie <[email protected]>
    
    * refactor(server/authz): make policy and data external dependencies
    
    Signed-off-by: George MacRorie <[email protected]>
    
    * refactor(cmd/grpc): integrate new authz Engine changes
    
    Signed-off-by: George MacRorie <[email protected]>
    
    * fix(server/authz): ensure error is captured in return
    
    Signed-off-by: George MacRorie <[email protected]>
    
    * fix(config): allow policy and data sources to be empty
    
    Signed-off-by: George MacRorie <[email protected]>
    
    * refactor(server/authz): support separate poll durations for policy and data
    
    Signed-off-by: George MacRorie <[email protected]>
    
    * fix(config): validate non zero poll duration for authz sources
    
    Signed-off-by: George MacRorie <[email protected]>
    
    * fix(cmd/grpc): calls to authz engine with changes to polling
    
    Signed-off-by: George MacRorie <[email protected]>
    
    ---------
    
    Signed-off-by: George MacRorie <[email protected]>
    GeorgeMac committed May 24, 2024
    Configuration menu
    Copy the full SHA
    a859ef9 View commit details
    Browse the repository at this point in the history

Commits on May 27, 2024

  1. Configuration menu
    Copy the full SHA
    762da37 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fbd21f2 View commit details
    Browse the repository at this point in the history

Commits on May 28, 2024

  1. chore: set raw claims if they exist in authz metadata (#3125)

    * chore: go mod tidy
    
    Signed-off-by: Mark Phelps <[email protected]>
    
    * chore: set raw claims if they exist in authz metadata
    
    Signed-off-by: Mark Phelps <[email protected]>
    
    * chore: fix authn oidc server test
    
    Signed-off-by: Mark Phelps <[email protected]>
    
    * chore: skip authz on auth public server
    
    Signed-off-by: Mark Phelps <[email protected]>
    
    * chore: log for debugging
    
    Signed-off-by: Mark Phelps <[email protected]>
    
    ---------
    
    Signed-off-by: Mark Phelps <[email protected]>
    markphelps committed May 28, 2024
    Configuration menu
    Copy the full SHA
    b15e83e View commit details
    Browse the repository at this point in the history

Commits on May 29, 2024

  1. fix: Authz fixes (#3132)

    * chore: go mod tidy
    
    Signed-off-by: Mark Phelps <[email protected]>
    
    * fix: authz endpoint skip for getauthself/deleteauthself
    
    Signed-off-by: Mark Phelps <[email protected]>
    
    * chore: rm claims unmarshal for now
    
    * chore: make authorization experimental
    
    Signed-off-by: Mark Phelps <[email protected]>
    
    * chore: add request methods to auth requests
    
    Signed-off-by: Mark Phelps <[email protected]>
    
    * chore: add schema
    
    * chore: set package name to flipt.authz.v1
    
    * chore: fix telemetry test
    
    Signed-off-by: Mark Phelps <[email protected]>
    
    ---------
    
    Signed-off-by: Mark Phelps <[email protected]>
    markphelps committed May 29, 2024
    Configuration menu
    Copy the full SHA
    5837f9b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    94a6e23 View commit details
    Browse the repository at this point in the history
  3. chore: rename poll duration to poll interval

    Signed-off-by: Mark Phelps <[email protected]>
    markphelps committed May 29, 2024
    Configuration menu
    Copy the full SHA
    3e28f90 View commit details
    Browse the repository at this point in the history
  4. chore: mod/work sync

    Signed-off-by: Mark Phelps <[email protected]>
    markphelps committed May 29, 2024
    Configuration menu
    Copy the full SHA
    e9531c3 View commit details
    Browse the repository at this point in the history
  5. chore: fix config test

    Signed-off-by: Mark Phelps <[email protected]>
    markphelps committed May 29, 2024
    Configuration menu
    Copy the full SHA
    9806438 View commit details
    Browse the repository at this point in the history

Commits on May 30, 2024

  1. Configuration menu
    Copy the full SHA
    da63046 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    185085b View commit details
    Browse the repository at this point in the history