Commit graph

47 commits

Author SHA1 Message Date
Felix Niederwanger db10f0dc96 Merge pull request 'Improve the readability' (#18) from doc into main
Reviewed-on: https://codeberg.org/grisu48/weblug/pulls/18
2023-09-23 09:00:28 +00:00
Felix Niederwanger 027426c4f7
Improve the readability
Change the wording and construction of the README file for better
readability.
2023-09-23 11:00:06 +02:00
Felix Niederwanger 166cebfce1 Merge pull request 'Add timeouts' (#14) from G114 into main
Reviewed-on: https://codeberg.org/grisu48/weblug/pulls/14
2023-09-23 08:59:53 +00:00
Felix Niederwanger 9d6af6fced Merge branch 'main' into G114 2023-09-23 08:59:09 +00:00
Felix Niederwanger 17877be294 Merge pull request 'Improve Taskfile' (#17) from taskfile into main
Reviewed-on: https://codeberg.org/grisu48/weblug/pulls/17
2023-09-04 19:04:26 +00:00
Felix Niederwanger fd67a9b8bf
Improve Taskfile
Adds dependencies and sources to Taskfile.

Signed-off-by: phoenix <felix@feldspaten.org>
2023-09-04 21:04:06 +02:00
Felix Niederwanger c0c11bf7c7 Merge pull request 'Add Taskfile' (#16) from taskfile into main
Reviewed-on: https://codeberg.org/grisu48/weblug/pulls/16
2023-09-04 18:52:25 +00:00
Felix Niederwanger c3347383a1
Add Taskfile
Adds a taskfile to compile weblug.

Signed-off-by: phoenix <felix@feldspaten.org>
2023-09-04 20:52:11 +02:00
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 cec58caffe Merge pull request 'Add possibility for priviledge drop' (#13) from priv1 into main
Reviewed-on: https://codeberg.org/grisu48/weblug/pulls/13
2023-06-06 08:50:57 +00: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 1bdcbd7904 Merge pull request 'Add env sanitation' (#10) from env into main
Reviewed-on: https://codeberg.org/grisu48/weblug/pulls/10
2023-05-31 09:52:49 +00:00
Felix Niederwanger 6a2e03ca5a Merge pull request 'Add caveats' (#12) from caveats into main
Reviewed-on: https://codeberg.org/grisu48/weblug/pulls/12
2023-05-28 09:50:50 +00:00
Felix Niederwanger 4c592cd1b7
Add caveats
Add usage caveats to the README file and manpage.
2023-05-28 11:48:18 +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 a4e21288db
Add spec file
Adds a spec file for building weblug in OBS.
2023-05-16 20:33:11 +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 a7f5abb57b Merge pull request 'Add man page' (#5) from doc into main
Reviewed-on: https://codeberg.org/grisu48/weblug/pulls/5
2023-04-27 11:37:50 +00:00
Felix Niederwanger ce7ac69371
Add man page
Adds a man page for weblug.

Signed-off-by: phoenix <felix@feldspaten.org>
2023-04-27 13:35:44 +02:00
Felix Niederwanger 77a47b5784
Typo
Fix an embarrasing typo.
2023-04-22 13:42:32 +02:00
Felix Niederwanger 02283cadbb Merge pull request 'Add http basic auth' (#3) from auth into main
Reviewed-on: https://codeberg.org/grisu48/weblug/pulls/3
2023-04-22 11:41:44 +00: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 bb075137cb
Improve the documentation
Improve the wording to make it more clear, that weblug can run rootless.
Also adjust the yaml layout.
2023-04-22 10:58:40 +02:00
Felix Niederwanger 5715b9c399
Rename weblug.yaml to weblug.yml
Make the nomenclature consistent.
2023-04-22 10:52:31 +02:00
Felix Niederwanger 6a94260c15 Merge pull request 'Add allow and block' (#2) from allow into main
Reviewed-on: https://codeberg.org/grisu48/weblug/pulls/2
2023-04-22 08:51:30 +00: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 919f7b5163
Add systemd documentation
Add a section about running weblug as systemd service.
2023-04-21 18:59:13 +02:00
Felix Niederwanger 041922b02f
Add systemd unit
Adds an example systemd unit.
2023-04-21 18:56:27 +02:00
Felix Niederwanger 35719a4976
Increase to go1.18 2022-12-29 16:12:52 +01:00
Felix Niederwanger add0cdb119
Improve documentation 2022-12-29 16:12:39 +01:00
Felix Niederwanger 495c14afcc Merge pull request 'Add testing' (#4) from test into master
Reviewed-on: #4
2022-12-29 15:04:40 +00: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 889f2e67cf Merge pull request 'Tidy and add json content type to replies' (#3) from tidy into master
Reviewed-on: #3
2022-12-29 14:12:13 +00: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 cef1c1540a Merge pull request 'Add uid and gid' (#2) from uid into master
Reviewed-on: #2
2022-12-29 13:59:46 +00: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 83047ef417
Add missing comment 2022-05-24 08:41:05 +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 f9706929d8
Add static recipe 2022-02-08 15:00:34 +01:00
Felix Niederwanger a5521a994d
Add usage instructions 2022-02-08 11:50:38 +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