Description of Problem
- Currently, the ArgoCD server will serve files on directories, potentially exposing files unexpectedly.
Problem Reproduction
- After deploying the latest version of GitOps, curl the server for the assets directory will return its files.
Reproducibility
- Always
Prerequisites/Environment
- Appears present in all installs of OpenShift GitOps, tested with OCP 4.18 and GitOps 1.17.0
Steps to Reproduce
- Deploy OpenShift GitOps on the latest version, and curl the ArgoCD for the assets directory:
$ curl https://<argocd-server-url>/assets/
Expected Results
- No results from the directory:
$ curl https://<argocd-server-url>/assets/
Actual Results
- Files within the directory are displayed:
$ curl https://<argocd-server-url>/assets/ <!doctype html> <meta name="viewport" content="width=device-width"> <pre> <a href="favicon/">favicon/</a> <a href="fonts/">fonts/</a> <a href="fonts.css">fonts.css</a> <a href="images/">images/</a> <a href="scripts/">scripts/</a> </pre>