fix: strip android native build ids for fdroid#1140
Conversation
📝 WalkthroughWalkthroughThis change removes the per-step Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
scripts/release/verify-fdroid-native-libs.sh (1)
310-315: Consider using environment variables for password passing.The
pass:prefix exposes passwords in process listings (ps aux). While this is standard apksigner usage, consider using theenv:format for slightly better security:+ export STORE_PASS="$store_password" + export KEY_PASS="$key_password" "$APKSIGNER" sign \ --ks "$store_file" \ --ks-key-alias "$key_alias" \ - --ks-pass "pass:$store_password" \ - --key-pass "pass:$key_password" \ + --ks-pass "env:STORE_PASS" \ + --key-pass "env:KEY_PASS" \ "$apk"This prevents credentials from appearing in process command lines. The exposure window is short, but in shared CI environments this is a defense-in-depth consideration.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@scripts/release/verify-fdroid-native-libs.sh` around lines 310 - 315, Replace the direct "pass:$store_password" / "pass:$key_password" arguments to apksigner with environment-backed passwords to avoid exposing them in process listings: set temporary env vars (e.g. ANDROID_KS_PASSWORD and ANDROID_KEY_PASSWORD) from your existing variables (store_password, key_password), call the APKSIGNER invocation using --ks-pass "env:ANDROID_KS_PASSWORD" and --key-pass "env:ANDROID_KEY_PASSWORD", then securely unset those env vars immediately after signing; update the shell snippet that calls "$APKSIGNER" (and references $store_file, $key_alias, $apk) to use the env: form and ensure you export and then unset the temporary env vars around that call.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@scripts/release/verify-fdroid-native-libs.sh`:
- Around line 310-315: Replace the direct "pass:$store_password" /
"pass:$key_password" arguments to apksigner with environment-backed passwords to
avoid exposing them in process listings: set temporary env vars (e.g.
ANDROID_KS_PASSWORD and ANDROID_KEY_PASSWORD) from your existing variables
(store_password, key_password), call the APKSIGNER invocation using --ks-pass
"env:ANDROID_KS_PASSWORD" and --key-pass "env:ANDROID_KEY_PASSWORD", then
securely unset those env vars immediately after signing; update the shell
snippet that calls "$APKSIGNER" (and references $store_file, $key_alias, $apk)
to use the env: form and ensure you export and then unset the temporary env vars
around that call.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 6efccd43-b400-4699-afc9-05aaf6d59114
📒 Files selected for processing (1)
scripts/release/verify-fdroid-native-libs.sh
Summary by CodeRabbit