Skip to content

Conversation

migmartri
Copy link
Member

Update CAS backend command/API endpoint.

This command is safer than the previous upsert approach in set-oci-repo. This update command only allows you to change the description, the default status and rotate its credentials. You can not change the actual location of the repository.

Some features

  • if the user wants to remove the default status, it will be warned
$ chainloop cas-backend update oci --id 4e015fe8-658b-4773-9275-bd8771927fbf          
This is the default CAS backend and your are setting default=false.
Please confirm to continue y/N: 
  • You can now technically have no CAS backends enabled, this today will make the controlplane complain about that requirement, but in the future this will not be a requirement at all because of Inline CAS backend #201

Refs #223

Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
@migmartri migmartri requested a review from danlishka July 13, 2023 20:26
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 e1ea11b into chainloop-dev:main Jul 14, 2023
@migmartri migmartri deleted the edit-backend branch July 14, 2023 08:41
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.

2 participants