Skip to content

[AVS-lite] Use the configured password - #45

Merged
sonikajindal merged 1 commit into
sonic-net:masterfrom
sreeiyer-1:password
Aug 28, 2026
Merged

[AVS-lite] Use the configured password#45
sonikajindal merged 1 commit into
sonic-net:masterfrom
sreeiyer-1:password

Conversation

@sreeiyer-1

@sreeiyer-1 sreeiyer-1 commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

The default username / password was hard coded in the earlier versions. Instead, take it from the build system (rules/config).

DEFAULT_USERNAME & DEFAULT_PASSWORD are available as make variables. Access them in docker-sonic-alpinevs.mk. In the Dockerfile.j2, create the user using these when the switch comes up.

Unit tests :

  1. Changed the password in rules/config
  2. Dump the files in the switch to confirm that the user is created
root@docker-alpine-ctl:/home/admin#grep admin /etc/passwd
admin:x:1000:1000::/home/admin:/bin/bash
root@docker-alpine-ctl:/home/admin# grep admin /etc/shadow
admin:$6$5IjeFwZqOKTrn20f$Jmb2O0DnIqto9vW7ENvWQg0R86C23aC3EIte7NHlwTI6XSif.TWz7/KBlmJfjxNa1bUDZH1pXlXdyGQQwWaYB1:20693:0:99999:7:::
root@docker-alpine-ctl:/home/admin# 

Signed-off-by: Sree Iyer <sbiyer@google.com>
@mssonicbld

Copy link
Copy Markdown

/azp run

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

@sreeiyer-1
sreeiyer-1 marked this pull request as ready for review August 28, 2026 14:39
@sonikajindal
sonikajindal merged commit aec4ae6 into sonic-net:master Aug 28, 2026
5 checks passed
@sreeiyer-1 sreeiyer-1 changed the title Use the configured password [AVS-lite] Use the configured password Sep 5, 2026
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