Skip to content

fix(cli): authenticate the mobile options server - #16099

Merged
lucasfernog merged 2 commits into
devfrom
fix/cli-mobile-options-server-auth
Sep 25, 2026
Merged

lucasfernog merged 2 commits into
devfrom
fix/cli-mobile-options-server-auth

Conversation

@lucasfernog

Copy link
Copy Markdown
Member

The dev/build commands expose the CLI options (including forwarded env vars) to the Xcode and Android Studio build scripts over a local WebSocket server. Require a per-session random token, reject requests with an Origin header, stop sending secret-looking env vars, store the address file owner-only in the generated project instead of the shared temp dir, remove it on exit, and return clear errors from the IDE scripts.

The dev/build commands expose the CLI options (including forwarded env vars) to the Xcode and Android Studio build scripts over a local WebSocket server. Require a per-session random token, reject requests with an Origin header, stop sending secret-looking env vars, store the address file owner-only in the generated project instead of the shared temp dir, remove it on exit, and return clear errors from the IDE scripts.
@lucasfernog
lucasfernog requested a review from a team as a code owner September 23, 2026 16:42
@lucasfernog
lucasfernog merged commit fdd56da into dev Sep 25, 2026
35 of 36 checks passed
@lucasfernog
lucasfernog deleted the fix/cli-mobile-options-server-auth branch September 25, 2026 11:42
lucasfernog added a commit that referenced this pull request Sep 25, 2026
The options server secret filter added in #16099 drops every variable whose
name contains CREDENTIAL or SECRET, which also removed Cargo settings that
only select how credentials are obtained:
CARGO_REGISTRY_CREDENTIAL_PROVIDER, CARGO_REGISTRIES_<name>_CREDENTIAL_PROVIDER,
CARGO_REGISTRY_GLOBAL_CREDENTIAL_PROVIDERS, CARGO_CREDENTIAL_ALIAS_* and
CARGO_REGISTRIES_<name>_SECRET_KEY_SUBJECT. Builds started from Android
Studio or Xcode then failed to authenticate against private registries.

These variables name commands or public identifiers, not secrets, so they are
now forwarded. Registry tokens and secret keys are still filtered out.
Comment on lines +834 to +835
"TAURI_CLOUD_Secret",
"RUST_api_token",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

holy vibe code 😂

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