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

Enable piped authentication #21

Merged
merged 1 commit into from Jun 16, 2020
Merged

Enable piped authentication #21

merged 1 commit into from Jun 16, 2020

Conversation

nghialv
Copy link
Member

@nghialv nghialv commented Jun 16, 2020

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

NONE

@nghialv
Copy link
Member Author

nghialv commented Jun 16, 2020

/cc @stormcat24

@pipecd-bot pipecd-bot requested review from stormcat24 and removed request for gkuga June 16, 2020 02:07
Copy link
Collaborator

@pipecd-bot pipecd-bot left a comment

Choose a reason for hiding this comment

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

GO_LINTER

Some issues were detected while linting go source files in your changes.

@@ -39,7 +39,7 @@ type testPipedTokenVerifier struct {
pipedKey string
}

func (v testPipedTokenVerifier) Verify(projectID, pipedID, pipedKey string) error {
func (v testPipedTokenVerifier) Verify(ctx context.Context, projectID, pipedID, pipedKey string) error {
Copy link
Collaborator

Choose a reason for hiding this comment

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

pipedID is unused in Verify

@@ -39,7 +39,7 @@ type testPipedTokenVerifier struct {
pipedKey string
}

func (v testPipedTokenVerifier) Verify(projectID, pipedID, pipedKey string) error {
func (v testPipedTokenVerifier) Verify(ctx context.Context, projectID, pipedID, pipedKey string) error {
Copy link
Collaborator

Choose a reason for hiding this comment

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

ctx is unused in Verify

@@ -39,7 +39,7 @@ type testPipedTokenVerifier struct {
pipedKey string
}

func (v testPipedTokenVerifier) Verify(projectID, pipedID, pipedKey string) error {
func (v testPipedTokenVerifier) Verify(ctx context.Context, projectID, pipedID, pipedKey string) error {
Copy link
Collaborator

Choose a reason for hiding this comment

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

projectID is unused in Verify

@@ -50,7 +50,7 @@ type testPipedTokenVerifier struct {
pipedKey string
}

func (v testPipedTokenVerifier) Verify(projectID, pipedID, pipedKey string) error {
func (v testPipedTokenVerifier) Verify(ctx context.Context, projectID, pipedID, pipedKey string) error {
Copy link
Collaborator

Choose a reason for hiding this comment

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

ctx is unused in Verify

@@ -50,7 +50,7 @@ type testPipedTokenVerifier struct {
pipedKey string
}

func (v testPipedTokenVerifier) Verify(projectID, pipedID, pipedKey string) error {
func (v testPipedTokenVerifier) Verify(ctx context.Context, projectID, pipedID, pipedKey string) error {
Copy link
Collaborator

Choose a reason for hiding this comment

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

projectID is unused in Verify

@@ -50,7 +50,7 @@ type testPipedTokenVerifier struct {
pipedKey string
}

func (v testPipedTokenVerifier) Verify(projectID, pipedID, pipedKey string) error {
func (v testPipedTokenVerifier) Verify(ctx context.Context, projectID, pipedID, pipedKey string) error {
Copy link
Collaborator

Choose a reason for hiding this comment

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

pipedID is unused in Verify

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 25.50%. This pull request decreases coverage by -0.21%.

File Function Base Head Diff
pkg/app/api/pipedtokenverifier/verifier.go NewVerifier -- 0.00% +0.00%
pkg/app/api/pipedtokenverifier/verifier.go Verifier.Verify -- 0.00% +0.00%
pkg/app/api/pipedtokenverifier/verifier.go checkPiped -- 0.00% +0.00%
pkg/datastore/pipedstore.go pipedStore.GetPiped -- 0.00% +0.00%
pkg/datastore/projectstore.go projectStore.GetProject -- 0.00% +0.00%
pkg/rpc/rpcauth/interceptor.go PipedTokenUnaryServerInterceptor 100.00% 87.50% -12.50%
pkg/rpc/rpcauth/interceptor.go PipedTokenStreamServerInterceptor 100.00% 88.89% -11.11%

@stormcat24
Copy link
Contributor

/approve

@pipecd-bot
Copy link
Collaborator

APPROVE

This pull request is APPROVED by stormcat24.

Approvers can cancel the approval by writing /approve cancel in a comment. Any additional commits also will change this pull request to be not-approved.

@pipecd-bot pipecd-bot merged commit 7be914a into master Jun 16, 2020
@pipecd-bot pipecd-bot deleted the piped-auth branch June 16, 2020 02:17
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.

None yet

3 participants