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

stacklok / minder / 10899488435
53%

Build:
DEFAULT BRANCH: main
Ran 17 Sep 2024 08:46AM UTC
Jobs 1
Files 252
Run time 1min
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

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>

17 of 96 new or added lines in 6 files covered. (17.71%)

2 existing lines in 2 files now uncovered.

13741 of 26053 relevant lines covered (52.74%)

43.26 hits per line

Jobs
ID Job ID Ran Files Coverage
1 10899488435.1 17 Sep 2024 08:46AM UTC 0
52.74
GitHub Action Run
Source Files on build 10899488435
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #10899488435
  • 052daf18 on github
  • Prev Build on main (#10881983317)
  • Next Build on main (#10900275267)
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