Skip to content

encrypt lcid#7

Merged
mbusila-unity3d merged 5 commits intomainfrom
encrypt-lcid
Jan 6, 2026
Merged

encrypt lcid#7
mbusila-unity3d merged 5 commits intomainfrom
encrypt-lcid

Conversation

@mbusila-unity3d
Copy link
Collaborator

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements encryption for LCID (Locale ID) values stored in player data using AES-256-GCM encryption. The changes enhance data security by ensuring LCID values are encrypted at rest and support lazy migration of existing plain text values.

Key Changes:

  • Added AES-256-GCM encryption service for LCID values with encryption key stored in Secret Manager
  • Modified PlayerDataService to encrypt LCIDs on storage and decrypt on retrieval, with automatic lazy migration for existing plain text values
  • Added comprehensive unit tests for both encryption service and player data service encryption functionality

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
docs/SETUP.md Added setup instructions for LCID encryption key in Secret Manager
Project/Interfaces/IEncryptionService.cs Defines encryption service interface for encrypt, decrypt, and detection operations
Project/Services/AesEncryptionService.cs Implements AES-256-GCM encryption service with key retrieval from Secret Manager
Project/Services/PlayerDataService.cs Integrates encryption for LCID storage and retrieval with lazy migration support
Project/ModuleConfig.cs Registers encryption service in dependency injection container
UnitTests/AesEncryptionServiceTests.cs Comprehensive tests for encryption service including round-trip, error handling, and edge cases
UnitTests/PlayerDataServiceTests.cs Tests for encrypted LCID storage, retrieval, and lazy migration functionality

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@mbusila-unity3d mbusila-unity3d merged commit c84b137 into main Jan 6, 2026
4 checks passed
@mbusila-unity3d mbusila-unity3d deleted the encrypt-lcid branch January 6, 2026 15:38
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