-
Notifications
You must be signed in to change notification settings - Fork 1
Retive repo from argocd api server #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Mangaal <[email protected]>
Signed-off-by: Mangaal <[email protected]>
Signed-off-by: Mangaal <[email protected]>
} | ||
|
||
func NewAPIClient(opts *ClientOptions) (appClient, error) { | ||
envAuthToken := os.Getenv("ARGOCD_TOKEN") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than taking the token as env. Can we try using the SA token by giving Argo CD RBAC access to that SA. There is a security concern as well in passing tokens as env variables.
opts.AuthToken = envAuthToken | ||
} | ||
|
||
rOpts := &apiclient.ClientOptions{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this work with TLS enabled ? and using the 443
port. Probably you need to initialize the TLS client certificates and CA bundle.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Posted a few comments that needs to be addressed.
No description provided.