There should be a method to allow dynamic injection of HTTP notification headers for notifications. This should be via the CLI, and via the configuration file, using sane path scheme.
http:ntfy:url:https://ntfy.domain.tld/topicmethod:POSTheaders:Content-Type:application/jsonPriority:maxAuthorization:needs to be generated dynamically
On the CLI, the following flag should be global:
--notificationHttpHeaderOverrides "ntfy.Authorization=$(command to generate authorization header)"
The structure of the data is as follows:
"[id].headerKey=headerValue"
External directive support could also be added to the notifications.http.[id].Headers object.
There should be a method to allow dynamic injection of HTTP notification headers for notifications. This should be via the CLI, and via the configuration file, using sane path scheme.
```yaml
http:
ntfy:
url: https://ntfy.domain.tld/topic
method: POST
headers:
Content-Type: application/json
Priority: max
Authorization: needs to be generated dynamically
```
On the CLI, the following flag should be global:
```
--notificationHttpHeaderOverrides "ntfy.Authorization=$(command to generate authorization header)"
```
The structure of the data is as follows:
```
"[id].headerKey=headerValue"
```
External directive support could also be added to the `notifications.http.[id].Headers` object.
CyberShell
changed title from Allow dynamic injection of HTTP notification headers for notifications to Add dynamic injection of HTTP headers for notifications2025-04-08 17:13:25 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
There should be a method to allow dynamic injection of HTTP notification headers for notifications. This should be via the CLI, and via the configuration file, using sane path scheme.
On the CLI, the following flag should be global:
The structure of the data is as follows:
External directive support could also be added to the
notifications.http.[id].Headersobject.Allow dynamic injection of HTTP notification headers for notificationsto Add dynamic injection of HTTP headers for notifications