Skip to content

Allow passing of a roleArn to Scheduler #12889

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexw23
Copy link

@alexw23 alexw23 commented Oct 26, 2024

Summary

This PR addresses the issues highlighted in PR #11707 concerning the incorrect implementation of roleARN support for schedulers.

Problem

The current implementation defaults to using the Lambda function's role, which presents several logical and security concerns:

  1. A scheduler should not have the same permission boundaries as the Lambda function itself.
  2. Assigning InvokeFunction permissions to the function's role means that the function could potentially call itself—an unintended and potentially dangerous behavior.

Solution

This PR introduces the ability to override the default behavior by allowing roleARN to be explicitly specified, similar to the approach taken by AWS SAM (reference).

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