World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[#11550] docs(authn): Clarify Web UI Basic auth limits and relocate BasicAuthOperationsIT (#11551)
MaSaiee20a571b0ab
diff --git a/.github/workflows/idp-basic-test.yml b/.github/workflows/idp-basic-test.ymlindex cc584e7747..3591acea81 100644--- a/.github/workflows/idp-basic-test.yml+++ b/.github/workflows/idp-basic-test.yml@@ -22,6 +22,9 @@ jobs:filters: |source_changes:- plugins/idp-basic/**+ - clients/client-java/**+ - clients/client-java-runtime/**+ - integration-test-common/**- core/**- gradle/**- gradlewdiff --git a/clients/client-java/build.gradle.kts b/clients/client-java/build.gradle.ktsindex cf13fa07ed..b3850d71fe 100644--- a/clients/client-java/build.gradle.kts+++ b/clients/client-java/build.gradle.kts@@ -44,7 +44,6 @@ dependencies {testImplementation(project(":core"))testImplementation(project(":integration-test-common", "testArtifacts"))- testImplementation(project(":plugins:idp-basic"))testImplementation(project(":server"))testImplementation(project(":server-common"))diff --git a/docs/security/how-to-authenticate.md b/docs/security/how-to-authenticate.mdindex 5389d4a734..8cc2938a1e 100644--- a/docs/security/how-to-authenticate.md+++ b/docs/security/how-to-authenticate.md@@ -86,6 +86,14 @@ curl -v -X GET \http://localhost:8090/api/version```+:::note+The Web UI does not provide a username/password login form for built-in IDP Basic authentication.+Use REST clients, the Java/Python client, or engine connectors instead. See+[built-in IDP Web UI](how-to-use-built-in-idp.md#web-ui), the+[Web UI initial page](../webui.md#initial-page), and the+[Web V2 initial page](../webui-v2.md#initial-page).+:::+### OAuth ModeGravitino supports external OAuth 2.0 servers with two token validation methods:diff --git a/docs/security/how-to-use-built-in-idp.md b/docs/security/how-to-use-built-in-idp.mdindex c25461a414..0c0a621bc3 100644--- a/docs/security/how-to-use-built-in-idp.md+++ b/docs/security/how-to-use-built-in-idp.md@@ -19,6 +19,15 @@ and prefer [HTTPS](how-to-use-https.md) when credentials travel over the networkThis guide describes how to enable and operate the management APIs in `plugins:idp-basic`. Forrequest and response schemas, see the [Built-in IDP OpenAPI](../open-api/idp/openapi.yaml).+## Web UI++Built-in IdP is **incompatible** with the `simple` authenticator (the default). The Web UI does not+support signing in with built-in IDP Basic credentials. Login pages only handle `simple`+(username-only when authorization is enabled) and `oauth` (OIDC/OAuth) flows. If you need the Web UI+while built-in IdP is enabled, prefer [OAuth mode](how-to-authenticate.md#oauth-mode). For Basic+authentication, use the REST API, [Java/Python clients](how-to-authenticate.md#basic-mode), or+engine connectors instead.+---## Prerequisitesdiff --git a/docs/webui-v2.md b/docs/webui-v2.mdindex 1e0d154db4..79c446301e 100644--- a/docs/webui-v2.md+++ b/docs/webui-v2.md@@ -54,6 +54,12 @@ The Web V2 landing page depends on both the authentication mode and whether auth+:::note+Built-in IDP Basic authentication is not supported in the Web UI. The UI does not collect+username and password for this mode. Use the REST API, Java/Python clients, or engine connectors+instead. See [built-in IDP Web UI](security/how-to-use-built-in-idp.md#web-ui).+:::+### MetalakesOverview for Metalake in the Web V2.diff --git a/docs/webui.md b/docs/webui.mdindex 00d3478259..d93ae14598 100644--- a/docs/webui.md+++ b/docs/webui.md@@ -22,6 +22,12 @@ The web UI homepage displayed in Gravitino depends on the configuration parameteSet parameter for `gravitino.authenticators`, [`simple`](#simple-mode) or [`oauth`](#oauth-mode). Simple mode is the default authentication option. If multiple authenticators are set, the first one is taken by default.+:::note+Built-in IDP Basic authentication is not supported in the Web UI. The UI does not collect+username and password for this mode. Use the REST API, Java/Python clients, or engine connectors+instead. See [built-in IDP Web UI](security/how-to-use-built-in-idp.md#web-ui).+:::+:::tipAfter changing the configuration, make sure to restart the Gravitino server.diff --git a/clients/client-java/src/test/java/org/apache/gravitino/client/integration/test/authorization/BasicAuthOperationsIT.java b/plugins/idp-basic/src/test/java/org/apache/gravitino/idp/integration/test/BasicAuthOperationsIT.javasimilarity index 98%rename from clients/client-java/src/test/java/org/apache/gravitino/client/integration/test/authorization/BasicAuthOperationsIT.javarename to plugins/idp-basic/src/test/java/org/apache/gravitino/idp/integration/test/BasicAuthOperationsIT.javaindex 5d6242a20e..df16e56bf8 100644--- a/clients/client-java/src/test/java/org/apache/gravitino/client/integration/test/authorization/BasicAuthOperationsIT.java+++ b/plugins/idp-basic/src/test/java/org/apache/gravitino/idp/integration/test/BasicAuthOperationsIT.java@@ -16,7 +16,7 @@* specific language governing permissions and limitations* under the License.*/-package org.apache.gravitino.client.integration.test.authorization;+package org.apache.gravitino.idp.integration.test;import static org.apache.gravitino.integration.test.util.BaseIT.setEnv;