Bethuel Mmbaga
|
acb73bd64a
|
[management] Remove redundant get account calls in GetAccountFromToken (#2615)
* refactor access control middleware and user access by JWT groups
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
* refactor jwt groups extractor
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
* refactor handlers to get account when necessary
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
* refactor getAccountFromToken
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
* refactor getAccountWithAuthorizationClaims
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
* fix merge
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
* revert handles change
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
* remove GetUserByID from account manager
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
* fix tests
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
* refactor getAccountWithAuthorizationClaims to return account id
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
* refactor handlers to use GetAccountIDFromToken
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
* fix tests
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
* remove locks
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
* refactor
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
* add GetGroupByName from store
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
* add GetGroupByID from store and refactor
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
* Refactor retrieval of policy and posture checks
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
* Refactor user permissions and retrieves PAT
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
* Refactor route, setupkey, nameserver and dns to get record(s) from store
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
* Refactor store
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
* fix lint
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
* fix tests
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
* fix add missing policy source posture checks
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
* add store lock
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
* fix tests
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
* add get account
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
---------
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
|
2024-09-27 17:10:50 +03:00 |
|
pascal-fischer
|
765aba2c1c
|
Add context to throughout the project and update logging (#2209)
propagate context from all the API calls and log request ID, account ID and peer ID
---------
Co-authored-by: Zoltan Papp <zoltan.pmail@gmail.com>
|
2024-07-03 11:33:02 +02:00 |
|
Pascal Fischer
|
5c1acdbf2f
|
move validation into account manager + func for get requests
|
2023-03-30 13:58:44 +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
|
3bab745142
|
last_used can be nil
|
2023-03-29 17:46:09 +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
|
de8608f99f
|
add rest endpoints and update openapi doc
|
2023-03-21 16:02:19 +01:00 |
|