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 auth using webhook #127

Conversation

PuneetPunamiya
Copy link
Collaborator

@PuneetPunamiya PuneetPunamiya commented Mar 11, 2024

Adds auth using webhook :)

This patch adds a webhook controller which handles following validations

  • Checks if approval is required by the approver
  • Checks if username is mentioned in the approval task
  • Checks if user is updating the input for his name only

Signed-off-by: PuneetPunamiya ppunamiy@redhat.com

@PuneetPunamiya
Copy link
Collaborator Author

/test unit

@PuneetPunamiya
Copy link
Collaborator Author

/retest

@PuneetPunamiya PuneetPunamiya force-pushed the add-auth-using-webhook branch from 8a8d1ef to ce4e5ac Compare April 4, 2024 07:10
@PuneetPunamiya
Copy link
Collaborator Author

/retest

@PuneetPunamiya PuneetPunamiya force-pushed the add-auth-using-webhook branch from ce4e5ac to ff0c52a Compare April 4, 2024 08:09
cmd/webhook/main.go Outdated Show resolved Hide resolved
cmd/webhook/main.go Outdated Show resolved Hide resolved
cmd/webhook/main.go Outdated Show resolved Hide resolved
config/kubernetes/400-webhook-controller.yaml Outdated Show resolved Hide resolved
config/kubernetes/500-webhook.yaml Outdated Show resolved Hide resolved
config/openshift/500-webhook.yaml Outdated Show resolved Hide resolved
pkg/reconciler/webhook/controller.go Outdated Show resolved Hide resolved
pkg/reconciler/webhook/webhook.go Outdated Show resolved Hide resolved
pkg/reconciler/webhook/webhook.go Outdated Show resolved Hide resolved
pkg/reconciler/webhook/webhook.go Outdated Show resolved Hide resolved
@PuneetPunamiya PuneetPunamiya force-pushed the add-auth-using-webhook branch from 818f07a to 29ce138 Compare April 24, 2024 05:26
This patch adds a webhook controller which handles following validations

  - Checks if approval is required by the approver
  - Checks if username is mentioned in the approval task
  - Checks if user is updating the input for his name only

Signed-off-by: PuneetPunamiya <ppunamiy@redhat.com>
@PuneetPunamiya PuneetPunamiya force-pushed the add-auth-using-webhook branch from 29ce138 to 5f9bfae Compare April 24, 2024 07:08
Copy link

@jkandasa jkandasa left a comment

Choose a reason for hiding this comment

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

/lgtm

Copy link

openshift-ci bot commented Apr 24, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jkandasa, PuneetPunamiya

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:
  • OWNERS [PuneetPunamiya,jkandasa]

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

@openshift-merge-bot openshift-merge-bot bot merged commit 405fcbc into openshift-pipelines:main Apr 24, 2024
5 checks passed
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.

3 participants