Skip to content

Conversation

vymao
Copy link

@vymao vymao commented Sep 24, 2025

Right now, the secrets decorator injects the secrets into an AWS Batch job after the container has been set up. However, there may be times when secrets are necessary at the container setup entrypoint. This PR allows a user to specify a name and secrets ARN so that these can be passed into the job configuration at construction time in the form of {"name": NAME, "value_from": SECRETS_ARN}, so that the right fields can be set like in the AWS documentation.

SecretSpec.secret_spec_from_str(secret_spec_str_or_dict, role=role)
)
elif isinstance(secret_spec_str_or_dict, dict):
# If the dict is an ECS-style container-start secret spec, skip runtime fetching.
Copy link
Collaborator

Choose a reason for hiding this comment

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

this would break workloads running on EKS

Copy link
Author

Choose a reason for hiding this comment

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

Removed!

Copy link
Author

Choose a reason for hiding this comment

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

Hi @savingoyal, just checking if this works?

@vymao vymao requested a review from savingoyal September 26, 2025 13:27
@savingoyal savingoyal requested a review from saikonen October 6, 2025 17:06
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