Commit Graph
100 Commits
Author SHA1 Message Date
Pascal Fischer 675abbddf6 remove service uninstall from brew install 2023-06-06 17:40:28 +02:00
Pascal Fischer eac492be9b move stopping app and service to preinstall 2023-06-06 17:35:27 +02:00
Pascal Fischer a0e133bd92 stop the daemon on brew update/install if running 2023-06-06 13:02:32 +02:00
Pascal Fischer bbf536be85 moved service uninstall and app close into postinstall 2023-06-06 00:04:57 +02:00
Pascal Fischer 933fe1964a revert to pkill and adding service stop 2023-06-05 21:46:13 +02:00
Pascal Fischer 8f51985fa5 switch to clean stop 2023-06-05 21:23:42 +02:00
Pascal Fischer 05e642103c kill netbird on pkg preinstall 2023-06-05 21:18:42 +02:00
Pascal Fischer 7c6d29c9c5 re-enable rest of release flow 2023-06-05 12:17:02 +02:00
Pascal Fischer b50503f8b7 add ref to main 2023-06-05 12:13:28 +02:00
Pascal Fischer 11a3fef5bc add trigger for docs generation 2023-06-05 12:10:18 +02:00
Pascal Fischer 5028450133 add examples 2023-06-02 01:50:15 +02:00
Pascal Fischer 2dcfa1efa3 fix summary 2023-06-02 01:32:48 +02:00
Pascal Fischer 75fbaf811b update openapi 2023-06-02 01:09:18 +02:00
Pascal Fischer 980dbdb7c6 add creating log dir to macOS installer scripts 2023-05-31 20:37:21 +02:00
Pascal Fischer 5b9378e6cb add creating log dir to macOS installer scripts 2023-05-31 19:31:37 +02:00
Pascal Fischer 9e045479cc fix pats counting 2023-05-30 19:44:40 +02:00
Pascal Fischer fe596c38c6 update rules count 2023-05-30 19:36:09 +02:00
Pascal Fischer 6fd13f563e use new policy-rule object 2023-05-30 19:09:16 +02:00
Pascal Fischer 22e81f493b fix metric creation from maps 2023-05-30 19:07:00 +02:00
Pascal Fischer 51f780dae9 initialize maps 2023-05-30 18:53:23 +02:00
Pascal Fischer f164fad2c2 add some more metrics 2023-05-30 18:49:50 +02:00
Pascal Fischer 452b045bb0 expose service users metrics 2023-05-30 16:40:48 +02:00
Pascal Fischer 7a9b05c56d add selfhosted metric for pat and service users 2023-05-30 16:22:34 +02:00
Pascal Fischer 2a45833b28 bump signing pipe version 2023-05-26 18:31:51 +02:00
Pascal Fischer 182382e2db add release dependency 2023-05-26 18:07:50 +02:00
Pascal Fischer 2808647be7 upgrade sign pipeline version 2023-05-26 17:06:47 +02:00
Pascal Fischer 7bdb0dd358 merge openapi with version from docs repo 2023-05-26 15:32:52 +02:00
Pascal Fischer 8124a273fb fix log writing 2023-05-26 13:56:01 +02:00
Pascal Fischer 5d459cf118 remove requirements.plist 2023-05-26 13:10:01 +02:00
Pascal Fischer 489be203fc revert logs writing 2023-05-26 13:07:14 +02:00
Pascal Fischer 4eec29a639 revert log writing 2023-05-25 21:22:26 +02:00
Pascal Fischer b3027603df update postinstall 2023-05-25 21:14:44 +02:00
Pascal Fischer 4026efcc08 revert requirements.plist 2023-05-25 21:02:49 +02:00
Pascal Fischer fb3fbc17f2 update requirements.plist 2023-05-25 15:13:38 +02:00
Pascal Fischer 76004bd537 update requirements.plist 2023-05-25 14:54:48 +02:00
Pascal Fischer 4e69af6caa also write error messages 2023-05-25 14:40:32 +02:00
Pascal Fischer 98eb2d4587 update log path 2023-05-25 12:22:13 +02:00
Pascal Fischer ac0e40da7e add scripts for pkg creation for mac 2023-05-23 18:15:05 +02:00
Pascal Fischer 873abc43bf move into separate package 2023-05-16 12:57:56 +02:00
Pascal Fischer 2fef52b856 remove dependency to external base62 package and create own methods in utils 2023-05-16 12:44:26 +02:00
Pascal Fischer f1da4fd55d using old isAdmin function to create account 2023-05-02 16:49:29 +02:00
Pascal Fischer e197b89ac3 remove UTC from some not store related operations 2023-04-10 11:09:27 +02:00
Pascal Fischer 6aba28ccb7 remove UTC from some not store related operations 2023-04-10 10:54:23 +02:00
Pascal Fischer 489892553a use UTC everywhere in server 2023-04-03 15:09:35 +02:00
Pascal Fischer b05e30ac5a do not use UTC for time to stay consistent 2023-04-03 12:44:55 +02:00
Pascal Fischer 45badd2c39 add event store to user tests 2023-04-01 11:11:30 +02:00
Pascal Fischer d3de035961 error responses always lower case + duplicate error response fix 2023-04-01 11:04:21 +02:00
Pascal Fischer b2da0ae70f add activity events on PAT creation and deletion 2023-03-31 17:41:22 +02:00
Pascal Fischer 931c20c8fe fix test name 2023-03-31 12:45:10 +02:00
Pascal Fischer 2eaf4aa8d7 add test for auth middleware 2023-03-31 12:44:22 +02:00
Pascal Fischer 110067c00f change order for access control checks and aquire account lock after global lock 2023-03-31 12:03:53 +02:00
Pascal Fischer 32c96c15b8 disable linter errors by comment 2023-03-31 10:30:05 +02:00
Pascal Fischer ca1dc5ac88 disable access control for token endpoint 2023-03-30 19:03:44 +02:00
Pascal Fischer ce775d59ae revert codacy 2023-03-30 18:59:35 +02:00
Pascal Fischer f273fe9f51 revert codacy 2023-03-30 18:54:55 +02:00
Pascal Fischer e08af7fcdf codacy 2023-03-30 17:46:21 +02:00
Pascal Fischer 454240ca05 comments for codacy 2023-03-30 17:32:44 +02:00
Pascal Fischer 1343a3f00e add test + codacy 2023-03-30 16:43:39 +02:00
Pascal Fischer 2a79995706 fix linter 2023-03-30 16:22:15 +02:00
Pascal Fischer e869882da1 fix merge 2023-03-30 16:14:51 +02:00
Pascal Fischer 6c8bb60632 fix merge 2023-03-30 16:06:46 +02:00
Pascal Fischer 4d7029d80c Merge branch 'main' into feature/add_pat_middleware
# Conflicts:
#	management/server/grpcserver.go
#	management/server/http/middleware/jwt.go
2023-03-30 16:06:21 +02:00
Pascal Fischer 5e2f66d591 fix codacy 2023-03-30 15:23:24 +02:00
Pascal Fischer a7519859bc fix test 2023-03-30 14:15:44 +02:00
Pascal Fischer 9b000b89d5 Merge branch 'feature/add_rest_endpoints_for_pat' into feature/add_pat_middleware
# Conflicts:
#	management/server/mock_server/account_mock.go
2023-03-30 14:02:58 +02:00
Pascal Fischer 5c1acdbf2f move validation into account manager + func for get requests 2023-03-30 13:58:44 +02:00
Pascal Fischer db3a9f0aa2 refactor jwt token validation and add PAT to middleware auth 2023-03-30 10:54:09 +02:00
Pascal Fischer ecc4f8a10d fix Pat handler test 2023-03-29 19:13:01 +02:00
Pascal Fischer 03abdfa112 return empty object on all handlers instead of empty string 2023-03-29 18:46:40 +02:00
Pascal Fischer 9746a7f61a remove debug logs 2023-03-29 18:27:01 +02:00
Pascal Fischer 4ec6d5d20b remove debug logs 2023-03-29 18:23:10 +02:00
Pascal Fischer 3bab745142 last_used can be nil 2023-03-29 17:46:09 +02:00
Pascal Fischer 0ca3d27a80 update account mock 2023-03-29 15:25:44 +02:00
Pascal Fischer c5942e6b33 store hashed token base64 encoded 2023-03-29 15:21:53 +02:00
Pascal Fischer 726ffb5740 add comments for exported functions 2023-03-29 15:06:54 +02:00
Pascal Fischer 42ba0765c8 fix linter 2023-03-28 14:54:06 +02:00
Pascal Fischer 514403db37 use object instead of plain token for create response + handler test 2023-03-28 14:47:15 +02:00
Pascal Fischer 6a75ec4ab7 fix http error codes 2023-03-27 17:42:05 +02:00
Pascal Fischer b66e984ddd set limits for expiration 2023-03-27 17:28:24 +02:00
Pascal Fischer c65a934107 refactor to use name instead of description 2023-03-27 16:28:49 +02:00
Pascal Fischer 9e74f30d2f fix delete token parameter lookup 2023-03-27 15:19:19 +02:00
Pascal Fischer de8608f99f add rest endpoints and update openapi doc 2023-03-21 16:02:19 +01:00
Pascal Fischer 8e4710763e use single line return for SaveAccount 2023-03-21 14:02:34 +01:00
Pascal Fischer 82af60838e use "ok" convention for check variables throughout files_store 2023-03-21 14:00:59 +01:00
Pascal Fischer 311b67fe5a change error messages 2023-03-21 13:56:31 +01:00
Pascal Fischer 94d39ab48c improve style for tests 2023-03-21 13:34:48 +01:00
Pascal Fischer 41a47be379 add function comments, implement account mock functions and added error handling in tests 2023-03-20 16:38:17 +01:00
Pascal Fischer e30def175b switch PATs to map and add deletion 2023-03-20 16:14:55 +01:00
Pascal Fischer e1ef091d45 remove unnecessary string conversion 2023-03-20 12:08:01 +01:00
Pascal Fischer b852198f67 codacy and lint hints 2023-03-20 11:44:12 +01:00
Pascal Fischer 628a201e31 fix PAT array split 2023-03-16 16:59:32 +01:00
Pascal Fischer 453643683d add method to account mock 2023-03-16 16:44:05 +01:00
Pascal Fischer b8cab2882b storing and retrieving PATs 2023-03-16 15:57:44 +01:00
Pascal Fischer 3b42d5e48a fix imports after merge 2023-03-16 11:59:12 +01:00
Pascal Fischer 1d4dfa41d2 clean dependencies 2023-03-16 11:46:53 +01:00
Pascal Fischer bc3cec23ec use slice copy 2023-03-16 11:32:55 +01:00
Pascal Fischer 62de082961 fix account test 2023-03-08 12:21:44 +01:00
Pascal Fischer c4d9b76634 add comment for exported const 2023-03-08 12:09:22 +01:00
Pascal Fischer b4bb5c6bb8 use const and do array copy 2023-03-08 11:54:10 +01:00
Pascal Fischer 2b1965c941 switch secret generation to use lib 2023-03-08 11:36:03 +01:00