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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e435821426e5e0e4cf69244013bf0ac1cd2ae030a024fb7b12827543f81c87af
4
- data.tar.gz: 9c8f7968839a339966f5eb8aa9680c625764c326f84946eb8bcf08d6da818cd1
3
+ metadata.gz: 672ae92015c16fcc2ce33e05a22ca651b4974d4669d91115c2f5d49b36aa4062
4
+ data.tar.gz: 3e595961778b5d67112b6219d690cd589e8523813f22e7a3a196dfab6d77d59d
5
5
  SHA512:
6
- metadata.gz: 305a236f13203b9ffd4d5d68fc6a87ff912700d3947420b02fa477b787f4c57768e9d4485c8a22bba354547449b3d39ef57811ee43a1d9093623ecad24b690ee
7
- data.tar.gz: 82f8ba462728afb71fc18e886c20fee0d9a5ea201a071262b6ead3bd83549f4c5eb58495c0603ee1567c94da90d8a3290b9d37fcf05312e1922678db529dcb15
6
+ metadata.gz: fee3ea79a3c51a77aaa5b6be535fc950ecfd32de121e6aadd363ef4def0af7fe201b414624036d9553f8a7158cb9e6fe16189972b599bcfd8df688c0dec09051
7
+ data.tar.gz: 4bcc5243d2365706f57d07bf2c0cbad79debde39952d8535407cd58fb26d5d1e77857cedbf0170d726c8a56c7f70a2a90a26349991a0c3a7bf51fd824eae2bb4
data/docs/routes.md CHANGED
@@ -85,7 +85,7 @@ routes:
85
85
  desc: route to prod peered vpc
86
86
  groups:
87
87
  - ops
88
- - cidr: example.com
88
+ - dns: example.com
89
89
  desc: my dev alb
90
90
  groups:
91
91
  - dev
@@ -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(@options[:groups], []) + @options.fetch(@options[:add_groups], [])
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(@options[:groups], []) + @options.fetch(@options[:add_groups], [])
103
+ groups: @options.fetch(:groups, []) + @options.fetch(:add_groups, [])
104
104
  }
105
105
  else
106
106
  @skip_update = true
@@ -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]
@@ -1,4 +1,4 @@
1
1
  module CfnVpn
2
- VERSION = "1.3.0".freeze
2
+ VERSION = "1.3.1".freeze
3
3
  CHANGE_SET_VERSION = VERSION.gsub('.', '-').freeze
4
4
  end
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.0
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-01 00:00:00.000000000 Z
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.4
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