terrafying-components 1.10.3 → 1.10.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4d8b9785657811b48df047fad206a2b15f17a0d3e4296f3413f9a7560ed7681
|
4
|
+
data.tar.gz: 4d75ed2b269539e71f24d07092f74c59f3269c96a83f73a3b95966b34ac97c1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90a302fbff6a53f35b361612d08726889a689de593140d5c03164241a213e20e9a6273f50b8764d075579b03300d00a095bdc0a02823e372b1c16d0868ecbb25
|
7
|
+
data.tar.gz: 88d6e40c41f3b8fd302eae5910bd1a9dc4adfe01e1e3c9650a3b3e8078ddbb89d95b2fd5731d8249782f13522101b79b3d43cc2cd623ece6b0dcd19c754f2161
|
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
require 'terrafying/components/ca'
|
3
2
|
require 'terrafying/generator'
|
4
3
|
|
@@ -31,6 +30,7 @@ module Terrafying
|
|
31
30
|
@name = name
|
32
31
|
@bucket = bucket
|
33
32
|
@prefix = options[:prefix]
|
33
|
+
@algorithm = options[:algorithm] || "ECDSA"
|
34
34
|
|
35
35
|
@ident = "#{name}-ca"
|
36
36
|
|
@@ -55,12 +55,12 @@ module Terrafying
|
|
55
55
|
provider :tls, {}
|
56
56
|
|
57
57
|
resource :tls_private_key, @ident, {
|
58
|
-
algorithm:
|
58
|
+
algorithm: @algorithm,
|
59
59
|
ecdsa_curve: "P384",
|
60
60
|
}
|
61
61
|
|
62
62
|
resource :tls_self_signed_cert, @ident, {
|
63
|
-
key_algorithm:
|
63
|
+
key_algorithm: @algorithm,
|
64
64
|
private_key_pem: output_of(:tls_private_key, @ident, :private_key_pem),
|
65
65
|
subject: {
|
66
66
|
common_name: options[:common_name],
|
@@ -141,12 +141,12 @@ module Terrafying
|
|
141
141
|
key_ident = "#{@name}-#{tf_safe(name)}"
|
142
142
|
|
143
143
|
ctx.resource :tls_private_key, key_ident, {
|
144
|
-
algorithm:
|
144
|
+
algorithm: @algorithm,
|
145
145
|
ecdsa_curve: "P384",
|
146
146
|
}
|
147
147
|
|
148
148
|
ctx.resource :tls_cert_request, key_ident, {
|
149
|
-
key_algorithm:
|
149
|
+
key_algorithm: @algorithm,
|
150
150
|
private_key_pem: output_of(:tls_private_key, key_ident, :private_key_pem),
|
151
151
|
subject: {
|
152
152
|
common_name: options[:common_name],
|
@@ -158,7 +158,7 @@ module Terrafying
|
|
158
158
|
|
159
159
|
ctx.resource :tls_locally_signed_cert, key_ident, {
|
160
160
|
cert_request_pem: output_of(:tls_cert_request, key_ident, :cert_request_pem),
|
161
|
-
ca_key_algorithm:
|
161
|
+
ca_key_algorithm: @algorithm,
|
162
162
|
ca_private_key_pem: @ca_key,
|
163
163
|
ca_cert_pem: @ca_cert,
|
164
164
|
validity_period_hours: options[:validity_in_hours],
|