Skip to content

Read local release credentials from the Fleet SOPS vault - #150

Merged
zigdanis merged 2 commits into
masterfrom
t3/secrets-from-sops
Nov 14, 2026
Merged

zigdanis merged 2 commits into
masterfrom
t3/secrets-from-sops

Conversation

@zigdanis

Copy link
Copy Markdown
Owner

What

Local release tooling stops reading plaintext credential files and the login Keychain:

  • scripts/testflight_local.py decrypts the App Store Connect Admin key growingup/asc-api-key.json and the Match password growingup/match-password from Danis's SOPS vault (~/myai/fleet-secrets, opened by MacPro, MacAir and Raspi) with sops decrypt. The key is still written only to a temporary owner-only .p8 for the Fastlane run.
  • scripts/testflight setup local no longer takes --api-key and no longer writes ~/.config/growingup-testflight/local.json; it checks that the vault decrypts, then installs the gems.
  • marketing/app-store/previews/support/local-auth.py uses the same vault file instead of ~/Documents/Work/Personal/asc_api_key.json.
  • Docs (Readme.md, fastlane/README.md) describe the vault files and rotation.
  • The permission test for the removed plaintext-file check is replaced by a test of the vault reader.

GitHub Actions secrets and cloud releases are unchanged.

Checks

  • python3 -m unittest scripts/tests/test_testflight_local.py scripts/tests/test_testflight.py passes.
  • On MacPro, with local.json and the plaintext key file moved away: credentials() produced the Fastlane environment (key ID, temporary .p8, Match password matching the Keychain value by hash) and removed the .p8 afterwards; local-auth.py made a read-only GET /v1/apps call. No build, upload or metadata change.

After merge

Delete ~/.config/growingup-testflight/local.json and ~/Documents/Work/Personal/asc_api_key.json on MacPro; optionally remove the Keychain item pro.ziganshin.GrowingUp.match.

🤖 Generated with Claude Code

The local TestFlight executor and the App Store preview helper now decrypt the
Admin ASC key (growingup/asc-api-key.json) and the Match password
(growingup/match-password) from ~/myai/fleet-secrets with sops, instead of
~/.config/growingup-testflight/local.json, a plaintext key file and the login
Keychain. 'scripts/testflight setup local' no longer takes --api-key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Local TestFlight setup no longer accepts an API-key file path. It reads the App Store Connect key and Match password from the SOPS-encrypted vault, validates them, and supplies the credentials to Fastlane. The documentation describes the vault setup, credential rotation, and temporary .p8 handling. Tests now cover vault decryption and App Store Connect key validation.

Merge Risk: Minimal · up to 6730c

Local release tooling now reads its credentials from the SOPS vault. No concrete merge-blocking risk was found. Cloud releases through GitHub Actions are unchanged.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title states the main change: local release credentials are now read from the Fleet SOPS vault. The raw summary confirms that scripts/testflight_local.py decrypts the App Store Connect key and Mat…
Description check Passed The description states what changes: local release tooling reads the App Store Connect key and Match password from the SOPS vault instead of plaintext files and the login Keychain. It also lists the s…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title states the main change: local release credentials are now read from the Fleet SOPS vault. The raw summary confirms that scripts/testflight_local.py decrypts the App Store Connect key and Match password with sops, and that setup no longer takes an API-key path. The title is specific and matches the changeset, and it is 56 characters long.

Full details: Description check

Explanation

The description states what changes: local release tooling reads the App Store Connect key and Match password from the SOPS vault instead of plaintext files and the login Keychain. It also lists the setup changes, the docs updates, and the testing done. This matches the raw summary, which covers the same files and behavior.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 7298ae5 and 6730cad.

Files ignored due to path filters: 1

  • marketing/app-store/previews/support/local-auth.py is excluded by !marketing/**
Files selected for processing: 5

  • Readme.md
  • fastlane/README.md
  • scripts/testflight.py
  • scripts/testflight_local.py
  • scripts/tests/test_testflight_local.py

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T21:29:10.219001Z 6a7cda8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6a7cda8879

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Readme.md

One-time Mac setup (an existing App Store Connect API key JSON, kept outside Git):
One-time Mac setup (the App Store Connect key and Match password come from Danis's
SOPS vault `~/myai/fleet-secrets/growingup/`, never from files in Git or plaintext files;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Update the remaining local credential description

This change moves local credentials to the SOPS vault, but the deployment section below still says they stay in the Mac Keychain/private API key file. That leaves readers with conflicting setup guidance and may lead them to rely on credentials the new executor no longer reads; update that sentence to describe the vault.

Useful? React with 👍 / 👎.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@zigdanis
zigdanis merged commit 21cdac0 into master Nov 14, 2026
10 checks passed
@zigdanis
zigdanis deleted the t3/secrets-from-sops branch November 14, 2026 21:41
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.

1 participant