Skip to content

Conversation

@davidreaver-stripe
Copy link

@davidreaver-stripe davidreaver-stripe commented Jul 26, 2025

Fixes #241

I thought I'd take a stab at this after being frustrated that we couldn't allowlist e.g. ec2.*.amazonaws.com. Currently, we can only allowlist a specific regional AWS endpoint like ec2.us-west-2.amazonaws.com, or *.amazonaws.com.

TODO:

  • More validation of prefix before .*.?
  • Add more tests
    • Add test rejecting .*.foo.com

cc @cds2-stripe @mbp-stripe @gauthamw-stripe

@coveralls
Copy link

Pull Request Test Coverage Report for Build 16542330822

Details

  • 19 of 19 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.3%) to 54.781%

Totals Coverage Status
Change from base Build 16517677014: 0.3%
Covered Lines: 1461
Relevant Lines: 2667

💛 - Coveralls

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.

Allow globs within hostnames?

2 participants