From 7958bd36f8ce0bb4da16738b3da5aa4d3c390f0a Mon Sep 17 00:00:00 2001 From: liyaqin1 <42289525+liyaqin1@users.noreply.github.com> Date: Tue, 24 Sep 2024 16:42:26 -0700 Subject: [PATCH] add a new auth type for host type mapping (#1720) * add a new auth type for host type mapping * bump universal version --------- Co-authored-by: Yaqin Li --- deploy-service/pom.xml | 2 +- deploy-service/universal/pom.xml | 2 +- .../teletraan/universal/security/bean/AuthZResource.java | 2 ++ docs/auth/teletraan_auth.yaml | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/deploy-service/pom.xml b/deploy-service/pom.xml index 6c9eb98aef..92e5441b28 100644 --- a/deploy-service/pom.xml +++ b/deploy-service/pom.xml @@ -58,7 +58,7 @@ com.pinterest.teletraan universal - 2.3-SNAPSHOT + 2.4-SNAPSHOT com.pinterest.teletraan diff --git a/deploy-service/universal/pom.xml b/deploy-service/universal/pom.xml index e731f84e68..5c98ac54c5 100644 --- a/deploy-service/universal/pom.xml +++ b/deploy-service/universal/pom.xml @@ -11,7 +11,7 @@ com.pinterest.teletraan universal - 2.3-SNAPSHOT + 2.4-SNAPSHOT Teletraan platform universal components https://github.com/pinterest/teletraan/ diff --git a/deploy-service/universal/src/main/java/com/pinterest/teletraan/universal/security/bean/AuthZResource.java b/deploy-service/universal/src/main/java/com/pinterest/teletraan/universal/security/bean/AuthZResource.java index fb311ef10a..3ce6fcac70 100644 --- a/deploy-service/universal/src/main/java/com/pinterest/teletraan/universal/security/bean/AuthZResource.java +++ b/deploy-service/universal/src/main/java/com/pinterest/teletraan/universal/security/bean/AuthZResource.java @@ -119,6 +119,8 @@ public enum Type { HOST, /** For cluster provision prefix resource. */ PROVISION_PREFIX, + /** For instance type mapping url */ + INSTANCE_TYPE_MAPPING, /* For anything else */ UNSPECIFIED, } diff --git a/docs/auth/teletraan_auth.yaml b/docs/auth/teletraan_auth.yaml index 83037e6201..b0f7d5f14a 100644 --- a/docs/auth/teletraan_auth.yaml +++ b/docs/auth/teletraan_auth.yaml @@ -87,6 +87,7 @@ definitions: - HOTFIX - HOST - PROVISION_PREFIX + - INSTANCE_TYPE_MAPPING - UNSPECIFIED resourceName: type: string