Skip to content

Comments

feat(security): encrypt game and player names with env-based key (fix…#2360

Open
Arunodoy18 wants to merge 2 commits intoOWASP:masterfrom
Arunodoy18:feat/2232-encrypt-game-player-names
Open

feat(security): encrypt game and player names with env-based key (fix…#2360
Arunodoy18 wants to merge 2 commits intoOWASP:masterfrom
Arunodoy18:feat/2232-encrypt-game-player-names

Conversation

@Arunodoy18
Copy link

Summary

Implements application-level encryption for game and player names.

Closes #2232.

Changes

  • Adds Cloak.Ecto for field-level encryption.
  • Introduces Copi.Vault using AES-GCM.
  • Encryption key loaded from COPI_ENCRYPTION_KEY environment variable.
  • Transparent encryption/decryption at schema level.
  • Includes migration to encrypt legacy plaintext data.

Security Improvements

  • Prevents plaintext storage of sensitive names.
  • Ensures encryption-at-rest.
  • Uses authenticated encryption (AES-GCM).
  • No hardcoded secrets.

Notes

  • Backward compatible during transition.
  • No changes to existing business logic.

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.

Encrypt the game name and player name fields for copi.owasp.org

1 participant