Skip to content
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

[SWP-5969] - Allow missing credentials to make use of injected IAM role credentials #65

Merged
merged 5 commits into from
Nov 3, 2022

Conversation

jimmy718
Copy link
Contributor

@jimmy718 jimmy718 commented Nov 1, 2022

This is to support the migration from IAM users to IAM roles for applications running earlier versions of Laravel (< 8).

Copy link

@rickschubert rickschubert left a comment

Choose a reason for hiding this comment

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

This looks good! I will not request changes here but rather comment as PHP is not my field of expertise.

src/EventServiceProvider.php Show resolved Hide resolved
/**
* Make sure some AWS credentials were provided to the configuration array.
*
* @return bool

Choose a reason for hiding this comment

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

In this JavaDoc string, can you type the input argument as well?

Copy link
Contributor

@oaklees oaklees Nov 2, 2022

Choose a reason for hiding this comment

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

It's PHPDoc, which I guess is pretty much the same. We could indeed add @param array $config - for consistency, but believe we just took the code that was added as part of the PR to bring this functionality into the 0.4 branch.

Could we also bring in over the EventBridgeBroadcasterTest and SnsBroadcasterTest?

.github/workflows/run-tests.yml Show resolved Hide resolved
Copy link
Contributor

@oaklees oaklees left a comment

Choose a reason for hiding this comment

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

Good stuff. Only thing for me is also bringing the tests over that cover the introduced functionality, and then also a little into look into why we now need --no-scripts.

/**
* Make sure some AWS credentials were provided to the configuration array.
*
* @return bool
Copy link
Contributor

@oaklees oaklees Nov 2, 2022

Choose a reason for hiding this comment

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

It's PHPDoc, which I guess is pretty much the same. We could indeed add @param array $config - for consistency, but believe we just took the code that was added as part of the PR to bring this functionality into the 0.4 branch.

Could we also bring in over the EventBridgeBroadcasterTest and SnsBroadcasterTest?

src/EventServiceProvider.php Show resolved Hide resolved
.github/workflows/run-tests.yml Show resolved Hide resolved
Copy link
Contributor

@oaklees oaklees left a comment

Choose a reason for hiding this comment

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

Great stuff 🚢

Let's double check it works as expected with PP and then we can do the patch release 🚀

@jimmy718 jimmy718 merged commit 86a4cda into 0.0.x Nov 3, 2022
@jimmy718 jimmy718 deleted the 0.0.4 branch November 3, 2022 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants