Commit Graph

17 Commits

Author SHA1 Message Date
Gaius b1171f4bd4
feat: rename manager/model to manager/models (#2191)
The manager model package is renamed to models to
prevent the same name as the future inference model database table.

Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:39 +08:00
Gaius e9da69dc40
feat: add auth config to manager (#2161)
Fix https://github.com/dragonflyoss/Dragonfly2/security/advisories/GHSA-hpc8-7wpm-889w.

Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:37 +08:00
Gaius a2511cb945
feat: rewrite interface{} to any (#1419)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:33:32 +08:00
Gaius 5b323b00b4
fix: manager router middlewares order (#1385)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:33:27 +08:00
Gaius ef6e3665e6
feat: add user update interface and rename rest to service (#1148)
* feat: add user interface and rename rest to service

Signed-off-by: Gaius <gaius.qi@gmail.com>

* docs: api reference

Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:33:04 +08:00
Jim Ma 3d63ab2ca3
chore: update golang import lint (#780)
Signed-off-by: Jim Ma <majinjing3@gmail.com>
2023-06-28 17:32:34 +08:00
Gaius 7a8575eca8
feat: add preheat otel (#741)
* feat: add preheat otel

Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:32:31 +08:00
Gaius 6336925533
feat: enable manager user's features (#598)
* feat: enable manager user's features

Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:31:43 +08:00
Gaius 8aa537636e
feat: add oauth2 signin (#591)
* feat: add oauth2 signin

Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:31:42 +08:00
Gaius e52b72990b
refactor: rbac
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:31:41 +08:00
Gaius 11c0f4f8de
refactor: user interface
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:31:41 +08:00
yxxhero c3bf4a3d6f
add oauth support
Signed-off-by: yxxhero <aiopsclub@163.com>
2023-06-28 17:31:39 +08:00
yxxhero 92ebd103e7
feat: change rabc code struct (#552)
* feat: change rabc code struct

Signed-off-by: yxxhero <aiopsclub@163.com>
2023-06-28 17:31:38 +08:00
Gaius 3657d8f8c4
feature: optimize manager project layout (#540)
* feat: optimize manager project layout

Signed-off-by: Gaius <gaius.qi@gmail.com>

* feat: add file license

Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:31:35 +08:00
yxxhero b20f78d128
Add rbac support (#474)
Signed-off-by: yxxhero <aiopsclub@163.com>
Co-authored-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:31:33 +08:00
Gaius 222a15f273
feat: optimize jwt (#476)
* feat: optimize jwt

Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:30:28 +08:00
yxxhero 3f861bdf6e
feat: Manager user logic (#419)
* add unittest for GenerateRandomSalt func
* add bcrypt package for user logic.
* add model.User into migrate
* update jwt middleware func
* remove encrypted_password export in json

Signed-off-by: yxxhero <aiopsclub@163.com>
2023-06-28 17:30:26 +08:00