Skip to content

[#12488] feat(kms): Identify keys by provider and keyId #2183

[#12488] feat(kms): Identify keys by provider and keyId

[#12488] feat(kms): Identify keys by provider and keyId #2183

#
# 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.
#
name: mcp-integration-test
on:
push:
branches: [ "main", "branch-*" ]
pull_request:
branches: [ "main", "branch-*" ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
changes:
runs-on: ubuntu-latest
outputs:
mcp_or_authz_changes: ${{ steps.filter.outputs.mcp_or_authz_changes }}
steps:
- uses: actions/checkout@v4
- name: Disable Git automatic maintenance
run: git config --local maintenance.auto false
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
id: filter
with:
filters: |
mcp_or_authz_changes:
- 'mcp-server/**'
- 'server/**'
- 'core/src/main/java/org/apache/gravitino/authorization/**'
- 'server-common/src/main/java/org/apache/gravitino/server/authentication/**'
- '.github/workflows/mcp-integration-test.yml'
mcp-authz-integration-test:
runs-on: ubuntu-latest
timeout-minutes: 60
needs: changes
if: needs.changes.outputs.mcp_or_authz_changes == 'true'
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-java-toolchains
with:
java-version: 17
- name: Install uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
- name: Build Gravitino distribution
run: ./gradlew compileDistribution -x test -PskipWeb=true
- name: Run MCP authorization integration test
env:
GRAVITINO_HOME: ${{ github.workspace }}/distribution/package
run: |
./mcp-server/dev/run_authz_integration_test.sh
- name: Upload server logs on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: mcp-authz-it-logs
path: |
distribution/package/logs/**
mcp-server/gravitino-mcp-audit.log
mcp-server/gravitino-mcp.log
if-no-files-found: ignore