This is an automated email from the ASF dual-hosted git repository.

honahx pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git


The following commit(s) were added to refs/heads/main by this push:
     new e9731009b Delete ServiceSecretReference (#2768)
e9731009b is described below

commit e9731009be75ba4dbf437beafa6c223f462bf24a
Author: Rulin Xing <[email protected]>
AuthorDate: Tue Oct 7 13:57:46 2025 -0700

    Delete ServiceSecretReference (#2768)
---
 .../core/secrets/ServiceSecretReference.java       | 53 ----------------------
 1 file changed, 53 deletions(-)

diff --git 
a/polaris-core/src/main/java/org/apache/polaris/core/secrets/ServiceSecretReference.java
 
b/polaris-core/src/main/java/org/apache/polaris/core/secrets/ServiceSecretReference.java
deleted file mode 100644
index 1f08a4c53..000000000
--- 
a/polaris-core/src/main/java/org/apache/polaris/core/secrets/ServiceSecretReference.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * 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.polaris.core.secrets;
-
-import com.fasterxml.jackson.annotation.JsonProperty;
-import jakarta.annotation.Nonnull;
-import jakarta.annotation.Nullable;
-import java.util.Map;
-
-/**
- * Represents a "wrapped reference" to a service-owned secret that holds an 
identifier to retrieve
- * possibly remotely-stored secret material, along with an open-ended 
"referencePayload" that is
- * specific to an implementation of the secret storage and which is needed 
"unwrap" the actual
- * secret in combination with whatever is stored in the remote secrets storage.
- */
-public class ServiceSecretReference extends SecretReference {
-  /**
-   * @param urn A string which should be self-sufficient to retrieve whatever 
secret material that
-   *     is stored in the remote secret store. e.g.,
-   *     
'urn:polaris-service-secret:&lt;service-manager-type&gt;:&lt;type-specific-identifier&gt;
-   * @param referencePayload Optionally, any additional information that is 
necessary to fully
-   *     reconstitute the original secret based on what is retrieved by the 
{@code urn}; this
-   *     payload may include hashes/checksums, encryption key ids, OTP 
encryption keys, additional
-   *     protocol/version specifiers, etc., which are implementation-specific.
-   */
-  public ServiceSecretReference(
-      @JsonProperty(value = "urn", required = true) @Nonnull String urn,
-      @JsonProperty(value = "referencePayload") @Nullable Map<String, String> 
referencePayload) {
-    super(urn, referencePayload);
-  }
-
-  @Override
-  public boolean equals(Object obj) {
-    return obj instanceof ServiceSecretReference && super.equals(obj);
-  }
-}

Reply via email to