Skip to content

fix(gateway): restore disabled auth on auto-start - #213

Closed
its-mash wants to merge 5 commits into
mainfrom
fix/restore-gateway-auth
Closed

fix(gateway): restore disabled auth on auto-start#213
its-mash wants to merge 5 commits into
mainfrom
fix/restore-gateway-auth

Conversation

@its-mash

Copy link
Copy Markdown
Member

Summary

  • centralize loading of the persisted inbound-auth setting
  • apply the setting to both manual and automatic gateway startup
  • add regression coverage for the secure default and persisted disabled state

Root cause

start_gateway restored gateway.auth_disabled after creating GatewayState, but the desktop auto-start path created the same state without restoring the setting. Relaunching the app therefore reverted a configured no-auth gateway to auth-required until the user toggled the setting again.

Impact

When Disable authentication is enabled, relaunching McpMux now preserves that behavior. A missing setting or repository read failure still defaults to authentication required.

Validation

  • cargo +1.88.0 fmt --all -- --check
  • cargo +1.88.0 test -p mcpmux --lib — 34 passed
  • cargo +1.88.0 clippy -p mcpmux --lib -- -D warnings -A clippy::uninlined_format_args

The narrow Clippy allowance is for a pre-existing Rust 1.88 lint in crates/mcpmux-core/build.rs; the changed files pass with warnings denied.

Comment on lines +38 to +53
import {
createSpace,
createFeatureSet,
installServer,
getDefaultSpace,
refreshRegistry,
enableServerV2,
emitEvent,
approveOAuthClient,
seedServerFeatures,
listFeatureSetsBySpace,
listServerFeatures,
listClients,
addFeatureToSet,
grantOAuthClientFeatureSet,
} from '../helpers/tauri-api';
@its-mash

Copy link
Copy Markdown
Member Author

Superseded — the contributor's original PR #205 has been reopened; this duplicate re-authored their work under my name.

@its-mash its-mash closed this Jul 15, 2026
@its-mash
its-mash deleted the fix/restore-gateway-auth branch July 15, 2026 01:46
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