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

WIP: Ignore provided 'region' if 'credentialScope' is defined #258

Open
wants to merge 2 commits into
base: release/0.39
Choose a base branch
from

Conversation

meis
Copy link
Contributor

@meis meis commented Jun 20, 2018

If we end in a rule with 'credentialScope', we probably want to ignore
the 'region' even if the user has defined one.

Request to rules with 'credentialScope' are only going to succeed with
the region in it, so if the user (mistakenly or not) has a 'region'
defined the request will fail.

It may be nice, though, to leave a WARNING if 'region' is defined and is
different from the one in 'credentialScope'.

If we end in a rule with 'credentialScope', we probably want to ignore
the 'region' even if the user has defined one.

Request to rules with 'credentialScope' are only going to succeed with
the region in it, so if the user (mistakenly or not) has a 'region'
defined the request will fail.

It may be nice, though, to leave a WARNING if 'region' is defined and is
different from the one in 'credentialScope'.
@pplu
Copy link
Owner

pplu commented Jun 20, 2018

Hi,

I've imported the branch so travis runs the full test suite: it looks like the code was there to let the user specify with what region to sign when a custom endpoint is specified. t/06_endpoint_override.t is failing https://travis-ci.org/pplu/aws-sdk-perl/branches

@meis meis changed the title Ignore provided 'region' if 'credentialScope' is defined WIP: Ignore provided 'region' if 'credentialScope' is defined Jun 21, 2018
@meis
Copy link
Contributor Author

meis commented Jun 21, 2018

I've added a new commit that AFAIK greens everything again.

I'm not really sure if you want to do this, tho. I don't like the hacky approach but I'm really not familiar with the codebase to come up with a better solution. Maybe it's a problem we don't need to solve.

Give it a glance and maybe we can discuss it at some point.

@pplu pplu changed the base branch from master to release/0.39 November 22, 2018 19:29
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.

None yet

2 participants