You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@polaris.apache.org by sn...@apache.org on 2026/10/06 14:37:00 UTC
(polaris) branch main updated: Introduce `FlociAwsProfile` (#5714)
This is an automated email from the ASF dual-hosted git repository.
snazy 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 ade0dc59ce Introduce `FlociAwsProfile` (#5714)
ade0dc59ce is described below
commit ade0dc59cece98ece9db82abc680e673bc52edc6
Author: Robert Stupp <sn...@snazy.de>
AuthorDate: Tue Oct 6 16:36:55 2026 +0200
Introduce `FlociAwsProfile` (#5714)
Floci rejects unknwon access keys under "enforcement" since version 2.2.0.
This means that the access/secret keys that are reused from `MinioRustProfile` no longer work.
The change introduces a separate `FlociAwsProfile` with Floci's default provisioned `floci`/`floci` secret/access keys.
Unblocks #5709
---
.../it/AbstractRestCatalogFlociS3SpecialIT.java | 4 ++--
.../service/it/PolarisRestCatalogFlociS3IT.java | 8 +++----
.../service/it/RestCatalogFlociS3SpecialIT.java | 8 +++----
.../service/it/RestCatalogFlociS3SpecialKmsIT.java | 8 +++----
.../polaris/service/it/nosql/NoSqlCatalogIT.java | 20 ++++++++++++++---
.../polaris/test/commons/FlociAwsProfile.java} | 26 +++++++++++++++-------
6 files changed, 49 insertions(+), 25 deletions(-)
diff --git a/runtime/service/src/intTest/java/org/apache/polaris/service/it/AbstractRestCatalogFlociS3SpecialIT.java b/runtime/service/src/intTest/java/org/apache/polaris/service/it/AbstractRestCatalogFlociS3SpecialIT.java
index e00784015e..ff534b1cb5 100644
--- a/runtime/service/src/intTest/java/org/apache/polaris/service/it/AbstractRestCatalogFlociS3SpecialIT.java
+++ b/runtime/service/src/intTest/java/org/apache/polaris/service/it/AbstractRestCatalogFlociS3SpecialIT.java
@@ -28,8 +28,8 @@ import static org.apache.polaris.core.storage.StorageAccessProperty.AWS_KEY_ID;
import static org.apache.polaris.core.storage.StorageAccessProperty.AWS_SECRET_KEY;
import static org.apache.polaris.service.catalog.AccessDelegationMode.VENDED_CREDENTIALS;
import static org.apache.polaris.service.it.env.PolarisClient.polarisClient;
-import static org.apache.polaris.test.commons.MinioRustProfile.ACCESS_KEY;
-import static org.apache.polaris.test.commons.MinioRustProfile.SECRET_KEY;
+import static org.apache.polaris.test.commons.FlociAwsProfile.ACCESS_KEY;
+import static org.apache.polaris.test.commons.FlociAwsProfile.SECRET_KEY;
import static org.assertj.core.api.Assertions.assertThat;
import com.google.common.collect.ImmutableMap;
diff --git a/runtime/service/src/intTest/java/org/apache/polaris/service/it/PolarisRestCatalogFlociS3IT.java b/runtime/service/src/intTest/java/org/apache/polaris/service/it/PolarisRestCatalogFlociS3IT.java
index c1955cbd50..bbc4d41866 100644
--- a/runtime/service/src/intTest/java/org/apache/polaris/service/it/PolarisRestCatalogFlociS3IT.java
+++ b/runtime/service/src/intTest/java/org/apache/polaris/service/it/PolarisRestCatalogFlociS3IT.java
@@ -18,8 +18,8 @@
*/
package org.apache.polaris.service.it;
-import static org.apache.polaris.test.commons.MinioRustProfile.ACCESS_KEY;
-import static org.apache.polaris.test.commons.MinioRustProfile.SECRET_KEY;
+import static org.apache.polaris.test.commons.FlociAwsProfile.ACCESS_KEY;
+import static org.apache.polaris.test.commons.FlociAwsProfile.SECRET_KEY;
import com.google.common.collect.ImmutableMap;
import io.quarkus.test.common.QuarkusTestResource;
@@ -34,14 +34,14 @@ import org.apache.polaris.core.storage.StorageAccessProperty;
import org.apache.polaris.service.it.env.RestCatalogConfig;
import org.apache.polaris.service.it.ext.PolarisIntegrationTestExtension;
import org.apache.polaris.service.it.test.PolarisRestCatalogIntegrationBase;
-import org.apache.polaris.test.commons.MinioRustProfile;
+import org.apache.polaris.test.commons.FlociAwsProfile;
import org.apache.polaris.test.floci.aws.FlociAws;
import org.apache.polaris.test.floci.aws.FlociAwsAccess;
import org.apache.polaris.test.floci.aws.FlociAwsTestResource;
import org.junit.jupiter.api.extension.ExtendWith;
@QuarkusIntegrationTest
-@TestProfile(MinioRustProfile.class)
+@TestProfile(FlociAwsProfile.class)
@QuarkusTestResource(
value = FlociAwsTestResource.class,
initArgs = {
diff --git a/runtime/service/src/intTest/java/org/apache/polaris/service/it/RestCatalogFlociS3SpecialIT.java b/runtime/service/src/intTest/java/org/apache/polaris/service/it/RestCatalogFlociS3SpecialIT.java
index f7d0904ad5..33559eb91c 100644
--- a/runtime/service/src/intTest/java/org/apache/polaris/service/it/RestCatalogFlociS3SpecialIT.java
+++ b/runtime/service/src/intTest/java/org/apache/polaris/service/it/RestCatalogFlociS3SpecialIT.java
@@ -24,8 +24,8 @@ import static org.apache.iceberg.aws.s3.S3FileIOProperties.ACCESS_KEY_ID;
import static org.apache.iceberg.aws.s3.S3FileIOProperties.ENDPOINT;
import static org.apache.iceberg.aws.s3.S3FileIOProperties.SECRET_ACCESS_KEY;
import static org.apache.polaris.service.catalog.AccessDelegationMode.VENDED_CREDENTIALS;
-import static org.apache.polaris.test.commons.MinioRustProfile.ACCESS_KEY;
-import static org.apache.polaris.test.commons.MinioRustProfile.SECRET_KEY;
+import static org.apache.polaris.test.commons.FlociAwsProfile.ACCESS_KEY;
+import static org.apache.polaris.test.commons.FlociAwsProfile.SECRET_KEY;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
@@ -44,7 +44,7 @@ import org.apache.iceberg.catalog.TableIdentifier;
import org.apache.polaris.core.admin.model.AwsStorageConfigInfo;
import org.apache.polaris.service.catalog.AccessDelegationMode;
import org.apache.polaris.service.it.ext.PolarisIntegrationTestExtension;
-import org.apache.polaris.test.commons.MinioRustProfile;
+import org.apache.polaris.test.commons.FlociAwsProfile;
import org.apache.polaris.test.floci.aws.FlociAws;
import org.apache.polaris.test.floci.aws.FlociAwsAccess;
import org.apache.polaris.test.floci.aws.FlociAwsTestResource;
@@ -61,7 +61,7 @@ import org.junit.jupiter.params.provider.ValueSource;
* responses with some S3-specific options.
*/
@QuarkusIntegrationTest
-@TestProfile(MinioRustProfile.class)
+@TestProfile(FlociAwsProfile.class)
@QuarkusTestResource(
value = FlociAwsTestResource.class,
initArgs = {
diff --git a/runtime/service/src/intTest/java/org/apache/polaris/service/it/RestCatalogFlociS3SpecialKmsIT.java b/runtime/service/src/intTest/java/org/apache/polaris/service/it/RestCatalogFlociS3SpecialKmsIT.java
index 9370eb500a..069c1a5cd2 100644
--- a/runtime/service/src/intTest/java/org/apache/polaris/service/it/RestCatalogFlociS3SpecialKmsIT.java
+++ b/runtime/service/src/intTest/java/org/apache/polaris/service/it/RestCatalogFlociS3SpecialKmsIT.java
@@ -18,15 +18,15 @@
*/
package org.apache.polaris.service.it;
-import static org.apache.polaris.test.commons.MinioRustProfile.ACCESS_KEY;
-import static org.apache.polaris.test.commons.MinioRustProfile.SECRET_KEY;
+import static org.apache.polaris.test.commons.FlociAwsProfile.ACCESS_KEY;
+import static org.apache.polaris.test.commons.FlociAwsProfile.SECRET_KEY;
import io.quarkus.test.common.QuarkusTestResource;
import io.quarkus.test.common.ResourceArg;
import io.quarkus.test.junit.QuarkusIntegrationTest;
import io.quarkus.test.junit.TestProfile;
import org.apache.polaris.service.it.ext.PolarisIntegrationTestExtension;
-import org.apache.polaris.test.commons.MinioRustProfile;
+import org.apache.polaris.test.commons.FlociAwsProfile;
import org.apache.polaris.test.floci.aws.FlociAwsTestResource;
import org.junit.jupiter.api.TestInstance;
import org.junit.jupiter.api.extension.ExtendWith;
@@ -36,7 +36,7 @@ import org.junit.jupiter.api.extension.ExtendWith;
* enabled.
*/
@QuarkusIntegrationTest
-@TestProfile(MinioRustProfile.class)
+@TestProfile(FlociAwsProfile.class)
@QuarkusTestResource(
value = FlociAwsTestResource.class,
initArgs = {
diff --git a/runtime/service/src/intTest/java/org/apache/polaris/service/it/nosql/NoSqlCatalogIT.java b/runtime/service/src/intTest/java/org/apache/polaris/service/it/nosql/NoSqlCatalogIT.java
index 40f8a3b977..f72292a903 100644
--- a/runtime/service/src/intTest/java/org/apache/polaris/service/it/nosql/NoSqlCatalogIT.java
+++ b/runtime/service/src/intTest/java/org/apache/polaris/service/it/nosql/NoSqlCatalogIT.java
@@ -18,11 +18,25 @@
*/
package org.apache.polaris.service.it.nosql;
+import static org.apache.polaris.test.commons.NoSqlInMemoryProfile.NOSQL_PERSISTENCE;
+
+import com.google.common.collect.ImmutableMap;
import io.quarkus.test.junit.QuarkusIntegrationTest;
import io.quarkus.test.junit.TestProfile;
+import java.util.Map;
import org.apache.polaris.service.it.PolarisRestCatalogFlociS3IT;
-import org.apache.polaris.test.commons.NoSqlInMemoryProfile;
+import org.apache.polaris.test.commons.FlociAwsProfile;
@QuarkusIntegrationTest
-@TestProfile(value = NoSqlInMemoryProfile.class)
-public class NoSqlCatalogIT extends PolarisRestCatalogFlociS3IT {}
+@TestProfile(value = NoSqlCatalogIT.NoSqlCatalogProfile.class)
+public class NoSqlCatalogIT extends PolarisRestCatalogFlociS3IT {
+ public static class NoSqlCatalogProfile extends FlociAwsProfile {
+ @Override
+ public Map<String, String> getConfigOverrides() {
+ return ImmutableMap.<String, String>builder()
+ .putAll(NOSQL_PERSISTENCE)
+ .putAll(super.getConfigOverrides())
+ .build();
+ }
+ }
+}
diff --git a/runtime/service/src/intTest/java/org/apache/polaris/service/it/nosql/NoSqlCatalogIT.java b/runtime/test-common/src/main/java/org/apache/polaris/test/commons/FlociAwsProfile.java
similarity index 51%
copy from runtime/service/src/intTest/java/org/apache/polaris/service/it/nosql/NoSqlCatalogIT.java
copy to runtime/test-common/src/main/java/org/apache/polaris/test/commons/FlociAwsProfile.java
index 40f8a3b977..efc8b61aa0 100644
--- a/runtime/service/src/intTest/java/org/apache/polaris/service/it/nosql/NoSqlCatalogIT.java
+++ b/runtime/test-common/src/main/java/org/apache/polaris/test/commons/FlociAwsProfile.java
@@ -16,13 +16,23 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.apache.polaris.service.it.nosql;
+package org.apache.polaris.test.commons;
-import io.quarkus.test.junit.QuarkusIntegrationTest;
-import io.quarkus.test.junit.TestProfile;
-import org.apache.polaris.service.it.PolarisRestCatalogFlociS3IT;
-import org.apache.polaris.test.commons.NoSqlInMemoryProfile;
+import com.google.common.collect.ImmutableMap;
+import io.quarkus.test.junit.QuarkusTestProfile;
+import java.util.Map;
-@QuarkusIntegrationTest
-@TestProfile(value = NoSqlInMemoryProfile.class)
-public class NoSqlCatalogIT extends PolarisRestCatalogFlociS3IT {}
+public class FlociAwsProfile implements QuarkusTestProfile {
+ // Credentials for the deployer principal seeded by FlociAwsContainer under IAM enforcement.
+ public static final String ACCESS_KEY = "floci";
+ public static final String SECRET_KEY = "floci";
+
+ @Override
+ public Map<String, String> getConfigOverrides() {
+ return ImmutableMap.<String, String>builder()
+ .put("polaris.storage.aws.access-key", ACCESS_KEY)
+ .put("polaris.storage.aws.secret-key", SECRET_KEY)
+ .put("polaris.features.\"SKIP_CREDENTIAL_SUBSCOPING_INDIRECTION\"", "false")
+ .build();
+ }
+}