Skip to content

feat(ui): tell the UI when auth is disabled - #1325

Open
rsdmike wants to merge 4 commits into
mainfrom
feat/ui-auth-disabled
Open

rsdmike wants to merge 4 commits into
mainfrom
feat/ui-auth-disabled

Conversation

@rsdmike

@rsdmike rsdmike commented Oct 15, 2026

Copy link
Copy Markdown
Member

With AUTH_DISABLED=true, flip the UI bundle's authDisabled flag so it skips the login page. Auth off takes precedence over OAuth injection. Moves the bundle patching into applyUIConfig so it can be unit tested.

depends on device-management-toolkit/sample-web-ui#3577

With AUTH_DISABLED=true, flip the UI bundle's authDisabled flag so it
skips the login page. Auth off takes precedence over OAuth injection.
Moves the bundle patching into applyUIConfig so it can be unit tested.
Copilot AI balanced review requested due to automatic review settings October 15, 2026 16:30
@rsdmike
rsdmike requested a review from a team as a code owner October 15, 2026 16:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Required companion UI PR #3577 remains unmerged, so bundled integration needs human verification.

0 open findings

What changed in this PR

Updates Console’s UI bundle configuration to skip login when authentication is disabled.

Changes:

  • Enables authDisabled ahead of OAuth configuration.
  • Extracts bundle patching into applyUIConfig.
  • Adds tests for authentication modes and precedence.
File Description
internal/​controller/​httpapi/​ui.go Extracts configuration patching and adds auth-disabled handling.
internal/​controller/​httpapi/​ui_test.go Tests auth-disabled and OAuth flag combinations.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@codecov

codecov Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 62.42%. Comparing base (62f4fba) to head (4bffda3).

Files with missing lines Patch % Lines
internal/controller/httpapi/ui.go 50.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1325      +/-   ##
==========================================
+ Coverage   62.24%   62.42%   +0.18%     
==========================================
  Files         159      159              
  Lines       13417    13423       +6     
==========================================
+ Hits         8351     8379      +28     
+ Misses       5066     5044      -22     

☔ View full report in Codecov by Harness.
📢 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.

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