Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore(vcs): add a comment to explain the returned `secret` field (#340)

E99p1antac39f18560c4
diff --git a/api/vcs.go b/api/vcs.go
index 65869115ca..fa637dd009 100644
--- a/api/vcs.go
+++ b/api/vcs.go
@@ -25,7 +25,9 @@ type VCS struct {
InstanceURL string `jsonapi:"attr,instanceUrl"`
APIURL string `jsonapi:"attr,apiUrl"`
ApplicationID string `jsonapi:"attr,applicationId"`
- Secret string `jsonapi:"attr,secret"`
+ // Secret will be used for OAuth on the client side when setting up project GitOps workflow.
+ // So it should be returned to the response.
+ Secret string `jsonapi:"attr,secret"`
}
// VCSCreate is the API message for creating a VCS.