tektoncd / triggers

Event triggering with Tekton!
Apache License 2.0
552 stars 416 forks source link

Event listener no able to detect the changes from the bitbucket server #1597

Closed tppalani closed 10 months ago

tppalani commented 1 year ago

Expected Behavior

  1. RBAC configured
  2. Trigger Template configured
  3. Event listener configured
  4. Trigger binding configured
  5. Ingress configured
  6. Webhook added inside the bitbucket repository status is (successful calls 2/2 (100%))

Actual Behavior

I have applied all the required files and i followed this page as sample https://github.com/dlorenc/triggers/tree/master/examples/bitbucket. but when I'm checking logs from event listener i can see following error.

{"severity":"info","timestamp":"2023-05-27T12:40:50.103Z","logger":"eventlistener","caller":"sink/sink.go:418","message":"
interceptor stopped trigger processing: rpc error: code = InvalidArgument desc = no X-Hub-Signature header set","
eventlistener":"bitbucket-event-listener","namespace":"devops-cost-triggers","/triggers-eventid":"4262499e-5389-49f9-8593-4258aee73629",
"eventlistenerUID":"e36d7ea0-1e4d-4759-b4c7-49a1feb85cea","/triggers-eventid":"4262499e-5389-49f9-8593-4258aee73629","
/trigger":"bitbucket-trigger-binding"}

Steps to Reproduce the Problem

---
apiVersion: triggers.tekton.dev/v1alpha1
kind: EventListener
metadata:
  name: bitbucket-event-listener
  namespace: devops-cost-triggers
spec:
  serviceAccountName: tekton-triggers-example-sa
  triggers:
    - name: bitbucket-trigger-binding
      interceptors:
        - ref:
            name: bitbucket
          params:
            - name: secretRef
              value: 
                secretName: tekton-triggers-example-sa
                secretKey: secretToken
            - name: eventTypes
              value:
                - repo:refs_changed
      bindings:
       - ref: bitbucket-trigger-binding-abb
      template:
        ref: bitbucket-trigger-template-abb
---
apiVersion: triggers.tekton.dev/v1alpha1
kind: TriggerBinding
metadata:
  name: bitbucket-trigger-binding-abb
  namespace: devops-cosr-triggers
spec:
  params:
  - name: gitrevision
    value: $(body.head_commit.id)
  - name: gitrepositoryurl
    value: $(body.repository.url)
  - name: contenttype
    value: $(header.Content-Type)
---

Additional Info

tekton-robot commented 1 year ago

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale with a justification. Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with /close with a justification. If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/lifecycle stale

Send feedback to tektoncd/plumbing.

tekton-robot commented 11 months ago

Stale issues rot after 30d of inactivity. Mark the issue as fresh with /remove-lifecycle rotten with a justification. Rotten issues close after an additional 30d of inactivity. If this issue is safe to close now please do so with /close with a justification. If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/lifecycle rotten

Send feedback to tektoncd/plumbing.

tekton-robot commented 10 months ago

Rotten issues close after 30d of inactivity. Reopen the issue with /reopen with a justification. Mark the issue as fresh with /remove-lifecycle rotten with a justification. If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/close

Send feedback to tektoncd/plumbing.

tekton-robot commented 10 months ago

@tekton-robot: Closing this issue.

In response to [this](https://github.com/tektoncd/triggers/issues/1597#issuecomment-1778486705): >Rotten issues close after 30d of inactivity. >Reopen the issue with `/reopen` with a justification. >Mark the issue as fresh with `/remove-lifecycle rotten` with a justification. >If this issue should be exempted, mark the issue as frozen with `/lifecycle frozen` with a justification. > >/close > >Send feedback to [tektoncd/plumbing](https://github.com/tektoncd/plumbing). Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.