Skip to content

Sign Tableau connector with GitHub OIDC instead of IAM user keys - #578

Open
alexey-temnikov wants to merge 2 commits into
developfrom
alexeyt/oidc-signing
Open

alexey-temnikov wants to merge 2 commits into
developfrom
alexeyt/oidc-signing

Conversation

@alexey-temnikov

@alexey-temnikov alexey-temnikov commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Sign the Tableau connector (.taco) with GitHub Actions OIDC instead of long-lived IAM user access keys.

Description

The build-taco job in gradle.yml assumes 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's develop branch (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-taco job of .github/workflows/gradle.yml:

  • Add 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 is packages: read, which this job doesn't use.
  • Move "Configure AWS credentials" from configure-aws-credentials@v1 to v6.3.1, pinned by commit SHA, with only aws-region, role-to-assume and role-duration-seconds. The access key, secret key, ExternalId and session-tagging inputs are removed because they don't apply to AssumeRoleWithWebIdentity.
  • Bump "Upload Build" from the retired actions/upload-artifact@v3 to @v7. GitHub fails any job that uses a retired version, so build-taco can'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:

  • Install the Tableau connector packager with pip install . instead of python3 setup.py install. setup.py install resolves dependencies with easy_install, which ignores Requires-Python. It now pulls packaging 26.4 (Python ≥ 3.10) into the Python 3.9 Alpine image, so the packager crashes on import (TypeError: unsupported operand type(s) for |) and build-taco fails before it produces a .taco (first CI run on this PR). pip honors Requires-Python and skips pre-releases, so it picks packaging 26.3, xmlschema 4.2.0 and defusedxml 0.7.1. I built the image locally with podman, and it produced documentdbjdbc-v1.14.0.0.taco.

Signing still runs only on workflow_dispatch with signTacoFile: true, through the existing if: env.SIGNING_ENABLED == 'true' guard. A dispatch from any branch other than develop fails at the credentials step, because the role only trusts develop. That is intended.

Out of scope: the build job still uses retired actions (upload-artifact@v1/@v2, cache@v1), so it fails at Set up job ("uses a deprecated version of actions/cache: v1") on this PR and on develop. 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 .taco artifact.

Testing. actionlint shows no new findings. The total drops from 10 to 8, and the remaining finding in build-taco is the pre-existing actions/checkout@v2 warning. The signed path can only be exercised after merge, because the role trusts develop only.

After merge

  1. Once the signer stack change is deployed, run the workflow from develop with signTacoFile: true. Check that the .taco uploads, a signing job ID comes back, and documentdbjdbc-<version>-signed.taco downloads.
  2. Then delete the secrets that are no longer used: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_ROLE_EXTERNAL_ID. Keep AWS_ROLE_TO_ASSUME, AWS_KEY, AWS_UNSIGNED_BUCKET and AWS_SIGNED_BUCKET.

Related Issue

Companion to aws/amazon-documentdb-odbc-driver#197 (Windows installer signing over OIDC).

Additional Reviewers

@manojnks
@alexey-temnikov
@birschick-bq

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
alexey-temnikov marked this pull request as ready for review December 2, 2026 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant