Repository navigation
[3887 by GPT-6.2 Sol] propr deploy fly: secrets added after the first deploy never reach the app container (explicit per-container secrets list) - #3888
Conversation
After adding a secret with `fly secrets set`, rerun `propr deploy fly` with the same deployment options. The redeploy uses the names from Fly’s secret list to rebuild the `app` container’s environment mappings. Redis receives no secrets. Updated the [Fly setup guide](/home/node/workspace/docs/docs/tutorials/setup-fly.md:89) and the Sprites and Fly Machines credential messages. Deploy warnings now account for credentials already stored on Fly. All 227 targeted tests passed, including a two-deploy regression test that verifies a newly added `SPRITES_TOKEN` appears in the rendered config. CLI and core type checks passed. The live Agents readiness check remains unverified because this workspace lacks Fly and Sprites credentials. ProPR-Agent: codex/gpt-6.2-sol
|
/ultrafix goal=8 max=10 |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 10) First action:
|
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationReady to merge within scope. This PR clarifies the existing secret-redeploy workflow, improves credential warnings, and adds focused regression coverage without changing the secret-mapping semantics. ✅ Accurate credential warnings — ✅ Meaningful redeploy coverage — The two-deploy regression verifies that an externally added ✅ Practical recovery guidance — The tutorial explains preserving deployment options and updating environment-file entries that could overwrite secrets set directly on Fly. This assessment uses static review of the supplied code; no commands were run. The authoritative current-head status reports 35 passed checks and no failed or pending checks. Live runtime readiness remains unverified. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Cover credential warning variantsConsider table-driven tests for ScoreThe change is focused, preserves existing secret handling, and adds useful regression coverage and operator guidance. No PR-introduced blocker was found, and current-head checks are passing. Score: 9/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
Live test at 30d2955 (merged locally with the current epic): mapping works, one blockerTest instance
F1: a redeploy of a device sign-in instance can't reuse the relay token already on the appThe docs added here tell operators to "rerun
I could only run the test above by copying the existing token into a private env-file copy, which an operator shouldn't have to do. Required:
|
|
✅ Applied the requested follow-up changes in commit 014fe1c Summary of Changes
All 150 targeted tests and the CLI typecheck passed. Live Fly sign-in remains unverified. This branch includes the CLI device sign-in validation from the runtime epic, so a direct merge with that epic has overlapping CLI changes. Review digestRisk-tiered paths
Diff size: 8 files changed, +289/−61 lines Visual previewReusing relay credentials on FlyThe Fly setup guide explains when a redeploy reuses the credentials already on the app. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
`propr deploy fly` now reuses relay credentials already on Fly. It checks secret names before enrollment, accepts them for device sign-in without `propr login`, and keeps both secrets mapped into the app container. `--relay` still enrolls a fresh token. The deploy prints the new token ID and uses the app’s enrollment label to guide revocation of the previous token. The [Fly setup guide](/home/node/workspace/docs/docs/tutorials/setup-fly.md:89) now documents relay reuse. All 150 targeted tests and the CLI typecheck passed. Live Fly sign-in remains unverified. This branch includes the CLI device sign-in validation from the runtime epic, so a direct merge with that epic has overlapping CLI changes. PR: #3888 Comment by: @integry (ID: 7261453153) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryResolved all eight conflict regions across the three Fly deployment source files for PR #3888. A workspace-wide scan found no remaining conflict blocks after regenerating two affected CLI build artifacts.
The CLI TypeScript check, generated JavaScript syntax check, and all 150 Fly deployment tests passed. Git still lists the three source files as unresolved in its index because 🤖 Resolution Details
System-triggered merge conflict resolution |
Automatically resolved merge conflicts after merging target branch into PR branch. Resolved conflicts in: - packages/cli/src/commands/deploy/flyBrowserAuth.ts - packages/cli/src/commands/deploy/flyRelay.ts - packages/cli/src/commands/deployFly.ts PR: #3888 Model: GPT-6.2 Sol
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryResolved both conflicts in deployFly.ts.
The workspace scan found no remaining merge conflict markers. The CLI type check, all 151 Fly deployment tests, and Git could not record the resolution in its index because the worktree metadata is on a read-only filesystem. 🤖 Resolution Details
System-triggered merge conflict resolution |
Automatically resolved merge conflicts after merging target branch into PR branch. Resolved conflicts in: - packages/cli/src/commands/deployFly.ts PR: #3888 Model: GPT-6.2 Sol
|
CI failed: Full Test Suite Shard 3/4 Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit ae6d57c Summary of ChangesFixed the only failing test in Full Test Suite Shard 3/4. The device sign-in test now loads the instance allowlist from an isolated SQLite database and verifies that an unlisted user receives HTTP 403 and gets no session. All eight targeted suites passed on Node 24.22.3, matching CI. The API type check passed. Full-shard verification is pending in GitHub Actions. Review digestRisk-tiered paths
Diff size: 1 file changed, +23/−11 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed the only failing test in [Full Test Suite Shard 3/4](https://github.com/integry/propr/actions/runs/46303700948/job/141474154794). The [device sign-in test](/home/node/workspace/packages/api/test/deviceAuth.test.ts:234) now loads the instance allowlist from an isolated SQLite database and verifies that an unlisted user receives HTTP 403 and gets no session. All eight targeted suites passed on Node 24.22.3, matching CI. The API type check passed. Full-shard verification is pending in GitHub Actions. PR: #3888 Comment by: @propr-dev[bot] (ID: 7262044478) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryResolved both conflict blocks in deviceAuth.test.ts. The workspace scan found no other merge conflicts.
All 10 device-auth tests passed. The syntax and whitespace checks passed, and the rescan found no remaining conflict markers. Git still lists the file as unmerged in its index because 🤖 Resolution Details
System-triggered merge conflict resolution |
Automatically resolved merge conflicts after merging target branch into PR branch. Resolved conflicts in: - packages/api/test/deviceAuth.test.ts PR: #3888 Model: GPT-6.2 Sol
|
/ultrafix goal=8 max=10 |
|
✅ Applied the requested follow-up changes in commit 8d9a135
Summary of ChangesFixed F4. A migrated Fly app can redeploy with the same admin-only env file when a local GitHub login is available. If retained App settings make installation ownership ambiguous, the deploy automatically enrolls a fresh relay token and writes its installation ID. Supplying relay mode and the installation ID allows later deploys to reuse the token. All 164 Fly deploy tests and the CLI type check passed. Regression coverage includes both simulated Fly backends, dry-run planning, enrollment failure, and operator-managed relay URLs. Verification used simulated Fly targets. Review digestRisk-tiered paths
Diff size: 3 files changed, +91/−5 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed F4. A migrated Fly app can redeploy with the same admin-only env file when a local GitHub login is available. If retained App settings make installation ownership ambiguous, the deploy automatically enrolls a fresh relay token and writes its installation ID. Supplying relay mode and the installation ID allows later deploys to reuse the token. All 164 Fly deploy tests and the CLI type check passed. Regression coverage includes both simulated Fly backends, dry-run planning, enrollment failure, and operator-managed relay URLs. Verification used simulated Fly targets. PR: #3888 Comment by: @integry (ID: 7265029407) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR improves Fly redeploys by preserving existing credentials and rebuilding app-container secret mappings. It needs a localized correction before merge: the legacy-enrollment fallback can approve a deployment that disables browser sign-in. ✅ Secret isolation — Existing and newly uploaded secret names reach the app container, while Redis receives no secret mappings. ✅ Dry-run parity — Dry runs now read existing secret names and preserve generated secrets, with explicit feedback when lookup fails. ✅ Redeploy coverage — Added tests cover both backends, legacy enrollments, external secret additions, and retry after a failed Machine deployment. This review used static tracing only; no commands were run. The supplied current-head status reports no failures and 11 pending checks. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F5: 🔴 Legacy fallback ignores invalid client overrides
SuggestionsThese are optional follow-ups and are not sent to S6: 🟢 Document hosted URL storageThe new documentation describes reuse through ScoreThe implementation has substantial regression coverage and addresses the main redeploy workflow, but one newly accepted configuration can disable sign-in. A localized validation fix is needed. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
Drop the legacy-enrollment fallback (resolves F5)
Please remove the "complete legacy enrollment" fallback in
No migration notes are needed for pre-release instances. |
|
✅ Applied the requested follow-up changes in commit 741d6c7 Summary of ChangesRemoved the legacy-enrollment fallback for PR #3888. When the configured credentials can’t establish browser sign-in, All 143 Fly deploy tests and the CLI type check passed. The tests verify that redeploys map app secrets into the Review digestRisk-tiered paths
Diff size: 3 files changed, +6/−44 lines Visual previewFly redeploy secret guidanceThe setup guide explains when redeploys reuse the hosted relay URL and which relay settings to keep in the environment file. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Removed the legacy-enrollment fallback for PR #3888. When the configured credentials can’t establish browser sign-in, `propr deploy fly` now stops during validation with the existing error. The setup guide explains which relay settings to keep for redeploys. All 143 Fly deploy tests and the CLI type check passed. The tests verify that redeploys map app secrets into the `app` container, keep Redis free of secrets, and succeed after an own-App instance migrates to the relay. Verification used mocked Fly backends. PR: #3888 Comment by: @integry (ID: 7265420819) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
|
/merge |
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryResolved both merge conflicts for PR #3888. A workspace-wide scan found no remaining conflict markers. The CLI TypeScript checks and the targeted Fly deployment and launch-layout tests passed.
Git could not record the two resolutions in its index because the worktree’s index lock path is on a read-only filesystem. The resolved files are present in the workspace. 🤖 Resolution Details
System-triggered merge conflict resolution |
Automatically resolved merge conflicts after merging target branch into PR branch. Resolved conflicts in: - packages/cli/src/commands/deploy/flyMachineConfig.ts - packages/cli/src/commands/deployFly.ts PR: #3888 Model: GPT-6.2 Sol
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
|
CI failed: Validate Changes Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit 8d7861a Processed 2 comments:
Summary of ChangesRegenerated the OpenAPI spec to fix the
Review digestRisk-tiered paths
Diff size: 1 file changed, +2/−2 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Regenerated the [OpenAPI spec](/home/node/workspace/docs/static/openapi/propr-api.yaml:31) to fix the `Validate Changes` failure on PR #3888. The only diff updates the route counts to 348 total and 99 documented. `npm run gen:openapi:check`, `npm run check:client-contract`, and `git diff --check` passed locally. PR: #3888 Comment by: @github-actions[bot] (ID: 7266325052) Comment by: @propr-dev[bot] (ID: 7266325710) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationReady to merge within the reviewed scope. The changes support redeploying with credentials retained on Fly, refresh app-container secret mappings, and improve deployment guidance. ✅ Secret isolation — Both deployment backends use the combined retained and newly uploaded secret names for the app container; Redis receives no secret mappings. ✅ Credential preservation — Regression tests cover reusing hosted relay credentials without another enrollment and preserving generated secrets across redeploys. ✅ Authentication validation — The planner distinguishes hosted and operator-managed relay URLs and checks retained own-App installation settings before allowing device sign-in. This assessment is based on static review of the supplied diff and surrounding code. No commands were run. Current-head checks report 35 passed, none failed, and 12 neutral/skipped. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S7: 🟢 Test removed secret mappingsExtend the two-deploy regression in ScoreThe implementation addresses the redeploy behavior with substantial regression coverage and passing current-head checks. Static review found no verified merge blockers. Score: 9/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
Live test on propr-dev-3868 (a
|


AI Implementation Summary
Closes #3887
Branch:
3887/gpt-6.2-sol-propr-deploy-fly-secrets--20261129-1526-ouhCommits: ✅ Changes committed (30d2955)
AI Processing Completed
Execution Details:
Summary:
After adding a secret with
fly secrets set, rerunpropr deploy flywith the same deployment options. The redeploy uses the names from Fly’s secret list to rebuild theappcontainer’s environment mappings. Redis receives no secrets.Updated the Fly setup guide and the Sprites and Fly Machines credential messages. Deploy warnings now account for credentials already stored on Fly.
All 227 targeted tests passed, including a two-deploy regression test that verifies a newly added
SPRITES_TOKENappears in the rendered config. CLI and core type checks passed. The live Agents readiness check remains unverified because this workspace lacks Fly and Sprites credentials.Review digest
Risk-tiered paths
packages/cli/src/commands/deploy/flyDeployRunner.ts(+15/−3)packages/cli/src/commands/deployFly.ts(+3/−6)packages/core/src/agents/runtime/fly/config.ts(+3/−1)packages/core/src/agents/runtime/spritesRuntime.ts(+1/−1)docs/docs/tutorials/setup-fly.md(+8/−2)packages/cli/src/commands/deploy/flyDeployRunner.test.ts(+35/−8)packages/cli/src/commands/deployFly.test.ts(+2/−3)Diff size: 7 files changed, +67/−24 lines
View task for the run's logs and conversation.
This PR was created automatically by ProPR after processing issue #3887.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!
Visual preview
Fly secret redeploy guide
The Fly setup tutorial explains how to pass a newly added Fly secret to the ProPR app container.
Full-size original