Skip to content

fix: remove committed Solana program keypair and update gitignore#30

Closed
0x-SquidSol wants to merge 1 commit intonullxnothing:mainfrom
0x-SquidSol:fix/remove-committed-program-keypair
Closed

fix: remove committed Solana program keypair and update gitignore#30
0x-SquidSol wants to merge 1 commit intonullxnothing:mainfrom
0x-SquidSol:fix/remove-committed-program-keypair

Conversation

@0x-SquidSol
Copy link
Copy Markdown

Summary

  • The Anchor program deployment keypair (daemon_registry-keypair.json) was committed to the repository, exposing the Ed25519 secret key publicly
  • Removes the tracked keypair files from both target/deploy/ and programs/daemon-registry/target/deploy/
  • Adds target/deploy/*-keypair.json to .gitignore to prevent future commits of Anchor keypairs

Important: This keypair should be considered compromised. It must be regenerated with solana-keygen new before any future program deployment.

Test plan

  • Verify keypair files are no longer tracked by git
  • Confirm target/deploy/*-keypair.json is properly ignored
  • Run pnpm run typecheck — passes clean
  • anchor build still works (regenerates keypair locally)

The Anchor program deployment keypair (daemon_registry-keypair.json) was
committed to the repository, exposing the Ed25519 secret key. This key
should be treated as compromised and regenerated before any future
program deployment.

Adds a gitignore pattern to prevent Anchor keypairs in target/deploy/
from being tracked in the future.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@nullxnothing
Copy link
Copy Markdown
Owner

Closed as superseded by #75, which reapplies the corrected security hardening on top of current main. This avoids merging stale/conflicted branches and preserves the fixes with passing CI/CodeQL.

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.

2 participants