Skip to content
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

TT-9228 update regex to blur mongo credentials #686

Merged

Conversation

sredxny
Copy link
Contributor

@sredxny sredxny commented Jul 24, 2023

Description

Updated the regex in charge of matching the mongo connection strings, so it receives in the srv format and the blurred is done in the user:pass section

Related Issue

https://tyktech.atlassian.net/browse/TT-9228

Motivation and Context

How This Has Been Tested

  • Added unit test
  • Validated against regex validator

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side). If pulling from your own
    fork, don't request your master!
  • Make sure you are making a pull request against the master branch (left side). Also, you should start
    your branch off our latest master.
  • My change requires a change to the documentation.
    • If you've changed APIs, describe what needs to be updated in the documentation.
  • I have updated the documentation accordingly.
  • Modules and vendor dependencies have been updated; run go mod tidy && go mod vendor
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • Check your code additions will not fail linting checks:
    • go fmt -s
    • go vet

@sredxny sredxny merged commit 1a6d80b into master Jul 26, 2023
14 of 16 checks passed
@sredxny sredxny deleted the TT-9228-bugfix/do-not-expose-dns-seed-list-connection branch July 26, 2023 00:06
@sredxny
Copy link
Contributor Author

sredxny commented Jul 26, 2023

/release to release-1.8

@tykbot
Copy link

tykbot bot commented Jul 26, 2023

Working on it! Note that it can take a few minutes.

tykbot bot pushed a commit that referenced this pull request Jul 26, 2023
@tykbot
Copy link

tykbot bot commented Jul 26, 2023

@sredxny Succesfully merged PR

buger added a commit that referenced this pull request Jul 26, 2023
tbuchaillot added a commit that referenced this pull request Aug 29, 2023
* fixing SQL Aggregate indexes

* TT-9490 change name from APISchema to ApiSchema (#681)

* change name from APISchema to ApiSchema

* update regex to blur mongo credentials (#686)

* updated prometheus to 1.16 (#688)

* Auto generated from templates by gromit (#692)

Co-authored-by: Gromit <policy@gromit>

* [TT-9464] Updating storage to v1.0.7 (#689)

* Updating storage to v1.0.7

* go mod tidy

* fixing SQL Aggregate indexes

* removing unused func

* linting

* adding waiting time for sqlite

* using background only on postgres

* adding comment

* updating comments

* restoring linter.yaml

* adding index created on non existing table, not background scenario

* adding dbType var from config

* taking care of side scenario

* controlling bg chan

* adding omit_index_creation

---------

Co-authored-by: Sredny M <sredny.buitrago@gmail.com>
Co-authored-by: Alok G Singh <alephnull@hcoop.net>
Co-authored-by: Gromit <policy@gromit>
Co-authored-by: Matias <83959431+mativm02@users.noreply.github.com>
tykbot bot pushed a commit that referenced this pull request Aug 29, 2023
* fixing SQL Aggregate indexes

* TT-9490 change name from APISchema to ApiSchema (#681)

* change name from APISchema to ApiSchema

* update regex to blur mongo credentials (#686)

* updated prometheus to 1.16 (#688)

* Auto generated from templates by gromit (#692)

Co-authored-by: Gromit <policy@gromit>

* [TT-9464] Updating storage to v1.0.7 (#689)

* Updating storage to v1.0.7

* go mod tidy

* fixing SQL Aggregate indexes

* removing unused func

* linting

* adding waiting time for sqlite

* using background only on postgres

* adding comment

* updating comments

* restoring linter.yaml

* adding index created on non existing table, not background scenario

* adding dbType var from config

* taking care of side scenario

* controlling bg chan

* adding omit_index_creation

---------

Co-authored-by: Sredny M <sredny.buitrago@gmail.com>
Co-authored-by: Alok G Singh <alephnull@hcoop.net>
Co-authored-by: Gromit <policy@gromit>
Co-authored-by: Matias <83959431+mativm02@users.noreply.github.com>

(cherry picked from commit 657436f)
buger added a commit that referenced this pull request Aug 29, 2023
[TT-9468] New SQL Aggregate indexes (#694)

* fixing SQL Aggregate indexes

* TT-9490 change name from APISchema to ApiSchema (#681)

* change name from APISchema to ApiSchema

* update regex to blur mongo credentials (#686)

* updated prometheus to 1.16 (#688)

* Auto generated from templates by gromit (#692)

Co-authored-by: Gromit <policy@gromit>

* [TT-9464] Updating storage to v1.0.7 (#689)

* Updating storage to v1.0.7

* go mod tidy

* fixing SQL Aggregate indexes

* removing unused func

* linting

* adding waiting time for sqlite

* using background only on postgres

* adding comment

* updating comments

* restoring linter.yaml

* adding index created on non existing table, not background scenario

* adding dbType var from config

* taking care of side scenario

* controlling bg chan

* adding omit_index_creation

---------

Co-authored-by: Sredny M <sredny.buitrago@gmail.com>
Co-authored-by: Alok G Singh <alephnull@hcoop.net>
Co-authored-by: Gromit <policy@gromit>
Co-authored-by: Matias <83959431+mativm02@users.noreply.github.com>
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.

3 participants