Skip to content

Override CSP for ThreatMetrix based on feature-specific config#11678

Merged
aduth merged 1 commit intomainfrom
aduth-threatmetrix-csp-per-config
Jan 6, 2025
Merged

Override CSP for ThreatMetrix based on feature-specific config#11678
aduth merged 1 commit intomainfrom
aduth-threatmetrix-csp-per-config

Conversation

@aduth
Copy link
Copy Markdown
Contributor

@aduth aduth commented Dec 19, 2024

🎫 Ticket

Supports LG-15302

🛠 Summary of changes

Moves feature flag check from shared ThreatMetrixConcern to individual controllers, so that overriding CSP for account creation is not dependent on profiling collection being enabled for identity proofing.

📜 Testing Plan

Verify build passes.

Verify that CSP override occurs on MFA setup screen when account creation profiling collection is enabled and identity proofing device profiling collection is disabled.

# config/application.yml
development:
  account_creation_device_profiling: collect_only
  proofing_device_profiling: disabled

@aduth aduth requested review from a team, matthinz and mdiarra3 December 19, 2024 20:37
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Easier to review this file with whitespace changes hidden: https://github.com/18F/identity-idp/pull/11678/files?w=1

Base automatically changed from LG-15203-move-threatmetrix-call-to-mfa-selection to main December 23, 2024 16:23
changelog: Upcoming Features, Anti-Fraud, Override CSP for ThreatMetrix based on feature-specific config
@aduth aduth force-pushed the aduth-threatmetrix-csp-per-config branch from 3495983 to 8c82c4f Compare January 6, 2025 15:03
@aduth aduth merged commit e9fae55 into main Jan 6, 2025
@aduth aduth deleted the aduth-threatmetrix-csp-per-config branch January 6, 2025 15:23
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