Skip to content

Conversation

@rsdmike
Copy link
Member

@rsdmike rsdmike commented Jan 12, 2026

For a long time, we have used G@ppm0ym as a standard static default password. This PR removes the static password. The goal has been for users to always integrate their own authentication with role based auth. That said, we understand this doesn't always happen. As such, randomly generating a password on first run when no static password is provided will help adhere to better security practices. Existing users should have the adminPassword and therefore be unaffected by this change.

@codecov
Copy link

codecov bot commented Jan 12, 2026

Codecov Report

❌ Patch coverage is 74.44444% with 23 lines in your changes missing coverage. Please review.
✅ Project coverage is 39.93%. Comparing base (b37698a) to head (a3421e6).

Files with missing lines Patch % Lines
internal/mocks/storager_mocks.go 0.00% 9 Missing ⚠️
cmd/app/main.go 88.05% 4 Missing and 4 partials ⚠️
internal/usecase/devices/repo.go 53.84% 3 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #755      +/-   ##
==========================================
+ Coverage   39.66%   39.93%   +0.27%     
==========================================
  Files         112      113       +1     
  Lines       10652    10729      +77     
==========================================
+ Hits         4225     4285      +60     
- Misses       6046     6059      +13     
- Partials      381      385       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

For a long time, we have used G@ppm0ym as a standard static
default password. This PR removes the static password. The goal
has been for users to always integrate their own authentication
with role based auth. That said, we understand this doesn't always
happen. As such, randomly generating a password on first run when
no static password is provided will adhere to better security
practices. Existing users should have the `adminPassword`
and therefore be unaffected by this change.
@rsdmike rsdmike changed the title feat: adds support for randomly generated admin password on first run. feat: adds support for randomly generated admin password on first run Jan 12, 2026
@madhavilosetty-intel
Copy link
Contributor

  1. When a password is not provided, a random password is generated
image 2. Able to log in from the UI using the generated random password. image 3. Incorrect credentials prevent login; the error message on the UI needs to be updated (not in the scope of this PR). image 4. Removed the generated password from Windows Credentials and updated it in the ENV file; this worked as well.

The code looks good to me.

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.

2 participants