~xenrox/ntfy-alertmanager

readme: Update explanation for resolved alerts

Priority is supported as well.
config: Fix test
9b4b135a — Jackson Chen 6 months ago
implement priority for resolved alerts
Send HTTP error code when failing to decode payload
Remove unnecessary Body.close() calls

The server will close those.
publish: Move fingerprint conversion to config parsing

We only really need to do it once, not every time a new message gets
published.
publish: Improve certificate fingerprint output
config.scfg: Add instructions to obtain cert fingerprint
publish: Improve certificate verification

Remove colons and convert to lower case. hex.EncodeToString outputs a
lower case string.
Add support for self signed ntfy certificates

A fingerprint can be specified in the configuration file. If it matches
the one from the server certificate, it will be accepted.

Closes: https://todo.xenrox.net/~xenrox/ntfy-alertmanager/22
Revert "ci: Don't fail on staticcheck"

This reverts commit 960ab04165e2cdf9f9c1876e440526fecb8a39a2.

The latest release fixes the issue.
ci: Don't fail on staticcheck
Upgrade go-utils

Maybe I should really set GOPROXY="direct"...
Add option for setting the logging format
Use Logger.With to create child loggers for the handlers

With that it will be easier to check on which endpoint a failure
happened.
Use "log/slog" for logging
functions: Use slices package for sorting

From Go 1.21 release notes[1]:
New slices package for common operations on slices of any element type.
This includes sorting functions that are generally faster and more
ergonomic than the sort package.

[1]: https://go.dev/blog/go1.21
Use slices.Contains from the standard library
Next