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

log into nebula without a password #178

Closed
foesa-yang opened this issue Oct 12, 2022 · 1 comment · Fixed by #177
Closed

log into nebula without a password #178

foesa-yang opened this issue Oct 12, 2022 · 1 comment · Fixed by #177
Assignees

Comments

@foesa-yang
Copy link

Please check the FAQ documentation before raising an issue

Describe the bug (required)

How to log into nebula without a password?

Your Environments (required)

  • OS: uname -a
  • Compiler: g++ --version or clang++ --version
  • CPU: lscpu
  • Commit id (e.g. a3ffc7d8)

image

How To Reproduce(required)

Steps to reproduce the behavior:

  1. First I created a user without password.
(root@nebula) [(none)]> create user foesa
Execution succeeded (time spent 4205/8811 us)

Wed, 12 Oct 2022 09:02:01 UTC
  1. I tried to log in with -p and arbitrary password and without the configuration -p. Both ways can't log in to nebula.
[root@foesa foesa.yang]# ./nebula-console -addr 192.168.8.136 -port 9669 -u foesa -p nebula
2022/10/12 09:02:38 Fail to create a new session from connection pool, fail to authenticate, error: Invalid password
panic: Fail to create a new session from connection pool, fail to authenticate, error: Invalid password

goroutine 1 [running]:
log.Panicf(0x76c2b6, 0x35, 0xc00008de38, 0x1, 0x1)
	/opt/hostedtoolcache/go/1.16.4/x64/src/log/log.go:361 +0xc5
main.main()
	/home/runner/work/nebula-console/nebula-console/main.go:541 +0x9b9

[root@foesa foesa.yang]# ./nebula-console -addr 192.168.8.136 -port 9669 -u foesa
2022/10/12 09:02:41 Error: argument password is empty!
panic: Error: argument password is empty!

goroutine 1 [running]:
log.Panicf(0x76530d, 0x22, 0x0, 0x0, 0x0)
	/opt/hostedtoolcache/go/1.16.4/x64/src/log/log.go:361 +0xc5
main.validateFlags()
	/home/runner/work/nebula-console/nebula-console/main.go:473 +0x14f
main.main()
	/home/runner/work/nebula-console/nebula-console/main.go:503 +0x10b
  1. And actually, I can use show users to see the user foesa.
(root@nebula) [(none)]> show users
+---------+--------------+
| Account | IP Whitelist |
+---------+--------------+
| "foesa" | ""           |
| "root"  | ""           |
+---------+--------------+
Got 2 rows (time spent 1104/2228 us)

Expected behavior

Additional context

@HarrisChu
Copy link
Contributor

It should be a console issue, I can use blank password via nebula-go directly.

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 a pull request may close this issue.

3 participants