bugfix: revert to aggrisive ssn masking#1832
Open
framitdavid wants to merge 2 commits into
Open
Conversation
Contributor
📝 WalkthroughWalkthrough
ChangesProfile response change
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Contributor
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/Altinn.App.Api/Controllers/ProfileController.cs`:
- Around line 40-41: Restore the SSN masking in ProfileController before
returning the profile: the GetProfile flow currently returns details.Profile
directly after LoadDetails, which skips the masking applied by
PartySsnMasking.MaskUserProfile(...). Update the controller action to mask the
loaded UserProfile again before the Ok(...) response so Party.SSN and nested
party identities are not serialized in raw form.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: e382d923-0b37-4c0a-bbf5-f4193d58e5d0
📒 Files selected for processing (2)
src/Altinn.App.Api/Controllers/ProfileController.cstest/Altinn.App.Api.Tests/Controllers/ProfileControllerTests.User.verified.txt
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
Det kan være at vi maskerte vell mye SSN-numbers. Usikker på om vi skal rulle tilbake med å ikke maskere for din egen profil?
Related Issue(s)
Verification
Documentation