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

Adding support for Client IP Rules #205

Merged
merged 6 commits into from
Apr 18, 2024

Conversation

aaronmaxlevy
Copy link
Contributor

Adding support for Client IP Rules, as this is configurable from the web UI / dashboard, but isn't currently manageable via Terraform.

@daniel-corbett
Copy link
Collaborator

Hi @aaronmaxlevy - apologies for the delay here. Thanks for putting this together. Overall, it looks good to me. I would like to change this from a TypeSet to a TypeList - mostly because a TypeSet is for an "unordered collection of items" where as TypeList is documented as an ordered collection of items.

The reason for this suggested change is the documentation for the client IP headers says the following:

Headers will be used in order from top to bottom, meaning if the first header is not present in the request, the agent will proceed to check for the second header, and so on, until one of the listed headers is found.

So a user could want to control the order here.

I have staged a change locally and I can push it up to this branch but just wanted to check if you had any concerns with that switch.

@aaronmaxlevy
Copy link
Contributor Author

Thanks @daniel-corbett I am 100% on board with that change — go for it!

Thanks,
Aaron

@daniel-corbett daniel-corbett self-requested a review April 18, 2024 00:10
@daniel-corbett daniel-corbett merged commit 4c0233c into signalsciences:main Apr 18, 2024
2 checks passed
@daniel-corbett
Copy link
Collaborator

daniel-corbett commented Apr 18, 2024

Hi @aaronmaxlevy - thanks again for your contribution! This is now available in version 3.0.1. If you have not upgraded to 3.x yet please keep in mind it is a breaking change. We have a detailed guide here - please read it thoroughly:

https://registry.terraform.io/providers/signalsciences/sigsci/latest/docs/guides/3.0.0

@aaronmaxlevy
Copy link
Contributor Author

No problem! Thanks for the help and heads up!

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.

2 participants