cfn-vpn 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/docs/routes.md +1 -1
- data/lib/cfnvpn/actions/routes.rb +2 -2
- data/lib/cfnvpn/templates/vpn.rb +3 -3
- data/lib/cfnvpn/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 672ae92015c16fcc2ce33e05a22ca651b4974d4669d91115c2f5d49b36aa4062
|
|
4
|
+
data.tar.gz: 3e595961778b5d67112b6219d690cd589e8523813f22e7a3a196dfab6d77d59d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fee3ea79a3c51a77aaa5b6be535fc950ecfd32de121e6aadd363ef4def0af7fe201b414624036d9553f8a7158cb9e6fe16189972b599bcfd8df688c0dec09051
|
|
7
|
+
data.tar.gz: 4bcc5243d2365706f57d07bf2c0cbad79debde39952d8535407cd58fb26d5d1e77857cedbf0170d726c8a56c7f70a2a90a26349991a0c3a7bf51fd824eae2bb4
|
data/docs/routes.md
CHANGED
|
@@ -92,7 +92,7 @@ module CfnVpn::Actions
|
|
|
92
92
|
cidr: @options[:cidr],
|
|
93
93
|
desc: @options.fetch(:desc, ""),
|
|
94
94
|
subnet: @options.fetch(:subnet, @config[:subnet_ids].first),
|
|
95
|
-
groups: @options.fetch(
|
|
95
|
+
groups: @options.fetch(:groups, []) + @options.fetch(:add_groups, [])
|
|
96
96
|
}
|
|
97
97
|
elsif !@route && @options[:dns]
|
|
98
98
|
CfnVpn::Log.logger.info "adding new route lookup for dns record #{@options[:dns]}"
|
|
@@ -100,7 +100,7 @@ module CfnVpn::Actions
|
|
|
100
100
|
dns: @options[:dns],
|
|
101
101
|
desc: @options.fetch(:desc, ""),
|
|
102
102
|
subnet: @options.fetch(:subnet, @config[:subnet_ids].first),
|
|
103
|
-
groups: @options.fetch(
|
|
103
|
+
groups: @options.fetch(:groups, []) + @options.fetch(:add_groups, [])
|
|
104
104
|
}
|
|
105
105
|
else
|
|
106
106
|
@skip_update = true
|
data/lib/cfnvpn/templates/vpn.rb
CHANGED
|
@@ -163,7 +163,7 @@ module CfnVpn
|
|
|
163
163
|
if cidr_routes.any?
|
|
164
164
|
cidr_routes.each do |route|
|
|
165
165
|
EC2_ClientVpnRoute(:"#{route[:cidr].resource_safe}VpnRoute") {
|
|
166
|
-
Description "cfnvpn static route for #{route[:cidr]}. #{route[:desc]}"
|
|
166
|
+
Description "cfnvpn static route for #{route[:cidr]}. #{route[:desc]}".strip
|
|
167
167
|
ClientVpnEndpointId Ref(:ClientVpnEndpoint)
|
|
168
168
|
DestinationCidrBlock route[:cidr]
|
|
169
169
|
TargetVpcSubnetId route[:subnet]
|
|
@@ -172,7 +172,7 @@ module CfnVpn
|
|
|
172
172
|
if route[:groups].any?
|
|
173
173
|
route[:groups].each do |group|
|
|
174
174
|
EC2_ClientVpnAuthorizationRule(:"#{route[:cidr].resource_safe}AuthorizationRule#{group.resource_safe}"[0..255]) {
|
|
175
|
-
Description "cfnvpn static authorization rule for group #{group} to route #{route[:cidr]}. #{route[:desc]}"
|
|
175
|
+
Description "cfnvpn static authorization rule for group #{group} to route #{route[:cidr]}. #{route[:desc]}".strip
|
|
176
176
|
AccessGroupId group
|
|
177
177
|
ClientVpnEndpointId Ref(:ClientVpnEndpoint)
|
|
178
178
|
TargetNetworkCidr route[:cidr]
|
|
@@ -180,7 +180,7 @@ module CfnVpn
|
|
|
180
180
|
end
|
|
181
181
|
else
|
|
182
182
|
EC2_ClientVpnAuthorizationRule(:"#{route[:cidr].resource_safe}AllowAllAuthorizationRule") {
|
|
183
|
-
Description "cfnvpn static allow all authorization rule to route #{route[:cidr]}. #{route[:desc]}"
|
|
183
|
+
Description "cfnvpn static allow all authorization rule to route #{route[:cidr]}. #{route[:desc]}".strip
|
|
184
184
|
AuthorizeAllGroups true
|
|
185
185
|
ClientVpnEndpointId Ref(:ClientVpnEndpoint)
|
|
186
186
|
TargetNetworkCidr route[:cidr]
|
data/lib/cfnvpn/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cfn-vpn
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Guslington
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-04
|
|
11
|
+
date: 2021-06-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|
|
@@ -297,7 +297,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
297
297
|
- !ruby/object:Gem::Version
|
|
298
298
|
version: '0'
|
|
299
299
|
requirements: []
|
|
300
|
-
rubygems_version: 3.1.
|
|
300
|
+
rubygems_version: 3.1.6
|
|
301
301
|
signing_key:
|
|
302
302
|
specification_version: 4
|
|
303
303
|
summary: creates and manages resources for the aws client vpn
|