From 11e6ff3a425e0ec3a3ab58d23c2b0f3bf31fb043 Mon Sep 17 00:00:00 2001 From: Yaqin Li Date: Tue, 24 Sep 2024 23:23:34 +0000 Subject: [PATCH] add a new auth type for host type mapping --- .../teletraan/universal/security/bean/AuthZResource.java | 2 ++ docs/auth/teletraan_auth.yaml | 1 + 2 files changed, 3 insertions(+) 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