krates 1.6.5 → 1.6.6
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/VERSION +1 -1
- data/lib/kontena/cli/certificate/authorize_command.rb +2 -13
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f147a03b4b6bd5ea2956934a29b458501d79116d7dcf90b1abbb4dd980baaef
|
4
|
+
data.tar.gz: 543e567670bf975364cb37640501214cba39728c627d3d6976a402f1298932d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3617342d32e1fa26daa1b0f5ab34afa87a9f3de4d25dc6ed59453b8a48c7f43b708ef69fc7ad261960e446069801681e08f8ba5d7c6fd366bd30ba92b6de1eea
|
7
|
+
data.tar.gz: f19aa4e339daebecec12b1d9a7263d31d42d5bca1f6cfdf647970e398a69f1c3e9366012d1f6ce2765a07ef6084d9d01107b85f3da32ba822fadd948031bc9ae
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.6.
|
1
|
+
1.6.6
|
@@ -10,8 +10,8 @@ module Kontena::Cli::Certificate
|
|
10
10
|
|
11
11
|
parameter "DOMAIN", "Domain to authorize"
|
12
12
|
|
13
|
-
option '--type', 'AUTHORIZATION_TYPE', 'Authorization type, either http-01
|
14
|
-
option '--linked-service', "LINKED_SERVICE", 'A service (usually LB) where the http-01
|
13
|
+
option '--type', 'AUTHORIZATION_TYPE', 'Authorization type, either http-01 or dns-01', default: 'http-01'
|
14
|
+
option '--linked-service', "LINKED_SERVICE", 'A service (usually LB) where the http-01 challenge is deployed to'
|
15
15
|
|
16
16
|
requires_current_master
|
17
17
|
requires_current_master_token
|
@@ -23,8 +23,6 @@ module Kontena::Cli::Certificate
|
|
23
23
|
false
|
24
24
|
when 'http-01'
|
25
25
|
true
|
26
|
-
when 'tls-sni-01'
|
27
|
-
true
|
28
26
|
else
|
29
27
|
fail "Invalid authorization --type=#{type}"
|
30
28
|
end
|
@@ -60,15 +58,6 @@ module Kontena::Cli::Certificate
|
|
60
58
|
else
|
61
59
|
puts "HTTP challenge is deployed, you can now request the actual certificate"
|
62
60
|
end
|
63
|
-
when 'tls-sni-01'
|
64
|
-
domain_auth = spinner "Waiting for tls-sni-01 challenge to be deployed into #{response.dig('linked_service', 'id').colorize(:cyan)} " do
|
65
|
-
wait_for_domain_auth_deployed(response)
|
66
|
-
end
|
67
|
-
if domain_auth['state'] == 'deploy_error'
|
68
|
-
exit_with_error "Linked services deploy failed. Check service events for details"
|
69
|
-
else
|
70
|
-
puts "TLS-SNI challenge certificate is deployed, you can now request the actual certificate"
|
71
|
-
end
|
72
61
|
else
|
73
62
|
exit_with_error "Unknown authorization type: #{self.type}"
|
74
63
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: krates
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Tsurbeleu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|