Commit Graph

669 Commits

Author SHA1 Message Date
Maksym Ivanov
3e6f209ca1
add changelog entry 2023-11-10 10:32:54 +01:00
Maksym Ivanov
dac66e1688
feat: add config "healthcheck-path" to respond 200 on
AWS LB TG healthcheck cannot currently be made to send any custom Host
header. It always sends the target's (keter's) IP address in there.

Together with vhosting, this makes it impossible to healthcheck
individual webapps running under keter.

Have a partial remedy with a /keter-health endpoint, that if enabled
always responds with status 200.
2023-11-10 10:15:57 +01:00
Jappie Klooster
cbac18cc45
Merge pull request #282 from zoominsoftware/toupstream/fix-confused-config-keys
Fix confused config keys
2023-11-03 17:01:00 +01:00
Maksym Ivanov
afa3d5af11
address Code Review feedback, add changelog 2023-11-03 16:41:51 +01:00
Maksym Ivanov
9a2cfa2672
undo the same mistake I'm fixing, having committed it myself 2023-11-03 15:30:11 +01:00
Maksym Ivanov
709bbc38da
refactor: try doing without Tagged - duplicate constants again 2023-11-03 15:05:52 +01:00
Maksym Ivanov
335e19ed1b
refactor: reimplement Tagged, drop dependency 2023-11-03 11:53:11 +01:00
Maksym Ivanov
5af68c7a89
fix: instead of failing, log warning and use fallback 2023-11-03 08:51:46 +01:00
Maksym Ivanov
2f897977d5
fix: confused "unknown" VS "missing" -host-response-file configs
The fields of KeterConfig were being parsed from Yaml with a "flipped string constants" mistake:

 * kconfigUnknownHostResponse -- from "missing-host-response-file"
 * kconfigMissingHostResponse -- from "unknown-host-response-file"

Fix that; use a speck of typelevel spice to showcase "how not to" fall victim
to this class of mistakes again, if desired. The Tagged helper is:
 * zero-cost;
 * simple;
 * easy to use;
 * attaches a constant string to a type, and transparently tracks it
   for as long as you allow it to -- e.g. in this case, from KeterConfig
   data-decl all the way until readFile calls.
2023-11-03 08:39:25 +01:00
Maksym Ivanov
5da9713bff
refactor: fix typo unkown -> unknown 2023-11-02 14:15:51 +01:00
Maksym Ivanov
8bd0c4b255
refactor: decopypaste reading *-response-file's 2023-11-02 14:15:48 +01:00
Jappie Klooster
d4908fb917
Merge pull request #281 from snoyberg/cabal-updates
Bumping containers
2023-10-06 00:01:29 +02:00
jappeace
b31b8c0bf0 Bumping 1 dependency
containers >=0.6.4 && <0.7 (latest: 0.7)
2023-10-04 00:27:52 +00:00
Jappie Klooster
faedc34cce add autogen stanza 2023-08-02 17:17:54 -04:00
Jappie Klooster
2ddafb9d7f
Merge pull request #279 from snoyberg/cabal-updates
Bumping aeson, bytestring, mtl, optparse-applicative, transformers, unix, warp-tls
2023-08-02 17:15:21 -04:00
Jappie Klooster
55d9f9f89e bound release 2023-08-02 16:54:16 -04:00
Jappie Klooster
a5ed612128 add missing comma's 2023-08-02 16:50:27 -04:00
Jappie Klooster
99c88c387c fix unix 2023-08-02 16:49:30 -04:00
Jappie Klooster
291f7aa3e8 fix transformers 2023-08-02 16:48:56 -04:00
Jappie Klooster
eb19394409 I guess we need cabal 3.0 2023-08-02 16:42:06 -04:00
Jappie Klooster
3f6943d52d remove range 2023-08-02 16:35:15 -04:00
Jappie Klooster
426766351c upgrade cabal 2023-08-02 16:34:25 -04:00
jappeace
ea7b5840a7 Bumping 7 dependencies
Outdated dependencies:
aeson >=2.0.0 && <2.2 (latest: 2.2.0.0)
bytestring >=0.10.12 && <0.12 (latest: 0.12.0.0)
mtl >=2.2.2 && <2.3 (latest: 2.3.1)
optparse-applicative >=0.16.1 && <0.18 (latest: 0.18.1.0)
transformers >=0.5.6 && <0.6 (latest: 0.6.1.1)
unix >=2.7.2 && <2.8 (latest: 2.8.1.1)
warp-tls >=3.0.3 && <3.4.0 (latest: 3.4.0)
2023-08-02 20:28:19 +00:00
Jappie Klooster
d98c5f3cc6
Merge pull request #278 from snoyberg/add-automated-bounds-action
Add automated bounds action
2023-08-02 16:27:12 -04:00
Jappie Klooster
7217809baa fix times 2023-08-02 16:06:48 -04:00
Jappie Klooster
9559d8a5f5 set to tuesday 2023-08-02 16:06:21 -04:00
Jappie Klooster
7a1d49de03 add automated bounds action 2023-08-02 16:05:36 -04:00
Jappie Klooster
823c9e8ab6
Merge pull request #277 from snoyberg/bump-bounds
apply cabal fmt
2023-06-14 12:07:11 -04:00
Jappie Klooster
8ae895dda2 Fix bounds
re-add resolver field

fix bounds for nightly

fix bounds more
2023-06-14 12:02:17 -04:00
Jappie Klooster
cbce0faea1 drop support for old stackage releases
I don't think it's worth maintining these with the aeson issue

explain drop of support
2023-06-14 10:24:29 -04:00
Jappie Klooster
a0c033cd8f Add note on upperbounds in change log
add note on formatter
2023-06-14 10:17:42 -04:00
Jappie Klooster
570c100a50 apply cabal fmt
re-add fastlogger
2023-06-14 10:15:57 -04:00
Jappie Klooster
89513f220e bump bound unix compat
update version and changelog
2023-06-12 09:06:59 -04:00
Jappie Klooster
735cbcc94d Delete management of logfiles as a keter feature
We pawned this off to fastlogger,
so this is now either done by that library,
or trough stderr by systemd.
2023-04-11 18:21:46 +02:00
Jappie Klooster
f9f384b565
Merge pull request #276 from RiugaBachi/migration-guide-2.1
Migration Guide for 2.1
2023-04-07 16:44:07 +02:00
Riuga
734cb7783d Add stderr logging suggestion in readme 2023-04-07 07:14:29 -05:00
Riuga
875c6153c1 Reference migration guide in changelog 2023-04-07 05:32:42 -05:00
Riuga
c5a6702491 Add 2.1 migration guide document 2023-04-07 05:27:17 -05:00
Jappie Klooster
b36708364f
Merge pull request #275 from RiugaBachi/process-monitor-logging-refactor
Make `processMonitor` logging consistent with the rest of `keter` logs
2023-04-07 11:08:04 +02:00
Riuga
8bfb277289 Squash formatTag into formatAppLog 2023-04-07 03:06:50 -05:00
Riuga
00b3419e6b Stop passing logger function to 2023-04-07 03:06:41 -05:00
Riuga
0077c7c0b1 Change monitorProcess to use MonadLogger 2023-04-07 03:05:02 -05:00
Jappie Klooster
dcdfd8091e
Merge pull request #274 from RiugaBachi/fast-logger-migration
Fast logger migration
2023-03-31 18:44:16 +02:00
Riuga
d58364f354 Refactor to use formatTag 2023-03-31 10:29:31 -05:00
Riuga
57f5c0d53c Refactor log formatter to emit tags only when logging to stderr 2023-03-31 10:17:11 -05:00
Riuga
aa22c8d78a Update format comment 2023-03-31 10:11:05 -05:00
Riuga
cd9e110ddb Store LogType in Logger 2023-03-31 10:07:40 -05:00
Riuga
fd4905c138 Rename imports 2023-03-31 09:57:28 -05:00
Riuga
40fcca651d Update exposed modules 2023-03-31 09:56:06 -05:00
Riuga
8a18651907 Move Keter.Conduit.LogFile to Keter.Logger 2023-03-31 09:55:08 -05:00