feat(auth): implement SigV4 authentication for REST catalog #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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. | |
| # AWS-related tests. The Ubuntu job builds with both ICEBERG_S3=ON and | |
| # ICEBERG_SIGV4=ON so the two AWS SDK consumers (Arrow's bundled AWS SDK | |
| # for S3, vcpkg-installed aws-cpp-sdk-core for SigV4) are linked together | |
| # — version conflicts would fail at link time. macOS exercises S3 only. | |
| name: AWS Tests | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| - '!dependabot/**' | |
| tags: | |
| - '**' | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| concurrency: | |
| group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| env: | |
| ICEBERG_HOME: /tmp/iceberg | |
| jobs: | |
| aws: | |
| if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} | |
| name: AWS (${{ matrix.title }}) | |
| runs-on: ${{ matrix.runs-on }} | |
| timeout-minutes: 45 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - title: AMD64 Ubuntu 24.04 | |
| runs-on: ubuntu-24.04 | |
| CC: gcc-14 | |
| CXX: g++-14 | |
| sigv4: "ON" | |
| - title: AArch64 macOS 26 | |
| runs-on: macos-26 | |
| sigv4: "OFF" | |
| env: | |
| ICEBERG_TEST_S3_URI: s3://iceberg-test | |
| AWS_ACCESS_KEY_ID: minio | |
| AWS_SECRET_ACCESS_KEY: minio123 | |
| AWS_DEFAULT_REGION: us-east-1 | |
| AWS_ENDPOINT_URL: http://127.0.0.1:9000 | |
| AWS_EC2_METADATA_DISABLED: "TRUE" | |
| steps: | |
| - name: Checkout iceberg-cpp | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Install dependencies on Ubuntu | |
| if: ${{ startsWith(matrix.runs-on, 'ubuntu') }} | |
| shell: bash | |
| run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev | |
| - name: Cache vcpkg packages | |
| if: ${{ matrix.sigv4 == 'ON' }} | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| id: vcpkg-cache | |
| with: | |
| path: /usr/local/share/vcpkg/installed | |
| key: vcpkg-x64-linux-aws-sdk-cpp-core-${{ hashFiles('.github/workflows/aws_test.yml') }} | |
| - name: Install AWS SDK via vcpkg | |
| if: ${{ matrix.sigv4 == 'ON' && steps.vcpkg-cache.outputs.cache-hit != 'true' }} | |
| shell: bash | |
| run: vcpkg install aws-sdk-cpp[core]:x64-linux | |
| - name: Set Ubuntu Compilers | |
| if: ${{ startsWith(matrix.runs-on, 'ubuntu') }} | |
| run: | | |
| echo "CC=${{ matrix.CC }}" >> $GITHUB_ENV | |
| echo "CXX=${{ matrix.CXX }}" >> $GITHUB_ENV | |
| - name: Install fmt on macOS | |
| if: ${{ startsWith(matrix.runs-on, 'macos') }} | |
| shell: bash | |
| run: | | |
| brew install fmt | |
| echo "CMAKE_PREFIX_PATH=$(brew --prefix fmt):${CMAKE_PREFIX_PATH:-}" >> "${GITHUB_ENV}" | |
| - name: Start MinIO | |
| shell: bash | |
| run: bash ci/scripts/start_minio.sh | |
| - name: Build and test Iceberg | |
| shell: bash | |
| env: | |
| CMAKE_TOOLCHAIN_FILE: ${{ matrix.sigv4 == 'ON' && '/usr/local/share/vcpkg/scripts/buildsystems/vcpkg.cmake' || '' }} | |
| run: ci/scripts/build_iceberg.sh "$(pwd)" OFF OFF ON ${{ matrix.sigv4 }} |