Repository navigation
fix(cli): authenticate the mobile options server - #16099
Merged
Merged
Conversation
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.
amrbashir
approved these changes
Sep 25, 2026
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.
FabianLars
reviewed
Nov 11, 2026
Comment on lines
+834
to
+835
| "TAURI_CLOUD_Secret", | ||
| "RUST_api_token", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.