-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Authentication Support for Java & Go SDKs #971
Conversation
/retest |
*/ | ||
public class GoogleAuthCredentials extends CallCredentials { | ||
private final IdTokenCredentials credentials; | ||
private static final String BEARER_TYPE = "Bearer"; | ||
private static final Metadata.Key<String> AUTHORIZATION_METADATA_KEY = | ||
Metadata.Key.of("Authorization", ASCII_STRING_MARSHALLER); | ||
|
||
/** | ||
* Constructa new GoogleAuthCredentials with given options. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
infra/scripts/test-end-to-end.sh
Outdated
@@ -5,11 +5,13 @@ set -o pipefail | |||
[[ $1 == "True" ]] && ENABLE_AUTH="true" || ENABLE_AUTH="false" | |||
echo "Authenication enabled : ${ENABLE_AUTH}" | |||
|
|||
test -z ${GOOGLE_APPLICATION_CREDENTIALS} && GOOGLE_APPLICATION_CREDENTIALS="/etc/gcloud/service-account.json" | |||
test -z ${GOOGLE_APPLICATION_CREDENTIALS} && GOOGLE_APPLICATION_CREDENTIALS="" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we clearing that configuration? Isn't that a default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
install_gcloud_sdk()
tries to activate service account credential if this variable is set. Under the current .prow/config.yaml
test-end-to-end
does not expose the service account key.json and the end to end test fails because it cant find key.json. I added a if conditional to install_gcloud_sdk()
to check this variable is set before trying to activate service account credentials.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted.
Reverted the E2E test changes for another PR. |
…entials as they are to become user facing apis.
…s implementation.
…horization instead of authentication options.
…pcMessageInterceptor
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mrzzy, pyalex 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 |
/lgtm |
What this PR does / why we need it:
Implements support for authentication to Go and Java SDKs, which is required for interacting with a authentication enabled Feast Serving:
Continuation of #504
Which issue(s) this PR fixes:
Fixes #950
Does this PR introduce a user-facing change?: