Skip to content

[Messenger] Add sessionToken option to SQS transport #16411

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

Conversation

filkaris
Copy link
Contributor

Added new session_token in SQS Transport options

@carsonbot carsonbot added this to the 6.1 milestone Jan 18, 2022
fabpot added a commit to symfony/symfony that referenced this pull request Jan 19, 2022
…filkaris)

This PR was squashed before being merged into the 6.1 branch.

Discussion
----------

[Messenger] Add sessionToken option to SQS transport

| Q             | A
| ------------- | ---
| Branch?       | 6.1
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        | [symfony/symfony-docs#16411](symfony/symfony-docs#16411)

When trying to authenticate to use an SQS transport, AWS Credentials have 3 "keys"
- aws_access_key_id
- aws_secret_access_key
- aws_session_token

The last one, `aws_session_token` is only required for temporary credentials. In those cases though, it must be passed as well otherwise AWS returns a 403 Access Denied.

The async-aws library supports this in its configuration https://async-aws.com/configuration.html#sessiontoken

This MR essentially makes sure the user can pass this parameter inside yaml options

Commits
-------

d3bce0e [Messenger] Add sessionToken option to SQS transport
@wouterj wouterj force-pushed the messenger-add-session-token-option-to-sqs-transport branch from 7d25ced to 493e9b7 Compare May 1, 2022 11:49
@wouterj
Copy link
Member

wouterj commented May 1, 2022

Thank you @filkaris! It's great that you submitted a documentation PR alongside your code feature :)

@wouterj wouterj merged commit 7d6d2f6 into symfony:6.1 May 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants