Commit Graph

685 Commits

Author SHA1 Message Date
sethlivy
bdb503db41 Removed 'default', the package. 2022-05-02 10:03:30 -05:00
Jappie Klooster
43eb85fb05
Merge pull request #255 from sethlivy/master
Reorganized most .hs files into new /src directory.
2022-04-30 21:37:07 -04:00
sethlivy
9cb4b11788 Updated changelog. 2022-04-30 19:24:56 -05:00
sethlivy
1ac331e317 Moved most .hs files into new /src directory. 2022-04-30 17:33:32 -05:00
Jappie Klooster
2c0954268b
Merge pull request #253 from joyfulmantis/master
Better error messages for missing sudo when attempting psql connection
2022-04-27 15:57:01 -04:00
Nathan Maxson
64c218a490 Better error messages for no sudo when attempting psql connection 2022-04-27 21:33:36 +03:00
Jappie Klooster
a06b750771
Merge pull request #252 from SupercedeTech/always-restart-keter
change nix config to always restart keter
2022-04-21 17:34:32 -04:00
Jappie Klooster
13c95507e9
Merge pull request #251 from SupercedeTech/add-incoming-to-ci-builds
Add incoming to ci builds
2022-04-21 17:34:19 -04:00
Jappie Klooster
e83ae1851b change nix config to always restart keter
under load this becomes an issue.
I'm unsure why it crashed, most likely systemd decided
to send it a sigterm signal.
This is the config nginx uses as well.

Update changelog
2022-04-21 17:33:53 -04:00
Jappie Klooster
60a61021f9 add building of incoming to CI
delete threaddelay

Update changelog
2022-04-21 17:32:05 -04:00
Jappie Klooster
bfc4d23b30
Merge pull request #250 from SupercedeTech/squash-proxy-excption
Squash proxy exceptions if they occur
2022-04-21 12:33:46 -04:00
Jappie Klooster
3e4d4e775e Squash proxy exceptions if they occur
serves a default or custom error response if it occurs.
Emits the exception to the log.
2022-04-21 12:21:54 -04:00
Jappie Klooster
764e17a6f7
Merge pull request #249 from SupercedeTech/add-status-codes-to-hosts
Add proper status codes to error host responses
2022-04-20 18:25:28 -04:00
Jappie Klooster
2846244ef1 Add proper status codes to error host responses
We got a dedicated status code for this (502).
If a host is not found we now return 404.
Before this was 200 status codes (ok, which it's not)
pages even though hosts were missing!

This should make writing tests easier and make
monitoring systems more alert.

Update changelog

bump version
2022-04-20 18:15:08 -04:00
Jappie Klooster
df54f2331a
Merge pull request #248 from SupercedeTech/get-rid-of-omnious-warning
Add better description in cabal file instead of an omnious warning
2022-04-20 14:22:52 -04:00
Jappie Klooster
01f2d6c1e2 Add better description in cabal file instead of an omnious warning
cleanup changelog
2022-04-20 14:21:38 -04:00
Jappie Klooster
db35d58acb
Merge pull request #247 from SupercedeTech/fix-header-response-as-well
Escape X-Forwarded-Host header as well
2022-04-19 13:06:55 -04:00
Jappie Klooster
b875b960ad Escape X-Forwarded-Host header as well
It seems unlikely an attacker will actually manage
to insert a line break at that point.
But since this isn't a common code path.
We may as well escape it for HTML.
2022-04-19 12:58:15 -04:00
Jappie Klooster
900ea235be Update changelog to be more specific about xss issue
I probably motivated some people to upgrade to well.
(although they should upgrade anyway).
2022-04-19 11:10:50 -04:00
Jappie Klooster
435f06a440
Merge pull request #246 from SupercedeTech/fix-xss-security-issue
Fix potential xss issue in missing host response
2022-04-19 09:36:22 -04:00
Jappie Klooster
d41f369792 Fix potential xss issue in missing host response
The host field can be spoofed,
which allows an xss attack.
Eg you can put a bunch of javascript
(or whatever html) in the hostfield and
response to trick the user.
These chagnes make that impossible.
2022-04-19 09:17:31 -04:00
Jappie Klooster
9a8da0028a Fix haddock build 2022-03-02 20:40:56 +01:00
Jappie Klooster
304d6c765e Bump dev version 2022-03-02 20:38:29 +01:00
Jappie Klooster
7a45c9c293
Merge pull request #244 from SupercedeTech/add-welcome-to-keter-config
Add config to replace welcome to keter screen with custom page
2022-03-02 20:24:24 +01:00
Jappie Klooster
ac34050820 comment out the custom host files 2022-03-02 20:22:10 +01:00
Jappie Klooster
9d4af0dd03 use config options as tags 2022-03-02 20:18:18 +01:00
Jappie Klooster
959771a1e1 Split up docs better 2022-03-02 20:18:10 +01:00
Jappie Klooster
3916e631c2 Change it so that we load the response files first, before booting 2022-03-02 20:08:56 +01:00
Jappie Klooster
504ed7155a Update changelog, document missing options 2022-03-02 17:26:14 +01:00
Jappie Klooster
3b8d0571e1 add phony 2022-03-02 17:25:51 +01:00
Jappie Klooster
efb422f941 fix spell error 2022-03-02 16:54:19 +01:00
Jappie Klooster
0ba7f76dbd add implementation for missing host/ unkown host 2022-03-02 16:10:24 +01:00
Jappie Klooster
b40c1ad54b add config fields 2022-03-02 15:45:58 +01:00
Jappie Klooster
c880b31609
Merge pull request #242 from SupercedeTech/add-nix-shell
Add nix shell
2022-03-02 15:38:40 +01:00
Jappie Klooster
467983d3c1 add workflow for nix 2022-03-02 15:16:10 +01:00
Jappie Klooster
9457e26a75 Add nix shell
This provides a basic nix shell with cabal
and a pin.
It's pretty much cabal2nix . --shell
2022-03-02 15:10:59 +01:00
Jappie Klooster
d0e48f3fe2 Make specific mention to YESOD_PORT in error message
This should make using keter easier for people coming
from the yesod book.
2022-02-22 12:13:54 +01:00
Jappie Klooster
9ef90f1d68 Improve ensure alive error message
Add changelog
2022-02-22 09:44:33 +01:00
Jappie Klooster
8a81ba6023 Add note on secret script 2022-02-21 19:50:30 +01:00
Jappie Klooster
90cae1c037
Merge pull request #235 from SupercedeTech/nixos-support
Nixos support
2022-02-21 19:01:23 +01:00
Jappie Klooster
e42730c0dc add description for nix and for debugging port
update to later version
2022-02-21 19:00:25 +01:00
Jappie Klooster
2465756f78 Add module for nixos support 2022-02-21 18:19:59 +01:00
Jappie Klooster
3cd87a528c Bump versions for master 2022-02-20 14:05:04 +01:00
Jappie Klooster
437ab7bfa9
Merge pull request #233 from SupercedeTech/fixup-versions
Fixup versions in changelog
2022-02-20 14:00:15 +01:00
Jappie Klooster
6bf4ce5f68 Fixup versions in changelog
Group the aeson key changes under 1.7
I think it's best to keep these versions
simple, since we added a module it should
be a minor release.

Fix markdown formatting
2022-02-20 13:58:41 +01:00
Jappie Klooster
7c4bf5370b
Merge pull request #232 from jeongoon/master
minor tweaks for aeson 2
2022-02-20 13:31:01 +01:00
Myoungjin JEON
e4412124bf solve older dependecies in FilePath.hs: remove importi Data.Aeson.Key. 2022-02-20 23:01:20 +11:00
Myoungjin JEON
dfb882794f minor support for aeson 2 2022-02-20 20:39:24 +11:00
Myoungjin JEON
ed520977be minor support for aeson 2 2022-02-20 20:38:05 +11:00
Myoungjin JEON
64a141b714 Merge branch 'master' of github.com:jeongoon/keter 2022-02-20 20:33:58 +11:00