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

feat: add credential provider #55

Merged
merged 2 commits into from
Jan 24, 2023
Merged

feat: add credential provider #55

merged 2 commits into from
Jan 24, 2023

Conversation

pgautier404
Copy link
Contributor

No description provided.

@pgautier404 pgautier404 force-pushed the add-credential-provider branch 2 times, most recently from d66004a to 2e075b8 Compare January 23, 2023 22:43
@pgautier404 pgautier404 force-pushed the add-credential-provider branch from 2e075b8 to 182738d Compare January 23, 2023 22:48
@pgautier404 pgautier404 marked this pull request as ready for review January 23, 2023 22:49
func NewUnaryDataGrpcManager(request *models.DataGrpcManagerRequest) (*DataGrpcManager, momentoerrors.MomentoSvcErr) {
config := &tls.Config{
InsecureSkipVerify: false,
}
endpoint := fmt.Sprint(request.CredentialProvider.GetCacheEndpoint(), CachePort)
Copy link
Member

Choose a reason for hiding this comment

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

nit but would maybe write this w/ fmt.SprintF() instead keep port an Int like

const CachePort = 443
func NewUnaryDataGrpcManager(request *models.DataGrpcManagerRequest) (*DataGrpcManager, momentoerrors.MomentoSvcErr) {
...
  endpoint := fmt.Sprintf("%s:%d", request.CredentialProvider.GetCacheEndpoint(), CachePort)

Copy link
Member

@eaddingtonwhite eaddingtonwhite left a comment

Choose a reason for hiding this comment

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

@pgautier404 this looks good to me for first step getting this in. Nice work!

@pgautier404 pgautier404 merged commit 9155ba3 into main Jan 24, 2023
@pgautier404 pgautier404 deleted the add-credential-provider branch January 24, 2023 00:11
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