flowfi icon indicating copy to clipboard operation
flowfi copied to clipboard

[DevOps] render.yaml still declares SOROBAN_SECRET_KEY and ADMIN_SECRET, both dead in current code

Open K1NGD4VID opened this issue 2 months ago • 15 comments

Labels: devops, infra, third-wave-audit File/location: render.yaml:44-55

Description: render.yaml's backend service envVars list two secrets that a deploy operator would be told to provision: SOROBAN_SECRET_KEY ('Stellar secret key for signing on-chain cancel actions') and ADMIN_SECRET ('Bearer token for admin metrics/actions'). Neither is read anywhere in backend/src (grep for both across backend/src, backend/.env.example, and docs returns zero code hits — only the render.yaml declarations themselves). Cancel actually signs with KEEPER_SECRET_KEY (see cancel.ts), and admin auth has moved to ADMIN_PUBLIC_KEY-based auth (also already declared in render.yaml). These two entries are leftovers from the code migrations tracked by already-closed issues #545 (secret naming) and #647/#542 (admin auth migration) that were never cleaned up in render.yaml, so the deploy manifest still asks operators to generate and store two secrets that do nothing.

Acceptance Criteria:

  • [ ] Remove the SOROBAN_SECRET_KEY and ADMIN_SECRET entries from render.yaml's envVars (or replace with a code change if they are in fact intended to be wired up — but grep confirms no current backend code reads either).
  • [ ] Re-grep backend/src, backend/.env.example, and render.yaml after the change to confirm no remaining secret is declared in the deploy manifest without a corresponding process.env.<NAME> read in code.

Notes: This is a render.yaml-specific cleanup gap, not a re-report of #545 or #647/#542 (both closed and about the backend code side of those migrations) — the finding here is that the deploy manifest itself was never updated to match, which is a distinct, currently-verifiable defect in render.yaml.

K1NGD4VID avatar Sep 27 '26 21:09 K1NGD4VID

I reviewed render.yaml:44-55 against the backend controllers. SOROBAN_SECRET_KEY and ADMIN_SECRET are declared as required envVars but neither is read anywhere in backend/src, cancel.ts signs with KEEPER_SECRET_KEY and admin auth now runs on ADMIN_PUBLIC_KEY, both leftovers from the #545 and #647/#542 migrations that never got reflected in render.yaml. My fix removes both dead entries from render.yaml's envVars, then re-greps backend/src, backend/.env.example, and render.yaml to confirm no remaining secret declaration lacks a corresponding process.env. read. Small, low-risk manifest cleanup, PR ready quickly.

2TheMoom avatar Sep 27 '26 21:09 2TheMoom

Hello maintainers,

I am interested in taking up [DevOps] render.yaml still declares SOROBAN_SECRET_KEY and ADMIN_SECRET, both dead in current code.

Proposed steps:

  1. Audit storage layout and state invariants ensuring strict auth guards.
  2. Implement deterministic state transitions with safe checked arithmetic.
  3. Add hermetic unit and regression tests covering authorized, unauthorized, and boundary edge cases.
  4. Profile instruction and CPU/gas limits under Soroban host environment.

Let me know if this aligns with the repository guidelines and assign when convenient.

rupesh-kumar-sah avatar Oct 03 '26 23:10 rupesh-kumar-sah

@Teejay2696 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

Hi maintainer, I can fix this kindly assign

ℹ️ Repo Maintainers: To accept this application, review their application or assign @Teejay2696 to this issue.

Teejay2696 avatar Oct 16 '26 23:10 Teejay2696

@CollinsKRO has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

Hi Maintainer, I can fix this pls assign. ETA 5hrs

ℹ️ Repo Maintainers: To accept this application, review their application or assign @CollinsKRO to this issue.

CollinsKRO avatar Oct 16 '26 23:10 CollinsKRO

@harmondconsultant-png has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

hy, i can work on it pleas assign

ℹ️ Repo Maintainers: To accept this application, review their application or assign @harmondconsultant-png to this issue.

harmondconsultant-png avatar Oct 16 '26 23:10 harmondconsultant-png

@Nuruddeen61 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

I love to work on this issue please assign me 🙏🙏🙏

ℹ️ Repo Maintainers: To accept this application, review their application or assign @Nuruddeen61 to this issue.

Nuruddeen61 avatar Oct 16 '26 23:10 Nuruddeen61

@Wittig18 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

hey maintainer, i would love to work on this

ℹ️ Repo Maintainers: To accept this application, review their application or assign @Wittig18 to this issue.

Wittig18 avatar Oct 16 '26 23:10 Wittig18

@CHKM001 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

Hello Chief I have gone through the task and can implement within a few hours of work. Please assign for successful completion within 4-6 hours of work

ℹ️ Repo Maintainers: To accept this application, review their application or assign @CHKM001 to this issue.

CHKM001 avatar Oct 16 '26 23:10 CHKM001

@moon-code12 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

Hi, Maintainer I can fix this issue

ℹ️ Repo Maintainers: To accept this application, review their application or assign @moon-code12 to this issue.

moon-code12 avatar Oct 16 '26 23:10 moon-code12

@Muyideen-js has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

Hi, I can fix this

ℹ️ Repo Maintainers: To accept this application, review their application or assign @Muyideen-js to this issue.

Muyideen-js avatar Oct 16 '26 23:10 Muyideen-js

@dollfins has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

Hello maintainer, i would like to work on this issue

ℹ️ Repo Maintainers: To accept this application, review their application or assign @dollfins to this issue.

dollfins avatar Oct 16 '26 23:10 dollfins

@VeronicDev has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

Hello Maintainer, I can fix this please assign.

ℹ️ Repo Maintainers: To accept this application, review their application or assign @VeronicDev to this issue.

VeronicDev avatar Oct 16 '26 23:10 VeronicDev

Congratulations, @dollfins! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.

🧑‍💻 @dollfins: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

🌊 Happy Wave 🌊

drips-wave[bot] avatar Oct 16 '26 23:10 drips-wave[bot]

This issue has been completed by @dollfins as part of the Stellar Wave Program's 10th Wave 🥳

😎 @dollfins: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

drips-wave[bot] avatar Oct 18 '26 01:10 drips-wave[bot]