Felix Niederwanger
03cb62aba7
Add timeouts
...
Adds read and write timeout configuration settings and allows to
configure a maximum acceptable header size.
2023-06-06 16:33:00 +02:00
Felix Niederwanger
121ab40b02
Add possibility for priviledge drop
...
Adds the `uid` and `gid` settings in the main configuration file, which
allows weblug to run under a unprivileged user account. This comes with
the limitation, that unless the program runs as root, custom webhook
`uid/gid` settings are not possible.
2023-06-05 17:00:30 +02:00
Felix Niederwanger
46418bcf3a
Add env sanitation
...
Sanitize the environment variables when running webhooks and add ability
to add custom environment variables per webhook.
2023-05-28 11:44:42 +02:00
Felix Niederwanger
9da74d1f75
Remove simple
...
Remove the word simple, which doesn't add any value.
2023-05-06 17:30:53 +02:00
Felix Niederwanger
a6e644d238
Add http basic auth
...
Adds the `basic_auth` section in a webhook that allows to define a
required username/password for being able to access a given webhook.
Signed-off-by: phoenix <felix@feldspaten.org>
2023-04-22 13:41:14 +02:00
Felix Niederwanger
213135f6d7
Add check for empty address
...
Adds a check for an empty source address. This should in principle never
happen, but this additional check will ensure, that in such cases we
dont' allow something that should be blocked.
2023-04-22 10:59:06 +02:00
Felix Niederwanger
dfb7b3603a
Add allow and blocked to yaml definitions
...
Allow to define a Allow and Block list of IP addresses per web hook.
2023-04-22 10:49:48 +02:00
Felix Niederwanger
a9cda6f310
Refactor hook
...
Refactor hook into its own go file.
2023-04-22 10:23:03 +02:00
Felix Niederwanger
d7589937b6
Add testing
...
Adds a blackbox test and fixes some discovered bugs in the program
argument handling. Also adds the `Output` option to web hooks.
2022-12-29 16:03:11 +01:00
Felix Niederwanger
c52fc3fbb5
Tidy and add json content type to replies
...
So some minor tweaks and add the content type application/json to the
replies.
2022-12-29 15:11:18 +01:00
Felix Niederwanger
4526f00f7b
Add uid and gid
...
Add the user and group id to any command that is being executed.
2022-12-29 14:58:24 +01:00
Felix Niederwanger
7e56a15352
Fix bind setting
...
The bind setting from the yaml file was not read. This commit fixes this
issue.
2022-08-30 11:51:02 +02:00
Felix Niederwanger
09222fa898
Return 504 on concurenncy limit reached
...
Instead of queuing new webhooks we return now 503 errors when the queue
is full.
2022-02-08 16:27:26 +01:00
Felix Niederwanger
fd9bb94c99
Add concurrency setting
...
Allow concurrency limit on webhooks
2022-02-08 15:45:03 +01:00
Felix Niederwanger
2cb91cadb2
Add program argument handling
2022-02-08 11:50:27 +01:00
Felix Niederwanger
1b63df4e4e
First prototype
2022-02-08 11:25:22 +01:00
Felix Niederwanger
cd9aabb92b
Initial commit
2022-02-08 09:58:24 +01:00