Skip to content

Conversation

migmartri
Copy link
Member

@migmartri migmartri commented Dec 16, 2023

In a previous patch we added support for API tokens #351, but these couldn't be used for download/upload artifacts to the CAS.

This PR solves that by

  • Update the cas-mapping lookup logic to accept the list of organizations directly, not just the user.
  • Update the service endpoints to use either of those methods to lookup for the mapping.

Closes #463

Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Copy link
Member

@danlishka danlishka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@migmartri migmartri merged commit fe96b01 into chainloop-dev:main Dec 17, 2023
@migmartri migmartri deleted the allow-download branch December 17, 2023 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upload/Downloads can't be performed using api-tokens
2 participants