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

Fix: destination cache vulnerablity #1770

Merged
merged 4 commits into from
Nov 5, 2021
Merged

Fix: destination cache vulnerablity #1770

merged 4 commits into from
Nov 5, 2021

Conversation

jjtang1985
Copy link
Contributor

@jjtang1985 jjtang1985 commented Nov 5, 2021

  • Switch the default isolation strategy from IsolationStrategy.Tenant to IsolationStrategy.Tenant_User, when setting useCache to true for destination lookup functions like getDestination.
  • Disable destination cache, when the JWT does not contain necessary information. For example, when using IsolationStrategy.Tenant_User, the JWT has to contain both tenant id and user id.

Closes SAP/cloud-sdk-backlog#438
Closes SAP/cloud-sdk-backlog#439

Copy link
Contributor

@FrankEssenberger FrankEssenberger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jjtang1985 jjtang1985 marked this pull request as ready for review November 5, 2021 13:50
@jjtang1985 jjtang1985 enabled auto-merge (squash) November 5, 2021 13:57
@jjtang1985 jjtang1985 merged commit fe1ba94 into main Nov 5, 2021
@jjtang1985 jjtang1985 deleted the fix-dest-cache-vul branch November 5, 2021 14:05
marikaner pushed a commit that referenced this pull request Nov 8, 2021
* cherry pick + remove deprecated functions

* missing changelog

* fix tests

* fix tests 2

Co-authored-by: d068544 <frank.essenberger@sap.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.

None yet

2 participants