feat(controlplane): add extra info to discovery endpoint - #641
Merged
migmartri merged 4 commits intoApr 1, 2024
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The main goal of this patch is to add additional information to the discovery endpoint when the nodes are
attestationskinds.So now, the metadata struct contains the
team,projectandorganization name. To achieve this I've added the organization to the attested object metadata as well.{ "digest": "sha256:05251995ddb3380ce3a719d374a18cc9ab5e2a48852ee96b0361ef329447b801", "kind": "ATTESTATION", "downloadable": true, "public": false, "createdAt": "2024-03-29T21:51:12.852033Z", "references": [ { "digest": "sha1:d6e16f863e47c0a75e812faa870c27d5c600faa4", "kind": "GIT_HEAD_COMMIT", "downloadable": false, "public": false, "createdAt": "2024-03-29T21:29:40.092477Z", "references": [] } ], "metadata": { "name": "foo-b2az", "organization": "wizardly-mccarthy-3002", "project": "bar", "team": "my-team" } }refs #498