Hi!
I would like to share with you some interesting features you may not know (because added over time).
Any feedbacks are welcome!
1. Authentication
WUD allows, by default, anonymous access.
If you want to expose it publicly, it can be an issue (except if you handle authentication on your end with a Reverse Proxy for example).
Now you can directly configure authentication strategies in WUD (Basic Auth and Openid Connect are currently supported).
# Basic auth example
version: '3'
services:
whatsupdocker:
image: fmartinou/whats-up-docker
...
environment:
- WUD_AUTH_BASIC_JOHN_USER=john
- WUD_AUTH_BASIC_JOHN_HASH=$$apr1$$8zDVtSAY$$62WBh9DspNbUKMZXYRsjS/
- WUD_AUTH_BASIC_JANE_USER=jane
- WUD_AUTH_BASIC_JANE_HASH=$$apr1$$5iyu65pm$$m/6I35fjUT7.1CMnS2w9d1
- WUD_AUTH_BASIC_BOB_USER=bob
- WUD_AUTH_BASIC_BOB_HASH=$apr1$$aefKbZEa$$ZSA5Y3zv9vDQOxr283NGx/
# Openid Connect example with Auth0
version: '3'
services:
whatsupdocker:
image: fmartinou/whats-up-docker
...
environment:
- WUD_AUTH_OIDC_AUTH0_CLIENTID=21fdsf065dfsdf05616f
- WUD_AUTH_OIDC_AUTH0_CLIENTSECRET=rthjrtsd5640grtgfgh654
- WUD_AUTH_OIDC_AUTH0_DISCOVERY=https://dev-sdfsdf8t.us.auth0.com/.well-known/openid-configuration
2. Release notes links
Letās say that you know that Maria DB 10.4 changelog is published under
https://mariadb.com/kb/en/mariadb-1064-changelog.
So we can describe the release notes link by a string template https://mariadb.com/kb/en/mariadb-${major}${minor}${patch}-changelog
You can now define this template as a Docker label on your Container.
version: '3'
services:
mariadb:
image: mariadb:10.6.4
labels:
- wud.link.template=https://mariadb.com/kb/en/mariadb-$${major}$${minor}$${patch}-changelog
And triggers then will render the links
{
"id":"b46d2c68ef2b3fd87b2687da8d4c6d55cf45945f79748b869c831bbb215ca039",
"name":"nextcloud_db",
"watcher":"local",
"includeTags":"^\d+\.\d+\.\d+$",
"linkTemplate":"https://mariadb.com/kb/en/mariadb-${major}${minor}${patch}-changelog",
"image":{
"id":"sha256:992bce5ed7107642a27af59c2a2ddb7e589a44b639342b9501044511ab00aca0",
"registry":{
"url":"https://registry-1.docker.io/v2",
"name":"hub"
},
"name":"library/mariadb",
"tag":{
"value":"10.5.9",
"semver":true
},
"digest":{
"watch":false,
"repo":"sha256:36288c675a192bd0a8a99cd6ba0780e31df85f0bfd0cbb204837cd108be3d236"
},
"architecture":"amd64",
"os":"linux",
"created":"2021-04-24T00:32:46.309Z"
},
"updateAvailable":true,
"link":"https://mariadb.com/kb/en/mariadb-1059-changelog",
"result":{
"tag":"10.6.4",
"link":"https://mariadb.com/kb/en/mariadb-1064-changelog"
}
}
3. Timezone
WUD runs by default with UTC time (CRON, logsā¦).
If you prefer running it on your local timezone, just set on WUD the regular TZ environment variable
version: '3'
services:
whatsupdocker:
image: fmartinou/whats-up-docker
...
environment:
- TZ=Europe/Paris
4. Watch all containers except few ones
You want to watch for updates almost all your containers except few ones.?
This can be easily achieved with the following combination:
- Configure WUD to watch all containers by default (WUD_WATCHER_{watcher_name}_WATCHBYDEFAULT=true)
- Exclude the few containers from being watched by adding on them a
wud.watch=false
label
version: '3'
services:
mariadb:
image: mariadb:10.4.5
...
labels:
wud.watch=false