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

Add a no_auth_user #1363

Merged
merged 1 commit into from
May 6, 2020
Merged

Add a no_auth_user #1363

merged 1 commit into from
May 6, 2020

Conversation

matthiashanel
Copy link
Contributor

Added a no_auth_user as discussed.
To simplify error checking, I decided to do a post parsing error pass.
Reason being, we have multiple sections where users can be configured (multiple accounts as well authorization block).

Signed-off-by: Matthias Hanel mh@synadia.com

Copy link
Member

@kozlovic kozlovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, LGTM, just a note about checking of misconfiguration.

server/opts.go Outdated Show resolved Hide resolved
server/opts_test.go Outdated Show resolved Hide resolved
server/opts_test.go Show resolved Hide resolved
Copy link
Member

@kozlovic kozlovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

server/auth.go Show resolved Hide resolved
server/auth.go Show resolved Hide resolved
This configuration allows to refer to a configured user to be used when
the connection provides no credentials.

Signed-off-by: Matthias Hanel <mh@synadia.com>
Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - Just minor question.

@@ -410,8 +410,10 @@ func validateOptions(o *Options) error {
if err := validateLeafNode(o); err != nil {
return err
}
// Check that gateway is properly configured. Returns no error
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did we lose this comment?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The gateway one.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@derekcollison Good find. Mind if I add it back in with the change that calls validateOptions after reload?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure.

@kozlovic kozlovic merged commit b1f1e87 into master May 6, 2020
@kozlovic kozlovic deleted the default_user branch May 6, 2020 16:02
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

Successfully merging this pull request may close these issues.

3 participants