Commit graph

69 commits

Author SHA1 Message Date
Daniel
400f4c12ed Use gorilla/mux for endpoint paths 2021-05-12 15:37:24 +02:00
Daniel
8814d279bd Add api bridge for database 2021-05-11 14:59:33 +02:00
Daniel
8c1c522475 Use workers for database api handlers 2021-05-11 14:59:00 +02:00
Daniel
745a27d92d Fix required API methods 2021-05-11 14:58:28 +02:00
Daniel
480807a31c Improve flags 2021-05-05 00:11:10 +02:00
Daniel
4a05c26339 Clean API request paths 2021-03-10 11:44:29 +01:00
Daniel
89fad3d9ca Use HTTP security headers on all requests 2021-01-28 16:50:57 +01:00
Daniel
afdb367ada Remove unused middlewares and fix linter errors 2021-01-28 16:50:23 +01:00
Daniel
ab05924bcf Implement review suggestions 2021-01-19 16:26:44 +01:00
Daniel
40c2849bab Add config export via flag and API 2021-01-19 15:38:10 +01:00
Daniel
11e8271d41 Add API Key auth and improve endpoints 2021-01-19 15:37:55 +01:00
Daniel
4b2bfc3e8f Implement review suggestions 2021-01-08 16:46:11 +01:00
Daniel
7c7340c2e7 Move debug util to separate pkg to avoid import loop 2021-01-07 12:32:23 +01:00
Daniel
3244fefd43 Implement review suggestions 2021-01-06 13:34:25 +01:00
Daniel
5daeac8cf7 Add basic debug api endpoints 2020-12-30 23:50:17 +01:00
Daniel
9100dc999b Add endpoint api and authentication layer 2020-12-30 23:49:57 +01:00
Daniel
8eec5f4545 Improve config description 2020-12-21 14:56:33 +01:00
Daniel
8806469181 Update config wording and metadata 2020-11-04 14:35:54 +01:00
Daniel
cfbe4d9204 Add metadata to records sent via the API 2020-10-30 15:11:16 +01:00
Daniel
3f3305d8c2 Improve config naming 2020-10-29 14:28:09 +01:00
Patrick Pacher
45d8d7eaf9 Add StackableAnnotation and update wording 2020-10-29 14:28:09 +01:00
Patrick Pacher
267f49a439
Merge branch 'develop' into feature/ui-revamp 2020-10-15 11:36:25 +02:00
Patrick Pacher
fca326d8c7
Fix subscription cancellation via API 2020-10-15 11:27:14 +02:00
Patrick Pacher
f48ed07467
Merge branch 'develop' into feature/ui-revamp 2020-10-15 11:16:40 +02:00
Daniel
7e1125fc65 Add cancel command to database api 2020-10-13 16:51:34 +02:00
Patrick Pacher
62d2737849
Add category annotations to options 2020-09-22 15:40:56 +02:00
Patrick Pacher
330e6bd1f1
Add PossibleValues support and option annotations 2020-09-15 09:00:58 +02:00
Daniel
2fa29789de Improve authenticator error handling
From PR Review https://github.com/safing/portbase/pull/59
2020-07-10 13:21:10 +02:00
Daniel
f4fcd0c67c Add Path to Token Cookie
From PR Review https://github.com/safing/portbase/pull/55
2020-07-10 11:46:59 +02:00
Daniel
210017b42e
Fix cleaner start condition 2020-06-27 14:52:56 +02:00
Daniel
34e076f9ff Fix starting the api auth token cleaner task 2020-06-26 22:41:47 +02:00
Daniel
37189b07cf Detect close errors 2020-06-05 13:04:45 +02:00
Daniel
fe7b09c9fb Improve authentication handling, enable auth cookies 2020-06-05 13:04:27 +02:00
Daniel
d6f7a159ad Improve api middlewares 2020-06-05 13:02:19 +02:00
Daniel
5136bf91ed Add authentication failure error messages 2020-06-03 23:16:23 +02:00
Daniel
f2f1a56060 Make default ack action if notification has none 2020-05-22 15:07:30 +02:00
Daniel
e83e2b216c Fix and improve api authentication error 2020-05-21 15:06:02 +02:00
Daniel
74736fafa8 Make api config key a const 2020-04-24 09:52:11 +02:00
Daniel
61e689a513 Add config ordering 2020-04-24 09:51:55 +02:00
Daniel
94b5fe8e4d Fix bug in database api 2020-04-21 14:11:53 +02:00
Daniel
be456c9d64 Remove unused Err attribute on database subscription 2020-03-20 17:22:38 +01:00
Daniel
3bdca53c14 Remove virtual base dependency 2020-03-20 17:22:00 +01:00
Daniel
1f77046877 Update packages to new modules structure and other minor fixes 2020-02-18 15:44:18 +01:00
Daniel
adc359c15b Improve api listener integration 2019-10-04 23:49:13 +02:00
Daniel
f7ccc58b98 Update rng package import 2019-09-24 15:40:27 +02:00
Daniel
272e5b926a Fix config registration in api and random 2019-09-24 14:39:09 +02:00
Daniel
e0535421e4 Clean up API code, use update and new message types for sending subscription events 2019-09-20 10:35:13 +02:00
Daniel
0b6582dd15 Improve documentation and formatting 2019-09-06 22:38:40 +02:00
Daniel
402429cd70 Revamp module structure
- Add shutdown mechanics to module
- Adapt dbmodule to new mechanics
2019-08-09 16:45:43 +02:00
Daniel
79a4219487 Update listen api address config override handling 2019-08-02 16:10:34 +02:00