Repository navigation
Stop reading ~/.secrets/global-api-keys; use env or fleet-secrets (OPS-818) - #260
Conversation
…S-818) Refs OPS-818. Nothing may read the flat handoff file any more: env first, then `fleet-secrets get NAME` where a Mac fallback is needed. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Code Review Completed! 🔥The code review was successfully completed based on your current configurations.
|
| Options | Enabled |
|---|---|
| Bug | ✅ |
| Performance | ✅ |
| Security | ✅ |
| Business Logic | ✅ |
🤔 Insufficient Task ContextI found a task linked to this PR, but it only contains minimal information (title only, no description or acceptance criteria). To perform a meaningful business rules validation, I need more details. 🔍 What I need to validate:
💡 How to improve the task context:
|
Stale Kody rule text (still lists the flat ~/.secrets file as an approved source); contradicts owner ruling OPS-818. Findings answered in the threads.
Summary
Updates the TestFlight shipping script (
scripts/ios-fleet/ship-testflight.sh) to stop sourcing the Sentry auth token from the shared~/.secrets/global-api-keysfile. The token is now resolved from the environment, falling back to thefleet-secretshelper when it is installed.Motivation
OPS-818 removes reliance on a global, machine-wide API key file. Previously the script grepped
~/.secrets/global-api-keysforSENTRY_AUTH_TOKEN, which meant the token had to be duplicated into a shared file on each machine. The new behavior aligns the script with the environment-variable or fleet secret-store pattern.Changes
load_sentry_authbehaviorSENTRY_AUTH_TOKENis already set in the environment, it is used as-is (unchanged behavior).fleet-secretscommand is available, the token is fetched viafleet-secrets get SENTRY_AUTH_TOKENand exported.~/.secrets/global-api-keyslookup path has been removed entirely.Documentation in the script header
SENTRY_AUTH_TOKENcomes from now states "env orfleet-secrets get" instead of referencing the global API keys file.load_sentry_authreflects the new environment/fleet-secrets precedence.Review Notes
The automated review flagged that reading
SENTRY_AUTH_TOKENfromfleet-secrets getmay conflict with Rule 66's two approved secret sources, which is worth confirming before merge. The review also noted that the task description provides limited context for validating the intended business logic.