Glue Watchtower to your CI
  • C# 93.8%
  • Dockerfile 6.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Foxite bc6dd3e89d
All checks were successful
Build AuthenticatedGlue / build-and-push-image (push) Successful in 26s
Build AuthenticatedGlue / trigger-update (push) Successful in 1s
Update .forgejo/workflows/authenticatedglue.yml
2026-11-16 13:01:50 +00:00
.forgejo/workflows Update .forgejo/workflows/authenticatedglue.yml 2026-11-16 13:01:50 +00:00
AuthenticatedGlue cleanup 2026-11-06 16:51:00 +01:00
TestCallJwt upgrade to .net 10 2026-11-06 16:09:15 +01:00
WatchtowerGlue fixed a bug that has been there since the beginning (what) 2025-06-14 00:23:49 +02:00
.dockerignore authenticated glue 2025-04-12 21:49:16 +02:00
.gitignore ignore and untrack *.DotSettings.user 2025-07-24 21:39:37 +02:00
LICENSE Create LICENSE 2025-04-12 23:07:28 +02:00
README.md update watchtower link 2026-11-09 10:35:37 +00:00
WatchtowerGlue.sln authenticated glue 2025-04-12 21:49:16 +02:00

AuthenticatedGlue

Use in conjunction with Watchtower to automate your deployments.

AuthenticatedGlue is meant to be used in conjunction with the trigger-update workflow action. It authenticates all incoming requests using JWTs.

There are two flows to this, the OIDC flow (recommended) and JWT flow (legacy).

Environment variables

Key Description Example
Watchtower__Url The full URL that Watchtower is accessible from http://localhost:8080
Watchtower__Token The HTTP API token for Watchtower mytoken
Keys__Keys__* JWT flow: followed by a key id, the value should be the PEM-encoded certificate for that signing key. -----BEGIN CERTIFICATE-----\n...
Keys__Path JWT flow: path to a directory which contains key files, file name is equal to key ID (no extension) /path/to/keys
Oidc__Issuers__*__Issuer OIDC flow: with a numeric index for the trusted issuer, iss claim Oidc__Issuers__0__Issuer: https://git.foxite.dev/api/actions
Oidc__Issuers__*__DiscoveryDocument OIDC flow: with a numeric index for the trusted issuer, URL to discovery document https://git.foxite.dev/api/actions/.well-known/openid-configuration
Oidc__Issuers__*__RequiredAudience OIDC flow: with a numeric index for the trusted issuer, aud claim https://authenticatedglue.foxite.dev
Oidc__Issuers__*__RequiredScopes__* OIDC flow: with a numeric index for the trusted issuer and a claim name, required value for that claim Oidc__Issuers__0__Issuer__repository_owner: Foxite

Legacy glue

WatchtowerGlue is designed to be linked to a selfhosted registry container, which can be configured to call a webhook when images are pushed:

# /etc/docker/registry/config.yml
notifications:
  events:
    includereferences: true
  endpoints:
    - name: updater
      url: http://glue-container-name/
      timeout: 1500ms
      threshold: 1
      backoff: 0s
      ignore:
        # Doesn't work, but whatever.
        mediatypes:
          - application/octet-stream
        actions:
          - pull

WatchtowerGlue is not supposed to be accessible from the internet, as it does not authenticate its incoming requests.

Environment variables

Key Description
DEBOUNCE_MILLIS the amount of milliseconds to wait before making a request to Watchtower. Useful if your workflows push multiple images, to avoid triggering multiple updates. Default 5000
WATCHTOWER the full hostname including http:// or https:// that Watchtower is located at.
WATCHTOWER_TOKEN the authorization token configured in Watchtower's http api.