mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-09 18:59:50 +08:00
Merge pull request #432 from RWDai/fix/cli-install-copy
Add admin API key CLI install sessions
This commit is contained in:
@@ -158,9 +158,21 @@ pub(super) fn classify_admin_observability_family_route(
|
||||
"admin:api_keys",
|
||||
false,
|
||||
))
|
||||
} else if method == http::Method::POST
|
||||
&& normalized_path_no_trailing.starts_with("/api/admin/api-keys/")
|
||||
&& normalized_path_no_trailing.ends_with("/install-sessions")
|
||||
&& normalized_path_no_trailing.matches('/').count() == 5
|
||||
{
|
||||
Some(classified(
|
||||
"admin_proxy",
|
||||
"api_keys_manage",
|
||||
"create_api_key_install_session",
|
||||
"admin:api_keys",
|
||||
false,
|
||||
))
|
||||
} else if method == http::Method::GET
|
||||
&& normalized_path.starts_with("/api/admin/api-keys/")
|
||||
&& normalized_path.matches('/').count() == 4
|
||||
&& normalized_path_no_trailing.starts_with("/api/admin/api-keys/")
|
||||
&& normalized_path_no_trailing.matches('/').count() == 4
|
||||
{
|
||||
Some(classified(
|
||||
"admin_proxy",
|
||||
@@ -170,8 +182,8 @@ pub(super) fn classify_admin_observability_family_route(
|
||||
false,
|
||||
))
|
||||
} else if method == http::Method::PUT
|
||||
&& normalized_path.starts_with("/api/admin/api-keys/")
|
||||
&& normalized_path.matches('/').count() == 4
|
||||
&& normalized_path_no_trailing.starts_with("/api/admin/api-keys/")
|
||||
&& normalized_path_no_trailing.matches('/').count() == 4
|
||||
{
|
||||
Some(classified(
|
||||
"admin_proxy",
|
||||
|
||||
Reference in New Issue
Block a user