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

Prevent generation of default accounts #1445

Merged
merged 19 commits into from Oct 9, 2020
Merged

Prevent generation of default accounts #1445

merged 19 commits into from Oct 9, 2020

Conversation

crufter
Copy link
Contributor

@crufter crufter commented Oct 9, 2020

Notable changes

  • Only generate default account in default namespace

  • Added DisableAdmin flag to even disable this behaviour. This is useful for security hardening purposes, ie. imagine data loss occuring and then an attacker being able to log in with default credentials.

  • Added --namespace option to micro auth account create as test which previously depended on account being autogenerated after namespace change now must create an admin account in that namespace first.

  • Fix

  • Test

cmd/cmd.go Outdated
@@ -126,6 +126,11 @@ var (
EnvVars: []string{"MICRO_AUTH_PRIVATE_KEY"},
Usage: "Private key for JWT auth (base64 encoded PEM)",
},
&cli.BoolFlag{
Name: "no_default_account",
Copy link
Member

Choose a reason for hiding this comment

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

--disable_admin / MICRO_AUTH_DISABLE_ADMIN

cmd/cmd.go Outdated Show resolved Hide resolved
service/auth/server/auth/auth.go Show resolved Hide resolved
@crufter crufter merged commit 1928857 into master Oct 9, 2020
@crufter crufter deleted the fixdefacc branch October 9, 2020 14:51
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.

None yet

3 participants