Skip to content

Conversation

Mangaal
Copy link
Contributor

@Mangaal Mangaal commented Jul 28, 2025

No description provided.

}

func NewAPIClient(opts *ClientOptions) (appClient, error) {
envAuthToken := os.Getenv("ARGOCD_TOKEN")
Copy link
Owner

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{
Copy link
Owner

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.

Copy link
Owner

@anandf anandf left a 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.

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