-
Notifications
You must be signed in to change notification settings - Fork 105
Add filterSensitiveLog method to Structure namespaces #170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
0011c55
Add basic toString function
trivikr a45ddcb
Add REDACTED to member if it has SensitiveTrait
trivikr cfca4b7
Use getMemberTrait to find SensitiveTrait
trivikr b3f589f
Move code to StructuredMemberWriter
trivikr e535e9c
Add SENSITIVE_STRING for optional members only if they're present
trivikr 3159785
chore: remove isRequired check as all members are either undefined or…
trivikr 9b2492d
feat: call toString on Structures
trivikr f4971cd
chore: rename toString to filterSensitiveLog
trivikr dbc847d
feat: add filterSensitiveLog for Array
trivikr 687c1d0
feat: added support for list of lists
trivikr 1d686fe
Move map open and end outside if-else block
trivikr 0253956
Fix issues with writeFilterSensitiveLogForArray
trivikr fb40619
Fix java.lang.StackOverflowError
trivikr ebd547e
Simplify code by storing member shape in memberShape
trivikr 5125a70
Use openBlock instead of write
trivikr 429f753
Pass arrayMember in writeFilterSensitiveLogForArray
trivikr 667671a
Fix bug with Array<Array<SimpleShape>>
trivikr 7514dfe
filterSensitiveLog for MapShape inside Structure
trivikr 4f9abc8
Move reducer function definition outside memberShape comparison
trivikr 73dbfcf
Remove redundant code by doing iteration only for some shapes
trivikr 2ab9128
Recursively call isIterationRequired to remove redundant code
trivikr afc8591
filterSensitiveLog for Map inside Collection
trivikr 64a48eb
Explicitly return any from filterSensitiveLog method
trivikr d5bf159
filterSensitiveLog for Collection inside Map
trivikr 513ee78
filterSensitiveLog for Map inside Map
trivikr 4464b87
Fix bug in filterSensitiveLog for Map of Map
trivikr 72a0a3a
chore: rename writeFilterSensitiveLogFor<X> to write<X>FilterSensitiv…
trivikr 3e89a6c
Simplified method isIterationRequired
trivikr 6a40003
Add period at the end of comments
trivikr 117de12
Removed braces for variable writes
trivikr e7ff2fb
Used positional parameters in write() calls
trivikr a75f171
Use destructuring in writeMapFilterSensitiveLog
trivikr e00a880
Throw error in filterSensitiveLog where the path should never reach
trivikr ba5d2c9
Make writeX methods private
trivikr cf46258
Add writeStructureFilterSensitiveLog
trivikr 7503ee7
Edge case for collection with sensitive trait
trivikr 28d478b
Edge case for map with Sensitive trait
trivikr f8ac270
Refactor to simplify code
trivikr 81ff15c
Rename config -> structuredMemberWriter
trivikr b436936
Move writeFilterSensitiveLog above private functions
trivikr f9e6fd7
Remove shape from writeFilterSensitiveLog
trivikr c4f2d40
Rename memberShape to memberTarget
trivikr 3c73a41
Create getSanitizedMemberName method
trivikr 1bb22be
Fix for ./gradlew test to be successful
trivikr 9a31c3d
Add tests for filterSensitiveLog
trivikr dd7fd26
Updated documentation to clarify getSanitizedMemberName
trivikr d4dc6fb
Use structureTarget.hasTrait in writeStructureFilterSensitiveLog
trivikr c8fced3
Added tests for callsFilterIn<X>WithSensitiveData
trivikr ad357b7
Modify tests for sensitive List/Map/Structure
trivikr 3556c64
Add tests for member pointing to sensitive structure/list/map
trivikr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.