-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat: add BasicAuth Support to Atlantis ServeHTTP #1777
Conversation
hey @nishkrishnan can u please give a hand and review this PR please ? |
@chenrui333 there is any missing thing for this PR to go in ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, nice addition
If putting Atlantis somewhere that requires healthchecks for availability, this now makes the |
I made a PR to address the issues this causes for using |
@fblgit the section https://www.runatlantis.io/docs/server-configuration.html was not updated with the new flags, could you please create another pr to add the new flags in that doc? thanks. |
* Add BasicAuth Support to Atlantis ServeHTTP * Added Security notes Co-authored-by: xmurias <[email protected]>
This PR:
Introduces the following flags:
--web-basic-auth=bool
(false by default) to enable/disable basic-auth on the webserver--web-username=string
(atlantis by default) to set the webserver username--web-password=string
(atlantis by default) to set the webserver passwordBasicAuth feature over middleware HTTP server of Atlantis
/events
is filtered out of the basic-auth requirement, as this element can be protected already by webhook secrets.Probably
RequestLogger
should be relabeled to something else that now identifies both the authentication, serving, and logging scenario for HTTP requests.Motivation:
Despite being able to apply different mechanisms with a layer in front of Atlantis, like ingress, I believe that is reasonable the capacity of scope the access to the HTTP server directly within Atlantis.