-
-
Notifications
You must be signed in to change notification settings - Fork 16
Add Email and Phone Number Masking to URI Sanitization #18
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
Closed
Conversation
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
* refactor: Avoid high cardinality * refactor: Object not being used * refactor: Restore exception class labeling
* add new patterns and replacements strings * add new tests * fix change patterns and replacements order
* fix patterns, shortening patterns and implement case-insensitive * add vscode and jetbrains ide folders into .gitignore
Update HttpClientMetricAspect.php
* feat identified connect exception on http promise rejection * use interface instead exception * abstract catch of exception * add specific message on errors
* [3.1]Bumps dependencies (#5796) Co-authored-by: 李铭昕 <715557344@qq.com> * Upgrade hyperf packages to version `~3.1.0` (#5801) * Bumps `phpunit` to `10.x` (#5802) Co-authored-by: 李铭昕 <715557344@qq.com> * Remove redundant `setAccessible` methods (#5811) * Remove deprecated codes (#5812) * Removed the deprecated code for metric. (#5847) * Use `StrCache` instead of `Str` in special cases. (#5866) * [feat] Support buffer mechanism in standalone process of metric (#6030) Co-authored-by: 李铭昕 <715557344@qq.com> * Fix the bug that cannot stop the command from terminating gracefully (#6090) * Upgrade actions/checkout to v4 (#6159) * Adds `metric.enable_command_metric` switch (#6272) * Changed the `branch-alias` of all components to `3.1-dev`. (#6320) * update dependencies * Remove unused import --------- Co-authored-by: Deeka Wong <huangdijia@gmail.com> Co-authored-by: 李铭昕 <715557344@qq.com> Co-authored-by: yansongda <yansongda@users.noreply.github.com> Co-authored-by: Albert Chen <albert.cht@gmail.com>
* Add: AndroidID Regex * Add: AndroidID Regex
fix regex short oid
Add ignore_path configuration
* WIP * Increment test * Fix testes * Fix testes * Fix testes * WIP * Delete .moonlight.yaml * Delete Dockerfile * Delete Makefile * Delete docker-compose.yml --------- Co-authored-by: Leo Cavalcante <lc@leocavalcante.com>
…eries SQL (#25) * Incluir padrão de sanitização de LIMIT e OFFSET em SqlSanitizer
…am valores maiúsculos e minúsculos (#26) * Fix para tratar OFFSET e LIMIT maiúsculos e minúsculos
* [3.1]Bumps dependencies (#5796) Co-authored-by: 李铭昕 <715557344@qq.com> * Upgrade hyperf packages to version `~3.1.0` (#5801) * Bumps `phpunit` to `10.x` (#5802) Co-authored-by: 李铭昕 <715557344@qq.com> * Remove redundant `setAccessible` methods (#5811) * Remove deprecated codes (#5812) * Removed the deprecated code for metric. (#5847) * Use `StrCache` instead of `Str` in special cases. (#5866) * [feat] Support buffer mechanism in standalone process of metric (#6030) Co-authored-by: 李铭昕 <715557344@qq.com> * Fix the bug that cannot stop the command from terminating gracefully (#6090) * Upgrade actions/checkout to v4 (#6159) * Adds `metric.enable_command_metric` switch (#6272) * Changed the `branch-alias` of all components to `3.1-dev`. (#6320) * Update grafana.json (#6531) * Added comment (#6607) * Format code by the latest `cs-fixer`. (#6617) * Added composer.json normalize support (#6887) * Format code (#6994) * Improve actions (#7088) * update github actions for all components. (#7090) --------- Co-authored-by: Deeka Wong <huangdijia@gmail.com> Co-authored-by: 李铭昕 <715557344@qq.com> Co-authored-by: yansongda <yansongda@users.noreply.github.com> Co-authored-by: Albert Chen <albert.cht@gmail.com> Co-authored-by: 宣言就是Siam <59419979@qq.com>
feat: adiciona sanitização do parâmetro external-id na URI
chore: Include BILL-UUID pattern in URI sanitization
upkeep: Altera sanitização do UUID para permitir prefixos dinâmicos
* feat: handle HttpException separately in MetricMiddleware Added a catch block for HttpException in MetricMiddleware to treat them as valid HTTP responses, updating request_status label accordingly before ending the timer. This prevents HttpExceptions from being counted as internal errors. * chore: remove close-pull-request and release workflows Deleted GitHub Actions workflows for closing pull requests and handling releases. These workflows are no longer needed or have been moved.
…atos de ID ECOSYSTEM (#32) upkeep: Atualiza sanitização para suportar IDs prefixados e novos formatos de ID ECOSYSTEM
#33) upkeep: Atualiza regex para suportar novos formatos de ID e adiciona código de prefixo ECOSYSTEM
|
Hi, this is a READ-ONLY repository, please submit your PR on the https://github.com/hyperf/hyperf repository. |
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.
URI Sanitization Enhancements
This pull request extends the URI sanitization functionality to include support for masking email addresses and phone numbers, ensuring that sensitive identifiers are properly hidden in sanitized URIs.
<EMAIL>and<PHONE-NUMBER>.Testing Improvements
Two new test cases were introduced to validate the new masking logic:
testSanitizePhoneNumber— verifies that phone numbers within URIs are correctly identified and replaced with the<PHONE-NUMBER>placeholder across multiple URI formats.testSanitizeEmail— ensures that email addresses in URIs are properly sanitized and replaced with the<EMAIL>placeholder, including cases with multiple occurrences.These additions help maintain consistency and privacy across all URI sanitization scenarios.