Add API tokens support #9

Merged
pierre merged 40 commits from api into master 2024-04-23 17:04:45 +00:00

40 Commits

Author SHA1 Message Date
f28f9dbc5a Fix constant name
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/pr Build is passing
2024-04-23 18:53:44 +02:00
8fc03d43bc Improve comment
Some checks reported errors
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build was killed
2024-04-23 18:52:51 +02:00
d60064fbaa Minor fixes
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-04-23 18:51:01 +02:00
592466bcc8 Make expired tokens more visibles
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-04-23 18:22:41 +02:00
865494572f Upgrade basic-jwt to version 0.2.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-04-20 13:56:05 +02:00
23e0b33b43 Use basic-jwt crate to sign / validate JWT
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-04-20 13:33:32 +02:00
9432b3a8fd Remove "None" variant for JWT public key
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-04-20 11:56:36 +02:00
c81df0e6f7 Merge branch 'master' into api
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is passing
2024-04-20 09:43:49 +00:00
f1b700f832 Rename /api/tokens -> /api/token
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-04-20 11:38:45 +02:00
ff35da5639 Add API tokens management
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-04-20 11:35:26 +02:00
43382991eb Add network filter management
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-04-20 11:28:10 +02:00
f404018392 Networks management
Some checks reported errors
continuous-integration/drone/pr Build encountered an error
continuous-integration/drone/push Build is passing
2024-04-20 11:17:49 +02:00
c0b50c75fd Can set VM rights for API tokens
Some checks reported errors
continuous-integration/drone/pr Build encountered an error
continuous-integration/drone/push Build is passing
2024-04-20 10:57:08 +02:00
e68569b9b4 Add basic token rights editor
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-04-20 09:46:25 +02:00
c7f72882a7 Add raw API token rights editor
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-04-19 22:42:01 +02:00
ec25b6e4f1 Can configure maximum inactivity of token
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-04-19 18:52:28 +02:00
89b9f7c292 Fix error
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is passing
2024-04-18 22:45:31 +02:00
5e134ffba6 Show private key after API key creation
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-04-18 22:44:34 +02:00
3f64cd3259 Fix API tokens routes
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-04-18 19:39:41 +02:00
84e293bddb Start to build routes to create, view and edit API token
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-04-18 19:38:25 +02:00
6ebff3ac0c Attempt to fix dependency conflict
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-04-17 22:22:22 +02:00
91127ea61f List the tokens from the WebUI
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
2024-04-17 22:20:01 +02:00
f03b631b6c Add path globbing
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-04-17 21:41:58 +02:00
1d12d5c9be Merge branch 'master' into api
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-04-17 19:23:04 +00:00
cbef5f2a78 Enforce IP restriction
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is passing
2024-04-10 21:35:53 +02:00
d5eee04d7a Can block token unauthorized to access a specific route
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is passing
2024-04-10 21:22:15 +02:00
579e54f7d3 Update last activity of token 2024-04-10 21:10:00 +02:00
b1937d42a2 Create a basic API client
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-04-10 21:03:05 +02:00
23fc10bb60 Merge branch 'master' into api
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-04-10 16:47:31 +00:00
631cc96537 Give more appropriate name to define authorized route for API token
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is passing
2024-04-09 21:53:11 +02:00
fd3df3d214 Start to implement API tokens checks
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-04-09 21:49:26 +02:00
418055a640 Forgot to save new tokens...
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-04-09 19:41:33 +02:00
0ee2c41f3c Can update and delete API tokens
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-04-09 19:39:41 +02:00
e938b5a423 Merge branch 'master' into api
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-04-09 17:06:18 +00:00
0c5a232a25 Can get a single API token
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-04-09 19:04:49 +02:00
f56e9c14b2 Can get the list of tokens 2024-04-09 18:56:12 +02:00
60a3cb3d10 Can create API tokens 2024-04-09 18:36:18 +02:00
bab34b7c7f Add more test to validate JWTs
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
2024-04-09 18:04:00 +02:00
0217d1c53d WIP
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-04-08 22:46:17 +02:00
ab7907d947 WIP 2024-04-08 22:19:28 +02:00