Skip to content

STELLAR_GATEWAY_SECRET is loaded but never used — no signing/refund path #75

Description

@Darkdruce

Summary

gateway_secret is read, stored, and redacted in Debug, but is referenced nowhere else in the codebase.

Location

  • src/config.rs:115 (read) — grep gateway_secret src/ shows no consumer outside config.rs.

Details & impact

The service never signs or submits any Stellar transaction, so:

  • overpayment refunds documented in the README/horizon.rs policy cannot actually be performed by the gateway, and
  • operators are asked to mount a live wallet secret into a process that has no use for it, needlessly widening the blast radius of a compromise.

Suggested fix

Either implement the outbound/refund path that needs the secret, or remove the variable and stop requesting it. Document the decision.

Acceptance criteria

  • The secret is either used by an implemented feature or removed from config and docs.

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26bugSomething isn't workingconfigConfiguration and environment handlingsecurity

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions