From 5c71a2772684c8cdeffc67a64d6e5a5ad4c8357f Mon Sep 17 00:00:00 2001 From: Alexey Temnikov Date: Tue, 1 Dec 2026 17:30:07 -0800 Subject: [PATCH 1/2] Sign the Tableau connector with GitHub OIDC The signer's artifact access role now trusts GitHub's OIDC provider for workflows on develop, replacing the long-lived IAM user access key. - Grant id-token: write (and contents: read) to build-taco. - Switch its credential step to configure-aws-credentials v6.3.1, pinned by SHA, with role-to-assume only. Drop the access key, secret key, ExternalId and session-tagging inputs, which do not apply to AssumeRoleWithWebIdentity. - Bump build-taco's upload-artifact from the retired v3 to v7; GitHub fails any job that uses a retired version, so signing could not run. --- .github/workflows/gradle.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 5c8ad26c..9e2a3bdf 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -180,6 +180,9 @@ jobs: SIGNING_ENABLED: ${{ github.event.inputs.signTacoFile }} name: Assemble Tableau Connector runs-on: ubuntu-latest + permissions: + contents: read + id-token: write # Request the GitHub OIDC token used for signing steps: - name: Check out the repo uses: actions/checkout@v2 @@ -200,14 +203,11 @@ jobs: - name: "Configure AWS credentials" if: ${{env.SIGNING_ENABLED == 'true'}} - uses: aws-actions/configure-aws-credentials@v1 + # GitHub OIDC. The signer role trusts only workflows on develop. + uses: aws-actions/configure-aws-credentials@45666896f5d8e0f10ae255413f3a4cdd03bdc8f5 # v6.3.1 with: - role-skip-session-tagging: true - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: us-west-2 role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - role-external-id: ${{ secrets.AWS_ROLE_EXTERNAL_ID }} role-duration-seconds: 3600 - name: Sign Taco File @@ -278,7 +278,7 @@ jobs: - name: Upload Build if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v7 with: name: documentdbjdbc-${{env.version}}-taco path: ./tableau-connector/target/ From 1ac1433df0843041e3345b688526294e53feab16 Mon Sep 17 00:00:00 2001 From: Alexey Temnikov Date: Tue, 1 Dec 2026 17:44:23 -0800 Subject: [PATCH 2/2] Install the Tableau connector packager with pip `python3 setup.py install` resolves dependencies with easy_install, which ignores Requires-Python. It now pulls packaging 26.4, which needs Python 3.10, into the Python 3.9 image, so the packager crashes on import ("unsupported operand type(s) for |") and build-taco fails before it produces a .taco. `pip install .` honors Requires-Python and skips pre-releases, so it picks versions that run on Python 3.9 (packaging 26.3, xmlschema 4.2.0, defusedxml 0.7.1). --- tableau-connector/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tableau-connector/Dockerfile b/tableau-connector/Dockerfile index edeba8ba..7fd826bf 100644 --- a/tableau-connector/Dockerfile +++ b/tableau-connector/Dockerfile @@ -9,6 +9,6 @@ RUN git clone https://github.com/tableau/connector-plugin-sdk.git &&\ cd connector-packager &&\ python3 -m venv .venv &&\ source ./.venv/bin/activate &&\ - python3 setup.py install &&\ + pip install . &&\ python3 -m connector_packager.package /tableau-connector ENTRYPOINT ["bash"] \ No newline at end of file