Skip to content

Conversation

migmartri
Copy link
Member

Exposes controlplane.v1.CASBackendService.List API endpoint and implements its CLI counterpart. Refs #223

grpcurl --plaintext -H "authorization: Bearer $TOKEN" localhost:9000 controlplane.v1.CASBackendService.List | jq
{
  "result": [
    {
      "id": "8488a813-1619-4fdd-b3f0-bf27d7c92a7e",
      "name": "us-central1-docker.pkg.dev/axiomatic-grove-366622/chainloop-demo-org",
      "createdAt": "2023-07-12T13:31:05.655701Z",
      "validatedAt": "2023-07-12T13:56:42.199483Z",
      "validationStatus": "VALIDATION_STATUS_OK",
      "provider": "OCI",
      "default": true
    }
  ]
}
$ chainloop cas-backend ls       
┌──────────────────────────────────────┬──────────────────────────────────────────────────────────────────────┬──────────┬─────────┐
│ ID                                   │ NAME                                                                 │ PROVIDER │ DEFAULT │
├──────────────────────────────────────┼──────────────────────────────────────────────────────────────────────┼──────────┼─────────┤
│ 8488a813-1619-4fdd-b3f0-bf27d7c92a7e │ us-central1-docker.pkg.dev/axiomatic-grove-366622/chainloop-demo-org │ OCI      │ true    │
└──────────────────────────────────────┴──────────────────────────────────────────────────────────────────────┴──────────┴─────────┘

or full view

$ chainloop cas-backend ls --full
┌──────────────────────────────────────┬──────────────────────────────────────────────────────────────────────┬──────────┬─────────┬───────────────────┬─────────────────────┬─────────────────────┐
│ ID                                   │ NAME                                                                 │ PROVIDER │ DEFAULT │ VALIDATION STATUS │ CREATED AT          │ VALIDATED AT        │
├──────────────────────────────────────┼──────────────────────────────────────────────────────────────────────┼──────────┼─────────┼───────────────────┼─────────────────────┼─────────────────────┤
│ 8488a813-1619-4fdd-b3f0-bf27d7c92a7e │ us-central1-docker.pkg.dev/axiomatic-grove-366622/chainloop-demo-org │ OCI      │ true    │ valid             │ 12 Jul 23 13:31 UTC │ 12 Jul 23 14:02 UTC │
└──────────────────────────────────────┴──────────────────────────────────────────────────────────────────────┴──────────┴─────────┴───────────────────┴─────────────────────┴─────────────────────┘

Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
@migmartri migmartri requested a review from danlishka July 12, 2023 14:02
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 e2dce30 into chainloop-dev:main Jul 13, 2023
@migmartri migmartri deleted the add-cas-backends-api-endpoint branch July 13, 2023 09:00
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