Skip to content

Security - refactor Tibanna to use IMDSv2 and IMDSv2 calls for metada…#415

Merged
alexander-veit merged 3 commits intomasterfrom
kellyb-imdsv2-refactor
Sep 24, 2025
Merged

Security - refactor Tibanna to use IMDSv2 and IMDSv2 calls for metada…#415
alexander-veit merged 3 commits intomasterfrom
kellyb-imdsv2-refactor

Conversation

@kellygavin96
Copy link
Contributor

I was able to refactor Tibanna so it works with IMDSv2. I tested the changes in a test AWS account using a local build of the Tibanna repo and it successfully launched IMDSv2 instances and ran the hello world pipeline.
The prebuilt DockerHub image doesn’t include these changes which is why my local ECR build worked but the public image didn’t.
Discussed with Will to review/merge my changes and once my PR is merged you'd just need to rebuild + push a new Tibanna Docker image so Tibanna jobs can use the IMDSv2-compatible version and be compliant with our HMS DBMI Cloud Security Standards.

@alexander-veit
Copy link
Member

Hi Kelly.
Thank you for this PR! I am currently testing it. Getting the EC2 metadata using IMDSv2 seems to work, but the new Docker image that I built seems to have some version issues. I don't think it's related to your changes - rebuilding the Docker image always has been a bit problematic. I will try to debug that next week. I want to get a successful workflow run before merging this.

Added explicit installation of ruamel.yaml==0.17.16 in Dockerfile to satisfy cwltool dependency. Removed a temporary log line from aws_run_workflow_generic.sh. Updated project version in pyproject.toml from 5.5.2.b2 to 5.5.2 for release.
Copy link
Member

@alexander-veit alexander-veit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this works as expected. The changes to awsf3/aws_run_workflow_generic.sh are backwards compatible.

@alexander-veit alexander-veit merged commit 02c2ee5 into master Sep 24, 2025
5 checks passed
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.

2 participants