Skip to content

Add native OIDC authentication support to Modal cloud bucket mounts #4705

Description

@dabao12321

Add OIDC support for Modal cloud bucket mounts

Modal supports CloudBucketMount(oidc_auth_role_arn=...), but the Agents SDK ModalCloudBucketMountStrategy only supports static credentials or a named Modal Secret.

Some deployments cannot create long-lived AWS keys and instead require Modal to assume an IAM role through OIDC.

Could the adapter support:

ModalCloudBucketMountStrategy(
    oidc_auth_role_arn="arn:aws:iam::123456789012:role/modal-s3-reader",
)

The role ARN should pass through ModalCloudBucketMountConfig into:

modal.CloudBucketMount(
    ...,
    oidc_auth_role_arn=config.oidc_auth_role_arn,
)

OIDC should be mutually exclusive with secret_name and inline credentials. Existing Secret-backed behavior should remain unchanged.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions