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

Some ARN validation #51

Open
aidansteele opened this issue Sep 10, 2018 · 0 comments
Open

Some ARN validation #51

aidansteele opened this issue Sep 10, 2018 · 0 comments

Comments

@aidansteele
Copy link
Contributor

E.g. We know that KMS keys should begin with aws:arn:kms:<region>:<accountid> where regions alway follow a certain format and account IDs are always numeric. Return a nice error message rather than:

2018/09/11 10:35:48 Encryption error: RequestError: send request failed
caused by: Post https://kms.us-east-1a.amazonaws.com/: dial tcp: lookup kms.us-east-1a.amazonaws.com on 10.224.50.10:53: no such host

Which is caused by an accidental us-east-1a as the region.

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

No branches or pull requests

1 participant