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

Add caching to authorization #884

Merged
merged 3 commits into from
Jul 21, 2020
Merged

Conversation

jmelinav
Copy link
Collaborator

@jmelinav jmelinav commented Jul 15, 2020

What this PR does / why we need it:
Currently all requests are authorized against an external server, as this can cause latency issues in serving, Caching the authorization for a short span of time will avoid external call on subsequent requests.
Which issue(s) this PR fixes:

related to #823

Does this PR introduce a user-facing change?:No

Project level authorization access requests are now cached.

@feast-ci-bot
Copy link
Collaborator

Hi @jmelinav. Thanks for your PR.

I'm waiting for a feast-dev member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@jmelinav jmelinav force-pushed the cache-auth branch 2 times, most recently from 8be26e2 to 1d0dbe4 Compare July 17, 2020 17:20
@jmelinav
Copy link
Collaborator Author

/retest

@feast-ci-bot
Copy link
Collaborator

@jmelinav: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@jmelinav
Copy link
Collaborator Author

/test ?

@jmelinav
Copy link
Collaborator Author

/test java

@jmelinav jmelinav changed the title WIP: Add Caching to authorization. Add Caching to authorization. Jul 17, 2020
@jmelinav
Copy link
Collaborator Author

/assign @davidheryanto

@mrzzy
Copy link
Collaborator

mrzzy commented Jul 18, 2020

/ok-to-test

@jmelinav
Copy link
Collaborator Author

/test test-end-to-end-auth

auth/pom.xml Outdated
@@ -91,6 +95,17 @@
<artifactId>jsr305</artifactId>
<version>3.0.2</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
Copy link
Member

Choose a reason for hiding this comment

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

Can we fix the formatting here please?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Do you guys use any specific formatter? I remember it happened in my last PR too.

@dr3s
Copy link
Collaborator

dr3s commented Jul 21, 2020

/lgtm

@feast-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jmelinav, woop

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@woop
Copy link
Member

woop commented Jul 21, 2020

/lgtm

@woop woop changed the title Add Caching to authorization. Add caching to authorization Jul 21, 2020
@feast-ci-bot feast-ci-bot merged commit 7753faf into feast-dev:master Jul 21, 2020
@jmelinav jmelinav deleted the cache-auth branch July 29, 2020 17:20
@mrzzy mrzzy mentioned this pull request Aug 2, 2020
pyalex pushed a commit that referenced this pull request Aug 2, 2020
* Cache authorization.

* fix formatting, removed default key generator and added a bean.

* fix rebase errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants