You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "lasdf1234 (via GitHub)" <gi...@apache.org> on 2026/08/05 08:06:28 UTC

[PR] [#12297] feat(secret): Add SecretManager and typed SecretBinding/SecretReference [gravitino]

lasdf1234 opened a new pull request, #12375:
URL: https://github.com/apache/gravitino/pull/12375

   ### What changes were proposed in this pull request?
   
   - Add `SecretManager` for write-through / external-ref lifecycle (`getSecretBindingUrns`, `getSecretReferenceUrns`, `writeSecrets`, `rollbackWritten`).
   - Add `SecretPropertyUtils` for request checks, URN recognition, and applying URNs into properties.
   - Add typed `SecretBinding` / `SecretReference` API models (and unit tests).
   - Extend `SecretProvider` with optional `bindExternalReference`.
   - Wire `SecretManager` into `GravitinoEnv` / `CatalogManager` / `OperationDispatcher` (hidden-property detection for secret URNs). Create APIs are unchanged in this PR.
   
   ### Why are the changes needed?
   
   Entity create needs a shared secret lifecycle layer before public create APIs can accept `secretBindings` / `secretReferences`.
   
   Fix: #12297
   
   ### Does this PR introduce _any_ user-facing change?
   
   - No create API / REST request shape change yet.
   - Adds typed secret models in the public API module for follow-up create wiring.
   
   ### How was this patch tested?
   
   - `./gradlew :api:test --tests org.apache.gravitino.secret.TestSecretBindingAndReference :core:test --tests org.apache.gravitino.secret.TestSecretManager --tests org.apache.gravitino.TestGravitinoEnvSecretProviderRegistry -PskipITs`
   
   Stacked follow-up: #12366 (create API wiring; base = this branch).
   
   
   Made with [Cursor](https://cursor.com)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#12297] feat(secret): Add SecretManager and typed SecretBinding/SecretReference [gravitino]

Posted by "roryqi (via GitHub)" <gi...@apache.org>.
roryqi commented on code in PR #12375:
URL: https://github.com/apache/gravitino/pull/12375#discussion_r3719006427


##########
api/src/main/java/org/apache/gravitino/secret/SecretBinding.java:
##########
@@ -0,0 +1,97 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.gravitino.secret;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.google.common.base.Preconditions;
+import java.util.Objects;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.gravitino.annotation.DeveloperApi;
+
+/**
+ * Write-through secret binding for create/alter requests: a registered provider instance name plus
+ * plaintext to store.
+ */
+@DeveloperApi

Review Comment:
   This isn't developerApi. This will be used for the users. You can use Envolving.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#12297] feat(secret): Add SecretManager and typed SecretBinding/SecretReference [gravitino]

Posted by "lasdf1234 (via GitHub)" <gi...@apache.org>.
lasdf1234 commented on code in PR #12375:
URL: https://github.com/apache/gravitino/pull/12375#discussion_r3719527820


##########
api/src/main/java/org/apache/gravitino/secret/SecretReference.java:
##########
@@ -0,0 +1,105 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.gravitino.secret;
+
+import static org.apache.gravitino.secret.SecretConstants.URN_PREFIX;
+
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.Collections;
+import java.util.LinkedHashMap;
+import java.util.Map;
+import java.util.Objects;
+import javax.annotation.Nullable;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.gravitino.annotation.Evolving;
+
+/**
+ * External secret locator for create/alter requests: a registered provider instance name plus
+ * provider-specific attributes. The server builds the URN; clients must not send a raw URN.
+ */
+@Evolving
+public final class SecretReference {
+
+  private final String provider;
+  private final Map<String, String> attributes;
+
+  /**
+   * Creates an external secret reference.
+   *
+   * @param provider registered provider instance name
+   * @param attributes provider-specific locator keys; {@code null} or empty means no attributes
+   */
+  public SecretReference(String provider, @Nullable Map<String, String> attributes) {

Review Comment:
   Got. Remove @Nullable.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#12297] feat(secret): Add SecretManager and typed SecretBinding/SecretReference [gravitino]

Posted by "roryqi (via GitHub)" <gi...@apache.org>.
roryqi commented on code in PR #12375:
URL: https://github.com/apache/gravitino/pull/12375#discussion_r3719375599


##########
api/src/main/java/org/apache/gravitino/secret/SecretReference.java:
##########
@@ -0,0 +1,112 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.gravitino.secret;
+
+import static org.apache.gravitino.secret.SecretConstants.URN_PREFIX;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.Collections;
+import java.util.LinkedHashMap;
+import java.util.Map;
+import java.util.Objects;
+import javax.annotation.Nullable;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.gravitino.annotation.DeveloperApi;
+
+/**
+ * External secret locator for create/alter requests: a registered provider instance name plus
+ * provider-specific attributes. The server builds the URN; clients must not send a raw URN.
+ */
+@DeveloperApi
+public final class SecretReference {
+
+  private final String provider;
+  private final Map<String, String> attributes;

Review Comment:
   OK for me. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#12297] feat(secret): Add SecretManager and typed SecretBinding/SecretReference [gravitino]

Posted by "roryqi (via GitHub)" <gi...@apache.org>.
roryqi commented on code in PR #12375:
URL: https://github.com/apache/gravitino/pull/12375#discussion_r3719023452


##########
api/src/main/java/org/apache/gravitino/secret/SecretBinding.java:
##########
@@ -0,0 +1,97 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.gravitino.secret;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.google.common.base.Preconditions;
+import java.util.Objects;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.gravitino.annotation.DeveloperApi;
+
+/**
+ * Write-through secret binding for create/alter requests: a registered provider instance name plus
+ * plaintext to store.
+ */
+@DeveloperApi
+public final class SecretBinding {
+
+  private final String provider;
+  private final String value;
+
+  /**
+   * Creates a write-through binding.
+   *
+   * @param provider registered provider instance name
+   * @param value plaintext secret value
+   */
+  @JsonCreator

Review Comment:
   Could u avoid json annotation in the api module? Json serialization happens in the transportation layer. We shouldn't have it in the api module.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#12297] feat(secret): Add SecretManager and typed SecretBinding/SecretReference [gravitino]

Posted by "roryqi (via GitHub)" <gi...@apache.org>.
roryqi commented on code in PR #12375:
URL: https://github.com/apache/gravitino/pull/12375#discussion_r3719023452


##########
api/src/main/java/org/apache/gravitino/secret/SecretBinding.java:
##########
@@ -0,0 +1,97 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.gravitino.secret;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.google.common.base.Preconditions;
+import java.util.Objects;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.gravitino.annotation.DeveloperApi;
+
+/**
+ * Write-through secret binding for create/alter requests: a registered provider instance name plus
+ * plaintext to store.
+ */
+@DeveloperApi
+public final class SecretBinding {
+
+  private final String provider;
+  private final String value;
+
+  /**
+   * Creates a write-through binding.
+   *
+   * @param provider registered provider instance name
+   * @param value plaintext secret value
+   */
+  @JsonCreator

Review Comment:
   Could u avoid json annotation in the api module? Json serialization happens in the transportation layer. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#12297] feat(secret): Add SecretManager and typed SecretBinding/SecretReference [gravitino]

Posted by "lasdf1234 (via GitHub)" <gi...@apache.org>.
lasdf1234 commented on code in PR #12375:
URL: https://github.com/apache/gravitino/pull/12375#discussion_r3719358320


##########
api/src/main/java/org/apache/gravitino/secret/SecretReference.java:
##########
@@ -0,0 +1,112 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.gravitino.secret;
+
+import static org.apache.gravitino.secret.SecretConstants.URN_PREFIX;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.Collections;
+import java.util.LinkedHashMap;
+import java.util.Map;
+import java.util.Objects;
+import javax.annotation.Nullable;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.gravitino.annotation.DeveloperApi;
+
+/**
+ * External secret locator for create/alter requests: a registered provider instance name plus
+ * provider-specific attributes. The server builds the URN; clients must not send a raw URN.
+ */
+@DeveloperApi
+public final class SecretReference {
+
+  private final String provider;
+  private final Map<String, String> attributes;

Review Comment:
   Vault:
   "jdbc-password": {
     "provider": "vault-prod",
     "attributes": {
       "path": "kv/data/prod/mysql",
       "key": "password",
       "version": "3"
     }
   }
   
   AWS:
   "s3-secret-access-key": {
     "provider": "aws-sm",
     "attributes": {
       "secretId": "prod/gravitino/s3",
       "key": "secretAccessKey"
     }
   }
   
   GCP:
   "jdbc-password": {
     "provider": "gcp-sm",
     "attributes": {
       "secret": "projects/my-proj/secrets/mysql-password",
       "version": "latest"
     }
   }
   
   Azure:
   
   "jdbc-password": {
     "provider": "azure-kv",
     "attributes": {
       "name": "mysql-password",
       "version": "abc123"
     }
   }
   
   
   As shown above, the attribute names used by each manufacturer are all different and there is no commonality.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#12297] feat(secret): Add SecretManager and typed SecretBinding/SecretReference [gravitino]

Posted by "lasdf1234 (via GitHub)" <gi...@apache.org>.
lasdf1234 commented on code in PR #12375:
URL: https://github.com/apache/gravitino/pull/12375#discussion_r3719148981


##########
api/src/main/java/org/apache/gravitino/secret/SecretBinding.java:
##########
@@ -0,0 +1,97 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.gravitino.secret;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.google.common.base.Preconditions;
+import java.util.Objects;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.gravitino.annotation.DeveloperApi;
+
+/**
+ * Write-through secret binding for create/alter requests: a registered provider instance name plus
+ * plaintext to store.
+ */
+@DeveloperApi

Review Comment:
   Got. Rename to Evolving.



##########
api/src/main/java/org/apache/gravitino/secret/SecretBinding.java:
##########
@@ -0,0 +1,97 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.gravitino.secret;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.google.common.base.Preconditions;
+import java.util.Objects;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.gravitino.annotation.DeveloperApi;
+
+/**
+ * Write-through secret binding for create/alter requests: a registered provider instance name plus
+ * plaintext to store.
+ */
+@DeveloperApi
+public final class SecretBinding {
+
+  private final String provider;
+  private final String value;
+
+  /**
+   * Creates a write-through binding.
+   *
+   * @param provider registered provider instance name
+   * @param value plaintext secret value
+   */
+  @JsonCreator

Review Comment:
   Got resovled.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#12297] feat(secret): Add SecretManager and typed SecretBinding/SecretReference [gravitino]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #12375:
URL: https://github.com/apache/gravitino/pull/12375#issuecomment-5194050347

   <!-- coverage-report -->
   ### Code Coverage Report
   |Overall Project|68.19% **`+0.2%`**|:green_circle:|
   |:-|:-|:-:|
   |Files changed|71.59%|:green_circle:|
   <br>
   
   |Module|Coverage||
   |:-|:-|:-:|
   |aliyun|1.72%|:red_circle:|
   |api|49.37% **`+0.04%`**|:green_circle:|
   |authorization-common|85.96%|:green_circle:|
   |aws|42.04%|:green_circle:|
   |azure|2.47%|:red_circle:|
   |catalog-common|9.92%|:red_circle:|
   |catalog-fileset|79.74%|:green_circle:|
   |catalog-glue|68.95%|:green_circle:|
   |catalog-hive|79.4%|:green_circle:|
   |catalog-jdbc-common|45.7%|:green_circle:|
   |catalog-jdbc-doris|81.8%|:green_circle:|
   |catalog-jdbc-mysql|79.33%|:green_circle:|
   |catalog-jdbc-postgresql|83.39%|:green_circle:|
   |catalog-jdbc-starrocks|79.16%|:green_circle:|
   |catalog-kafka|77.01%|:green_circle:|
   |catalog-lakehouse-generic|59.18%|:green_circle:|
   |catalog-lakehouse-hudi|79.1%|:green_circle:|
   |catalog-lakehouse-iceberg|85.86%|:green_circle:|
   |catalog-lakehouse-paimon|84.23%|:green_circle:|
   |catalog-model|77.72%|:green_circle:|
   |cli|44.48%|:green_circle:|
   |client-java|78.27%|:green_circle:|
   |common|52.11% **`-0.02%`**|:green_circle:|
   |core|83.22% **`-0.53%`**|:green_circle:|
   |filesystem-hadoop3|77.28%|:green_circle:|
   |flink|0.0%|:red_circle:|
   |flink-common|48.68%|:green_circle:|
   |flink-runtime|0.0%|:red_circle:|
   |gcp|14.12%|:red_circle:|
   |hadoop-auth|68.0%|:green_circle:|
   |hadoop-common|12.7%|:red_circle:|
   |hive-metastore-common|53.4%|:green_circle:|
   |iceberg-common|64.75%|:green_circle:|
   |iceberg-rest-server|75.03%|:green_circle:|
   |idp-basic|86.02%|:green_circle:|
   |integration-test-common|0.0%|:red_circle:|
   |jobs|62.92%|:green_circle:|
   |lance-common|24.5% **`-23.93%`**|:red_circle:|
   |lance-rest-server|64.23% **`-10.3%`**|:green_circle:|
   |lineage|53.02%|:green_circle:|
   |optimizer|83.17%|:green_circle:|
   |optimizer-api|21.95%|:red_circle:|
   |server|85.88%|:green_circle:|
   |server-common|76.45%|:green_circle:|
   |spark|28.57%|:red_circle:|
   |spark-common|45.89%|:green_circle:|
   |tencent|69.84%|:green_circle:|
   |trino-connector|40.29%|:green_circle:|
   
   <details>
   <summary>Files</summary>
   
   |Module|File|Coverage||
   |:-|:-|:-|:-:|
   |api|[SecretBinding.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/api/src/main/java/org/apache/gravitino/secret/SecretBinding.java)|56.25%|:red_circle:|
   ||[SecretReference.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/api/src/main/java/org/apache/gravitino/secret/SecretReference.java)|52.94%|:red_circle:|
   |common|[SecretProvider.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/common/src/main/java/org/apache/gravitino/secret/SecretProvider.java)|0.0%|:red_circle:|
   |core|[ModelOperationDispatcher.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/core/src/main/java/org/apache/gravitino/catalog/ModelOperationDispatcher.java)|100.0%|:green_circle:|
   ||[TagMetadataObjectRelBaseSQLProvider.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/core/src/main/java/org/apache/gravitino/storage/relational/mapper/provider/base/TagMetadataObjectRelBaseSQLProvider.java)|100.0%|:green_circle:|
   ||[TagMetaPostgreSQLProvider.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/core/src/main/java/org/apache/gravitino/storage/relational/mapper/provider/postgresql/TagMetaPostgreSQLProvider.java)|100.0%|:green_circle:|
   ||[TagMetadataObjectRelPostgreSQLProvider.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/core/src/main/java/org/apache/gravitino/storage/relational/mapper/provider/postgresql/TagMetadataObjectRelPostgreSQLProvider.java)|100.0%|:green_circle:|
   ||[TagMetaService.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/core/src/main/java/org/apache/gravitino/storage/relational/service/TagMetaService.java)|98.61%|:green_circle:|
   ||[SecretPropertyUtils.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/core/src/main/java/org/apache/gravitino/secret/SecretPropertyUtils.java)|96.97%|:green_circle:|
   ||[TagEntity.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/core/src/main/java/org/apache/gravitino/meta/TagEntity.java)|96.36%|:green_circle:|
   ||[TagMetadataObjectRelSQLProviderFactory.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/core/src/main/java/org/apache/gravitino/storage/relational/mapper/TagMetadataObjectRelSQLProviderFactory.java)|96.15%|:green_circle:|
   ||[OperationDispatcher.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/core/src/main/java/org/apache/gravitino/catalog/OperationDispatcher.java)|93.75%|:green_circle:|
   ||[FilesetOperationDispatcher.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/core/src/main/java/org/apache/gravitino/catalog/FilesetOperationDispatcher.java)|93.33%|:green_circle:|
   ||[POConverters.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/core/src/main/java/org/apache/gravitino/storage/relational/utils/POConverters.java)|88.25%|:green_circle:|
   ||[TagMetaBaseSQLProvider.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/core/src/main/java/org/apache/gravitino/storage/relational/mapper/provider/base/TagMetaBaseSQLProvider.java)|86.67%|:green_circle:|
   ||[TableOperationDispatcher.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/core/src/main/java/org/apache/gravitino/catalog/TableOperationDispatcher.java)|84.26%|:green_circle:|
   ||[TagManager.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/core/src/main/java/org/apache/gravitino/tag/TagManager.java)|84.02%|:green_circle:|
   ||[PartitionOperationDispatcher.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/core/src/main/java/org/apache/gravitino/catalog/PartitionOperationDispatcher.java)|83.33%|:green_circle:|
   ||[ViewOperationDispatcher.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/core/src/main/java/org/apache/gravitino/catalog/ViewOperationDispatcher.java)|82.4%|:green_circle:|
   ||[TopicOperationDispatcher.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/core/src/main/java/org/apache/gravitino/catalog/TopicOperationDispatcher.java)|82.32%|:green_circle:|
   ||[SchemaOperationDispatcher.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/core/src/main/java/org/apache/gravitino/catalog/SchemaOperationDispatcher.java)|82.29%|:green_circle:|
   ||[JDBCBackend.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/core/src/main/java/org/apache/gravitino/storage/relational/JDBCBackend.java)|82.06%|:green_circle:|
   ||[SecretManager.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/core/src/main/java/org/apache/gravitino/secret/SecretManager.java)|75.29%|:green_circle:|
   ||[CredentialOperationDispatcher.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/core/src/main/java/org/apache/gravitino/credential/CredentialOperationDispatcher.java)|75.0%|:green_circle:|
   ||[TagMetadataObjectRelPO.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/core/src/main/java/org/apache/gravitino/storage/relational/po/TagMetadataObjectRelPO.java)|74.0%|:green_circle:|
   ||[TagPO.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/core/src/main/java/org/apache/gravitino/storage/relational/po/TagPO.java)|73.68%|:green_circle:|
   ||[CatalogManager.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/core/src/main/java/org/apache/gravitino/catalog/CatalogManager.java)|70.34%|:green_circle:|
   ||[FunctionOperationDispatcher.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/core/src/main/java/org/apache/gravitino/catalog/FunctionOperationDispatcher.java)|43.48%|:red_circle:|
   ||[GravitinoEnv.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/core/src/main/java/org/apache/gravitino/GravitinoEnv.java)|30.95%|:red_circle:|
   ||[TagMetadataObjectRelMapper.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/core/src/main/java/org/apache/gravitino/storage/relational/mapper/TagMetadataObjectRelMapper.java)|0.0%|:red_circle:|
   |lance-common|[GravitinoLanceNamespaceWrapper.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/lance/lance-common/src/main/java/org/apache/gravitino/lance/common/ops/gravitino/GravitinoLanceNamespaceWrapper.java)|23.53%|:red_circle:|
   ||[NamespaceWrapper.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/lance/lance-common/src/main/java/org/apache/gravitino/lance/common/ops/NamespaceWrapper.java)|0.0%|:red_circle:|
   ||[GravitinoLanceNameSpaceOperations.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/lance/lance-common/src/main/java/org/apache/gravitino/lance/common/ops/gravitino/GravitinoLanceNameSpaceOperations.java)|0.0%|:red_circle:|
   ||[GravitinoLanceTableOperations.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/lance/lance-common/src/main/java/org/apache/gravitino/lance/common/ops/gravitino/GravitinoLanceTableOperations.java)|0.0%|:red_circle:|
   |lance-rest-server|[LanceRESTService.java](https://github.com/lasdf1234/gravitino/blob/631e469305eb3f1ca189a23f6afc6032279ea176/lance/lance-rest-server/src/main/java/org/apache/gravitino/lance/LanceRESTService.java)|0.0%|:red_circle:|
   
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#12297] feat(secret): Add SecretManager and typed SecretBinding/SecretReference [gravitino]

Posted by "roryqi (via GitHub)" <gi...@apache.org>.
roryqi commented on code in PR #12375:
URL: https://github.com/apache/gravitino/pull/12375#discussion_r3719038299


##########
api/src/main/java/org/apache/gravitino/secret/SecretReference.java:
##########
@@ -0,0 +1,112 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.gravitino.secret;
+
+import static org.apache.gravitino.secret.SecretConstants.URN_PREFIX;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.Collections;
+import java.util.LinkedHashMap;
+import java.util.Map;
+import java.util.Objects;
+import javax.annotation.Nullable;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.gravitino.annotation.DeveloperApi;
+
+/**
+ * External secret locator for create/alter requests: a registered provider instance name plus
+ * provider-specific attributes. The server builds the URN; clients must not send a raw URN.
+ */
+@DeveloperApi
+public final class SecretReference {
+
+  private final String provider;
+  private final Map<String, String> attributes;

Review Comment:
   You should provide the basic fields here.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#12297] feat(secret): Add SecretManager and typed SecretBinding/SecretReference [gravitino]

Posted by "roryqi (via GitHub)" <gi...@apache.org>.
roryqi commented on code in PR #12375:
URL: https://github.com/apache/gravitino/pull/12375#discussion_r3719390307


##########
api/src/main/java/org/apache/gravitino/secret/SecretReference.java:
##########
@@ -0,0 +1,105 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.gravitino.secret;
+
+import static org.apache.gravitino.secret.SecretConstants.URN_PREFIX;
+
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.Collections;
+import java.util.LinkedHashMap;
+import java.util.Map;
+import java.util.Objects;
+import javax.annotation.Nullable;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.gravitino.annotation.Evolving;
+
+/**
+ * External secret locator for create/alter requests: a registered provider instance name plus
+ * provider-specific attributes. The server builds the URN; clients must not send a raw URN.
+ */
+@Evolving
+public final class SecretReference {
+
+  private final String provider;
+  private final Map<String, String> attributes;
+
+  /**
+   * Creates an external secret reference.
+   *
+   * @param provider registered provider instance name
+   * @param attributes provider-specific locator keys; {@code null} or empty means no attributes
+   */
+  public SecretReference(String provider, @Nullable Map<String, String> attributes) {

Review Comment:
   Why is nullable? We can add a argument check to make the code clearer.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#12297] feat(secret): Add SecretManager and typed SecretBinding/SecretReference [gravitino]

Posted by "roryqi (via GitHub)" <gi...@apache.org>.
roryqi merged PR #12375:
URL: https://github.com/apache/gravitino/pull/12375


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#12297] feat(secret): Add SecretManager and typed SecretBinding/SecretReference [gravitino]

Posted by "roryqi (via GitHub)" <gi...@apache.org>.
roryqi commented on code in PR #12375:
URL: https://github.com/apache/gravitino/pull/12375#discussion_r3719039535


##########
api/src/main/java/org/apache/gravitino/secret/SecretReference.java:
##########
@@ -0,0 +1,112 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.gravitino.secret;
+
+import static org.apache.gravitino.secret.SecretConstants.URN_PREFIX;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.Collections;
+import java.util.LinkedHashMap;
+import java.util.Map;
+import java.util.Objects;
+import javax.annotation.Nullable;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.gravitino.annotation.DeveloperApi;
+
+/**
+ * External secret locator for create/alter requests: a registered provider instance name plus
+ * provider-specific attributes. The server builds the URN; clients must not send a raw URN.
+ */
+@DeveloperApi

Review Comment:
   You shouldn't use this annotation here.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#12297] feat(secret): Add SecretManager and typed SecretBinding/SecretReference [gravitino]

Posted by "roryqi (via GitHub)" <gi...@apache.org>.
roryqi commented on code in PR #12375:
URL: https://github.com/apache/gravitino/pull/12375#discussion_r3719041654


##########
api/src/main/java/org/apache/gravitino/secret/SecretBinding.java:
##########
@@ -0,0 +1,97 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.gravitino.secret;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.google.common.base.Preconditions;
+import java.util.Objects;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.gravitino.annotation.DeveloperApi;
+
+/**
+ * Write-through secret binding for create/alter requests: a registered provider instance name plus
+ * plaintext to store.
+ */
+@DeveloperApi
+public final class SecretBinding {
+
+  private final String provider;
+  private final String value;

Review Comment:
   value isn't meaningful. Could u rename it?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#12297] feat(secret): Add SecretManager and typed SecretBinding/SecretReference [gravitino]

Posted by "lasdf1234 (via GitHub)" <gi...@apache.org>.
lasdf1234 commented on code in PR #12375:
URL: https://github.com/apache/gravitino/pull/12375#discussion_r3719155516


##########
api/src/main/java/org/apache/gravitino/secret/SecretReference.java:
##########
@@ -0,0 +1,112 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.gravitino.secret;
+
+import static org.apache.gravitino.secret.SecretConstants.URN_PREFIX;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.Collections;
+import java.util.LinkedHashMap;
+import java.util.Map;
+import java.util.Objects;
+import javax.annotation.Nullable;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.gravitino.annotation.DeveloperApi;
+
+/**
+ * External secret locator for create/alter requests: a registered provider instance name plus
+ * provider-specific attributes. The server builds the URN; clients must not send a raw URN.
+ */
+@DeveloperApi
+public final class SecretReference {
+
+  private final String provider;
+  private final Map<String, String> attributes;

Review Comment:
   Thank you for your review. This is a good question. However, different secret manager components have different attributes, and they do not share any common base fields.



##########
api/src/main/java/org/apache/gravitino/secret/SecretReference.java:
##########
@@ -0,0 +1,112 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.gravitino.secret;
+
+import static org.apache.gravitino.secret.SecretConstants.URN_PREFIX;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.Collections;
+import java.util.LinkedHashMap;
+import java.util.Map;
+import java.util.Objects;
+import javax.annotation.Nullable;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.gravitino.annotation.DeveloperApi;
+
+/**
+ * External secret locator for create/alter requests: a registered provider instance name plus
+ * provider-specific attributes. The server builds the URN; clients must not send a raw URN.
+ */
+@DeveloperApi

Review Comment:
   Got resolved.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#12297] feat(secret): Add SecretManager and typed SecretBinding/SecretReference [gravitino]

Posted by "lasdf1234 (via GitHub)" <gi...@apache.org>.
lasdf1234 commented on code in PR #12375:
URL: https://github.com/apache/gravitino/pull/12375#discussion_r3719158806


##########
api/src/main/java/org/apache/gravitino/secret/SecretBinding.java:
##########
@@ -0,0 +1,97 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.gravitino.secret;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.google.common.base.Preconditions;
+import java.util.Objects;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.gravitino.annotation.DeveloperApi;
+
+/**
+ * Write-through secret binding for create/alter requests: a registered provider instance name plus
+ * plaintext to store.
+ */
+@DeveloperApi
+public final class SecretBinding {
+
+  private final String provider;
+  private final String value;

Review Comment:
   Thank you for your review. I rename to palintext.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#12297] feat(secret): Add SecretManager and typed SecretBinding/SecretReference [gravitino]

Posted by "lasdf1234 (via GitHub)" <gi...@apache.org>.
lasdf1234 commented on PR #12375:
URL: https://github.com/apache/gravitino/pull/12375#issuecomment-5189244734

   Stacked follow-up for create API wiring: #12366 (branch `feat/entity-secrets-create-bindings-refs` is based on this branch).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org