Skip to content

fix: email case normalization and environment-dependent business URL#83

Merged
rubenhensen merged 2 commits into
mainfrom
feat/business-url-and-email-fix
Apr 18, 2026
Merged

fix: email case normalization and environment-dependent business URL#83
rubenhensen merged 2 commits into
mainfrom
feat/business-url-and-email-fix

Conversation

@rubenhensen

Copy link
Copy Markdown
Contributor

Summary

  • Normalize recipient email to lowercase before encryption — the wallet stores emails lowercased, so capitalized emails in the encryption policy caused silent decryption failures. See Email attribute is case-sensitive, causing decryption failures for capitalized emails #82.
  • Make PostGuard for Business URL environment-dependent — reads BUSINESS_URL from runtime config (config.js / Terraform ConfigMap) so staging points to business.staging.postguard.eu and production to business.postguard.eu.

Test plan

  • Encrypt a file for a recipient with mixed-case email (e.g. Alice@Example.com), verify decryption succeeds
  • Verify nav and footer business links point to staging URL in staging environment
  • Verify business links fall back to business.postguard.eu when BUSINESS_URL is not set in config

The wallet stores emails in lowercase, so capitalized emails in the
encryption policy cause decryption to fail due to string mismatch.
Read BUSINESS_URL from runtime config so staging and production
environments can point to their respective business portals.
@rubenhensen rubenhensen merged commit 0e01079 into main Apr 18, 2026
6 checks passed
@rubenhensen rubenhensen deleted the feat/business-url-and-email-fix branch April 18, 2026 13:32
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.

1 participant