Skip to content

Refactor auth/authz in the atc API #2092

Closed

Description

@jwntrs

Our current authentication/authorization model only allows for a single team in the access token. We need to be more generic to support multiple teams in token.

Some POST APIs need to be updated to explicitly state which team their resource should belong to, instead of relying on the team inside the token. This will cause breaking changes to the API.

Some GET APIs will also need to be more flexible in returning a list of resources for ALL teams in the token. Some of the database interfaces will need to be modified to accept a list of teams.

Activity

  1. added a commit that references this issue on Mar 16, 2018
  2. changed the title [-]Refactor auth/authz[/-] [+]Refactor auth/authz in the atc API[/+] on Mar 19, 2018
  3. jwntrs commented on Mar 19, 2018

    @jwntrs
    ContributorAuthor

    We refactored a bunch of the auth/authz logic in the atc. We've merged everything into a accessor object which gets added to the context by the auth_handler. Downstream handlers get this accessor object from the context and use it to determine if it can do various actions.

  4. added this to the milestone on Jan 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions