• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / minder / 10899488435 / 1
53%
main: 53%

Build:
DEFAULT BRANCH: main
Ran 17 Sep 2024 08:46AM UTC
Files 252
Run time 5s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Sep 2024 08:36AM UTC coverage: 52.742% (-0.08%) from 52.819%
10899488435.1

push

github

web-flow
Add webhook secret bootstrap and verification for Gitlab (#4492)

Gitlab allows for setting up a shared secret for webhook authentication [1].
This shared secret is passed on via the `X-Gitlab-Token` header, and
it's the receiver's responsibility to verify it.

In our implementation, we take the secret from Gitlab's provider
configuration (it'll be a secret in k8s), append the unique identifier
we create for the webhook, and then apply sha 512. This ensures that we
have a section that's secret, while not passing in the actual secret to
Gitlab. It also ensures that if a secret token get compromised on the
gitlab side, it'll only be applicable to a single entity.

In your local configuration, this would look similar to this:

```
provider:
  gitlab:
      client_id: "XXXX"
      client_secret: "XXXX"
      redirect_uri: "http://localhost:8080/api/v1/auth/callback/gitlab"
      webhook_secret: <A SECRET GOES HERE>
      scopes:
        - api
        - read_api
        - read_repository
        - write_repository
        - read_registry
        - write_registry
        - openid
        - profile
        - email
```

[1] https://docs.gitlab.com/ee/user/project/integrations/webhooks.html#create-a-webhook

Signed-off-by: Juan Antonio Osorio <ozz@stacklok.com>

13741 of 26053 relevant lines covered (52.74%)

43.26 hits per line

Source Files on job 10899488435.1
  • Tree
  • List 0
  • Changed 16
  • Source Changed 5
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 10899488435
  • 052daf18 on github
  • Prev Job for on main (#10881983317.1)
  • Next Job for on main (#10900275267.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc