Bootstrap: require user to pass Bastion remote access CIDRs #22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Background:
remote_access_cidr
variable. This is a list of CIDRs that are allowed SSH access to the Bastion.["0.0.0.0/0"]
, which allows access from anywhere.Modify this so that:
remote_access_cidr
in the Boostrap configuration. This means that users of the Bootstrap configuration must provide a value for this. This is a breaking change.0.0.0.0/0
If the user provides
null
explicitly, then access to the Bastion is prevented.The reviewer should consider whether the above is an appropriate balance of i. defaulting to security; ii. usability, both in terms of accessing the Bastion/nodes, and usability of the Terraform configuration given this is a new required variable.
In the
aws-quickstart
script:-b|--bastion-remote-access-cidr-blocks
required argument.The implementation of the aws-quickstart script is slightly messy, and an area of focus for the reviewer.