Repository navigation
Sign Tableau connector with GitHub OIDC instead of IAM user keys - #578
Open
alexey-temnikov wants to merge 2 commits into
Open
alexey-temnikov wants to merge 2 commits into
alexey-temnikov wants to merge 2 commits into
Conversation
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.
`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).
alexey-temnikov
marked this pull request as ready for review
December 2, 2026 01:50
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Sign the Tableau connector (
.taco) with GitHub Actions OIDC instead of long-lived IAM user access keys.Description
The
build-tacojob ingradle.ymlassumes the signer's artifact access role with a stored IAM user access key. The same IAM user's key is already rejected in the ODBC repository, and long-lived keys shouldn't be used for this anyway. The signer role now also trusts GitHub's OIDC provider for this repository'sdevelopbranch (sub = repo:aws/amazon-documentdb-jdbc-driver:ref:refs/heads/develop,aud = sts.amazonaws.com). The old key-based trust stays in place until this path has produced a signed.taco.Changes in the
build-tacojob of.github/workflows/gradle.yml:permissions: { contents: read, id-token: write }so the job can request an OIDC token. The repository's default token is already read-only, so the only permission dropped ispackages: read, which this job doesn't use.configure-aws-credentials@v1to v6.3.1, pinned by commit SHA, with onlyaws-region,role-to-assumeandrole-duration-seconds. The access key, secret key, ExternalId and session-tagging inputs are removed because they don't apply toAssumeRoleWithWebIdentity.actions/upload-artifact@v3to@v7. GitHub fails any job that uses a retired version, sobuild-tacocan't run without this. This is the same bump as Update retired GitHub artifact actions in win-build workflow amazon-documentdb-odbc-driver#196. The job uploads one artifact per run, so v4+'s unique-name rule doesn't affect it.And in
tableau-connector/Dockerfile:pip install .instead ofpython3 setup.py install.setup.py installresolves dependencies with easy_install, which ignoresRequires-Python. It now pullspackaging26.4 (Python ≥ 3.10) into the Python 3.9 Alpine image, so the packager crashes on import (TypeError: unsupported operand type(s) for |) andbuild-tacofails before it produces a.taco(first CI run on this PR).piphonorsRequires-Pythonand skips pre-releases, so it pickspackaging26.3,xmlschema4.2.0 anddefusedxml0.7.1. I built the image locally with podman, and it produceddocumentdbjdbc-v1.14.0.0.taco.Signing still runs only on
workflow_dispatchwithsignTacoFile: true, through the existingif: env.SIGNING_ENABLED == 'true'guard. A dispatch from any branch other thandevelopfails at the credentials step, because the role only trustsdevelop. That is intended.Out of scope: the
buildjob still uses retired actions (upload-artifact@v1/@v2,cache@v1), so it fails at Set up job ("uses a deprecated version ofactions/cache: v1") on this PR and ondevelop. That needs a separate fix like #196. It isn't a required check.Assemble Tableau Connector(build-taco) passes on this PR and uploads the.tacoartifact.Testing. actionlint shows no new findings. The total drops from 10 to 8, and the remaining finding in
build-tacois the pre-existingactions/checkout@v2warning. The signed path can only be exercised after merge, because the role trustsdeveloponly.After merge
developwithsignTacoFile: true. Check that the.tacouploads, a signing job ID comes back, anddocumentdbjdbc-<version>-signed.tacodownloads.AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEYandAWS_ROLE_EXTERNAL_ID. KeepAWS_ROLE_TO_ASSUME,AWS_KEY,AWS_UNSIGNED_BUCKETandAWS_SIGNED_BUCKET.Related Issue
Companion to aws/amazon-documentdb-odbc-driver#197 (Windows installer signing over OIDC).
Additional Reviewers
@manojnks
@alexey-temnikov
@birschick-bq