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

non-interactive ziti edge login --ca always fails if mgmt cert is trusted by OS #1729

Open
qrkourier opened this issue Feb 2, 2024 · 0 comments

Comments

@qrkourier
Copy link
Member

ziti edge login with the --ca option always fails when run non-interactively if the OS happens to be configured to trust the mgmt API server certificate by way of system-wide trust store(s).

The --yes option will override the interactive y/n prompt that's presented in https://github.com/openziti/ziti/blob/main/ziti/cmd/edge/login.go#L276, but this has the undesirable effect of also trusting malicious server certificates.

It doesn't seem useful to guard against the scenario where the mgmt API server cert happens to be trusted more than once, e.g., by the OS trust store and by the trust bundle specified in the --ca option, and this confirmation prompt always breaks non-interactive login when that is the case.

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

No branches or pull requests

1 participant