Skip to content
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

ARGOCD_API_INSECURE not being respected #168

Closed
pauloconnor opened this issue Mar 22, 2024 · 3 comments · Fixed by #274
Closed

ARGOCD_API_INSECURE not being respected #168

pauloconnor opened this issue Mar 22, 2024 · 3 comments · Fixed by #274
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@pauloconnor
Copy link

I have a secret that contains the environment variable

KUBECHECKS_ARGOCD_API_INSECURE: "true"

But the app tries to talk to a https endpoint, regardless of the value. Oddly, I don't see any argocd client information being posted to the pod log

Version: 1.3.3
Pod log:

3:17PM DBG Debug level logging enabled.
3:17PM TRC Trace level logging enabled.
3:17PM INF Initialized logger.
3:17PM INF setting logrus log level log_level=error
3:17PM INF Initializing telemetry
3:17PM INF otel disabled
3:17PM INF Server Configuration: 
3:17PM INF Webhook URL Base: https://kubechecks-webhook.prod.foo.com
3:17PM INF Webhook URL Prefix: 
3:17PM INF VCS Type: github
3:17PM DBG Token Length - 40
3:17PM INF Initializing git settings
3:17PM DBG building command args=["config","--global","user.email","kubechecks@zapier.com"]
3:17PM DBG building command args=["config","--global","user.name","deploy"]
3:17PM DBG building command args=["https://deploy:********@github.com"]
3:17PM DBG building command args=["config","--global","credential.helper","store"]
3:17PM DBG git credentials set
Starting KubeChecks: v1.3.3 197a3c0
3:17PM DBG building VCS to Application Map
3:17PM WRN failed to build vcs app map from argo error="failed to list applications: failed to applications: rpc error: code = Unknown desc = Post \"https://argocd-server.argocd.svc.cluster.local:443/application.ApplicationService/List\": EOF"
Method	Path
GET	/ready
GET	/live
POST	/hooks/github/project
GET	/metrics
3:17PM ??? ⇨ http server started on [::]:8080
3:18PM DBG Received hook request
3:18PM INF ignoring Github pull request event due to non commit based action action=closed
3:18PM DBG Ignoring event, not a merge request
@djeebus
Copy link
Collaborator

djeebus commented Mar 22, 2024

It's not logged because you're running 1.3.3, which didn't log that information. That said, it looks like Insecure in this context means don't validate the certificate. I think you want to modify the PlainText flag, which we don't currently expose. Happy to accept merge requests! Otherwise we'll add it to the short list.

@djeebus djeebus added enhancement New feature or request good first issue Good for newcomers labels Mar 28, 2024
grzesuav added a commit to grzesuav/kubechecks that referenced this issue Sep 11, 2024
fixes zapier#168

Signed-off-by: Grzegorz Głąb <grzesuav@gmail.com>
grzesuav added a commit to grzesuav/kubechecks that referenced this issue Sep 11, 2024
fixes zapier#168

Signed-off-by: Grzegorz Głąb <grzesuav@gmail.com>
grzesuav added a commit to grzesuav/kubechecks that referenced this issue Sep 11, 2024
fixes zapier#168

Signed-off-by: Grzegorz Głąb <grzesuav@gmail.com>
@grzesuav
Copy link
Contributor

Took a stab on implementing it - #274 @djeebus any feedback/suggestions ?

grzesuav added a commit to grzesuav/kubechecks that referenced this issue Sep 11, 2024
fixes zapier#168

Signed-off-by: Grzegorz Głąb <grzesuav@gmail.com>
@grzesuav
Copy link
Contributor

@Greyeye would you mind triggering release including that change ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants