-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add configurable htpasswd location #188
Conversation
Assuming that updating the readme suffices for updating documentation, I have marked that complete as well. If there is additional documentation needed, I would be glad to add that. |
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.
Thanks for the PR! I've added a bunch of comments, both small ones and a couple of more important ones.
mux.go
Outdated
} | ||
log.Printf("Loaded htpasswd file: %s", server.HtpasswdPath) |
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.
Nitpick, but if you don't mind I think we should remove this :
in order to be consistent with other output/messages.
cmd/rest-server/main_test.go
Outdated
@@ -100,6 +100,22 @@ func TestGetHandler(t *testing.T) { | |||
t.Errorf("NoAuth=true: expected no error, got %v", err) | |||
} | |||
|
|||
// With NoAuth = true and custom .htpasswd |
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.
Should this be "With NoAuth = false and custom .htpasswd"?
2bf5d60
to
bc1545c
Compare
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.
<3
Perhaps a new image should be published with that feature? |
What is the purpose of this change? What does it change?
Allows users to configure the location of the
.htpasswd
file.Was the change discussed in an issue or in the forum before?
Closes #187
Checklist
changelog/unreleased/
that describes the changes for our users (template here)gofmt
on the code in all commits