-
Notifications
You must be signed in to change notification settings - Fork 60
New flag to scrub IP addresses #1161
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
Open
maxgolov
wants to merge
12
commits into
main
Choose a base branch
from
maxgolov/scrub_ip_by_default
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
e83c8ab
Update EventPropertiesDecorator.hpp
maxgolov d1be28c
Merge branch 'main' into maxgolov/scrub_ip_by_default
lalitb ca39292
Merge branch 'main' into maxgolov/scrub_ip_by_default
maxgolov 79c544c
Merge branch 'main' into maxgolov/scrub_ip_by_default
bmehta001 e2bf38a
Merge branch 'main' into maxgolov/scrub_ip_by_default
bmehta001 1ec904d
Gate IP scrubbing behind CFG_BOOL_ENABLE_IP_SCRUBBING (default on)
bmehta001 9854cc7
Merge branch 'main' into maxgolov/scrub_ip_by_default
bmehta001 0f4ad99
Cover SDK stats events and add wrapper-parity config keys for IP scru…
bmehta001 a0fd8c9
Clarify CFG_BOOL_ENABLE_IP_SCRUBBING docstring (Copilot round 1)
bmehta001 1a6c5c3
Address Copilot round 2 on #1161: self-contained header + default-con…
bmehta001 64e6181
Address Copilot round 3 on #1161: extract on-wire record flags to a s…
bmehta001 3bea614
Merge branch 'main' into maxgolov/scrub_ip_by_default
bmehta001 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
Some comments aren't visible on the classic Files Changed page.
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| // | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
| // | ||
| #ifndef RECORDFLAGCONSTANTS_HPP | ||
| #define RECORDFLAGCONSTANTS_HPP | ||
|
|
||
| #include "ctmacros.hpp" | ||
|
|
||
| #include <cstdint> | ||
|
|
||
| namespace MAT_NS_BEGIN { | ||
|
|
||
| // On-wire CS protocol record.flags bits. These are distinct from the | ||
| // API-surface MICROSOFT_EVENTTAG_* policy flags and are remapped onto | ||
| // record.flags by EventPropertiesDecorator. Kept in a dedicated header so | ||
| // other components (e.g. the stats pipeline) can reference a single bit | ||
| // definition without depending on the decorator's inline implementation. | ||
| // Ref CS2.1+: https://osgwiki.com/wiki/CommonSchema/flags | ||
| // (API-surface MICROSOFT_EVENTTAG_MARK_PII 0x08000000) | ||
| static constexpr std::int64_t RECORD_FLAGS_EVENTTAG_MARK_PII = 0x00080000; | ||
| // (API-surface MICROSOFT_EVENTTAG_HASH_PII 0x04000000) | ||
| static constexpr std::int64_t RECORD_FLAGS_EVENTTAG_HASH_PII = 0x00100000; | ||
| // (API-surface MICROSOFT_EVENTTAG_DROP_PII 0x02000000) | ||
| static constexpr std::int64_t RECORD_FLAGS_EVENTTAG_DROP_PII = 0x00200000; | ||
| static constexpr std::int64_t RECORD_FLAGS_EVENTTAG_SCRUB_IP = 0x00400000; | ||
|
|
||
| } MAT_NS_END | ||
|
|
||
| #endif // RECORDFLAGCONSTANTS_HPP |
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
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
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.