Skip to content

Wallet and Passkey Pepper Hardcoded Fallback Removal - #137

Merged
oraimoitel merged 1 commit into
cocor-tech:masterfrom
Uche44:fix/remove-walletpepper-hardcoded-strings
Jul 27, 2026
Merged

Wallet and Passkey Pepper Hardcoded Fallback Removal#137
oraimoitel merged 1 commit into
cocor-tech:masterfrom
Uche44:fix/remove-walletpepper-hardcoded-strings

Conversation

@Uche44

@Uche44 Uche44 commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

updated auth_handler.go to remove hardcoded fallbacks and enforce explicit error handling for missing cryptographic pepper environment variables (MOISTELLO_WALLET_PEPPER and MOISTELLO_PASSKEY_PEPPER).
Closes #95
Changes Made

auth_handler
auth_handler.go
Updated getPasskeyPepper() signature to return (string, error) instead of terminating with log.Fatal or using default fallbacks.

Re-added "log" package to imports for existing handlers.
auth_handler_pepper_test.go

Created dedicated unit test suite testing:
TestDeriveWalletSeed_MissingPepper
TestDeriveWalletSeed_Success
TestGetPasskeyPepper_MissingPepper
TestGetPasskeyPepper_Success

@drips-wave

drips-wave Bot commented Jul 27, 2026

Copy link
Copy Markdown

@Uche44 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@oraimoitel
oraimoitel merged commit 09c8250 into cocor-tech:master Jul 27, 2026
2 checks passed
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.

HIGH: Wallet pepper and passkey pepper have hardcoded fallback strings

2 participants