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

Merging to release-5-lts: [TT-10109] Fix policy lookup map distortion (#5730) #5744

Conversation

buger
Copy link
Member

@buger buger commented Nov 6, 2023

TT-10109 Fix policy lookup map distortion (#5730)

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

The policy lookup map is distorted by ApplyPolicies function so it
ends up wrong path base permission values in the session object.

See how it gets the original policy object and changes values inside it:

ar := v

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

The policy lookup map is distorted by `ApplyPolicies` function so it
ends up wrong path base permission values in the session object.

See how it gets the original policy object and changes values inside it:
https://github.com/TykTechnologies/tyk/blob/6c6b1535921543d2e2f34d65bbba7d67baffb547/gateway/middleware.go#L493

(cherry picked from commit d18ea51)
@buger buger enabled auto-merge (squash) November 6, 2023 17:47
Copy link

sweep-ai bot commented Nov 6, 2023

Apply Sweep Rules to your PR?

  • Apply: All new business logic should have corresponding unit tests.
  • Apply: Refactor large functions to be more modular.

Copy link
Contributor

github-actions bot commented Nov 6, 2023

API Changes

no api changes detected

Copy link

sonarqubecloud bot commented Nov 6, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 1 Bug
Vulnerability A 0 Vulnerabilities
Security Hotspot E 5 Security Hotspots
Code Smell A 14 Code Smells

74.2% 74.2% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@buger buger merged commit 1cf05fb into release-5-lts Nov 6, 2023
@buger buger deleted the merge/release-5-lts/d18ea51248b45909c4ed77d271325365c3d84067 branch November 6, 2023 18:03
@buger
Copy link
Member Author

buger commented Nov 6, 2023

API tests result: success
Branch used: refs/pull/5744/merge
Commit:
Triggered by: pull_request (@buger)
Execution page

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.

2 participants