Open svghadi opened 1 month ago
Any reason not to just disable it at the ingress?
Not specifically, I didn’t consider that approach. I was looking for a simpler solution.
Fair. I'm in favor of fewer options in Argo CD if possible, but if we need it we need it. 🙂
Copying comment(https://github.com/argoproj/argo-cd/discussions/16791#discussioncomment-10541742) from related discussion for code reference
pasha-codefresh Unfortunately no, but should be pretty easy to support it
Summary
Provide a option to disable the authenticated
/swagger-ui
endpoint which serves the api documentation.Motivation
Api docs are served on
<argocd-url>/swagger-ui
endpoint without authentication. Even though these docs are the same across different Argo CD instances and don't pose a security risk when exposed, some of the users are interested is disabling it.Proposal
Make the endpoint configurable via a
argocd-cm
configmap key (eg:disableSwaggerUI: true
) or a cli argument toargocd-server
(eg:--disable-swagger-ui
)