google-ssl-cert 0.2.0 → 0.2.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/CHANGELOG.md +3 -0
- data/README.md +9 -6
- data/lib/google_ssl_cert/cli/prune.rb +1 -1
- data/lib/google_ssl_cert/version.rb +1 -1
- 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: 233142ceef0ecf8ebad8d3c61781e77af33bcf0e9d069249378b684619313131
|
4
|
+
data.tar.gz: 6d9ee6e540e9d6d4f82090a8d8021bfc6b613a7b694d1c64631aa1cc66eb31d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b94ccf7357e24e6c10e15cef0cc068284caac464058085bdc091a4b8c79174359427ee2a9dc7c7aa6c9d964ae01b85e94ab27998daa3dfc23c35f15e6366723
|
7
|
+
data.tar.gz: 3edc6b4323178a1582398f855c4ab6c0b6afe6b6d8d1b01f665b3f981935f313d341ed7eedb1ed24252250ff6aba9fd54439f5549d58d136f8d7d6a59092a8cf
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,9 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
5
5
|
|
6
|
+
## [0.2.1] - 2021-11-01
|
7
|
+
- correct certs word pluralization
|
8
|
+
|
6
9
|
## [0.2.0] - 2021-10-31
|
7
10
|
- [#1](https://github.com/boltops-tools/google-ssl-cert/pull/1) Cert name
|
8
11
|
- require cert name in interface, conventionally name secret instead
|
data/README.md
CHANGED
@@ -48,9 +48,13 @@ Make sure you have the cert files in your current folder:
|
|
48
48
|
$ ls
|
49
49
|
private.key certificate.crt
|
50
50
|
|
51
|
-
Command synopsys
|
51
|
+
Command synopsys:
|
52
52
|
|
53
|
-
|
53
|
+
google-ssl-cert create CERT_NAME
|
54
|
+
|
55
|
+
Note: Google ssl cert names can only contain letters, numbers, and dashes. Underscores are not allowed.
|
56
|
+
|
57
|
+
Example:
|
54
58
|
|
55
59
|
$ google-ssl-cert create cert-app1
|
56
60
|
Global cert created: cert-app1-global-20211021155725
|
@@ -72,7 +76,7 @@ Check that cert and secret was created on google cloud:
|
|
72
76
|
|
73
77
|
If you need to create a region cert instead, IE: for internal load balancers, specify the `--no-global` flag. Example:
|
74
78
|
|
75
|
-
$ google-ssl-cert create
|
79
|
+
$ google-ssl-cert create cert-app1 --no-global
|
76
80
|
Region cert created: cert-app1-us-central1-20211021155852 in region: us-central1
|
77
81
|
Secret saved: name: cert-app1 value: cert-app1-us-central1-20211021155852
|
78
82
|
|
@@ -88,8 +92,7 @@ These env vars should be set:
|
|
88
92
|
|
89
93
|
Name | Description
|
90
94
|
--- | ---
|
91
|
-
GOOGLE\_APPLICATION_CREDENTIALS
|
92
|
-
GOOGLE_CREDENTIALS | A service account as must be set up. `GOOGLE_APPLICATION_CREDENTIALS` is set to the path of the file. `GOOGLE_CREDENTIALS` is set as the full json data structure. IE: `export GOOGLE_APPLICATION_CREDENTIALS=~/.gcp/credentials.json`
|
95
|
+
GOOGLE\_APPLICATION_CREDENTIALS | A service account as must be set up. `GOOGLE_APPLICATION_CREDENTIALS` is set to the path of the file. IE: `export GOOGLE_APPLICATION_CREDENTIALS=~/.gcp/credentials.json`
|
93
96
|
GOOGLE_PROJECT | The env var `GOOGLE_PROJECT` and must be set.
|
94
97
|
GOOGLE_REGION | The env var `GOOGLE_REGION` and must be set when creating a region-based google ssl cert. So when using the `--no-global` flag
|
95
98
|
|
@@ -123,7 +126,7 @@ The tool is able to detect it and automatically use those files to create the ce
|
|
123
126
|
|
124
127
|
You can also specify the path to the certificate and private key explicitly:
|
125
128
|
|
126
|
-
google-ssl-cert create --private-key server.key --certificate server.crt
|
129
|
+
google-ssl-cert create cert-app1 --private-key server.key --certificate server.crt
|
127
130
|
|
128
131
|
## Prune
|
129
132
|
|
@@ -14,7 +14,7 @@ class GoogleSslCert::CLI
|
|
14
14
|
logger.info " #{cert.name}"
|
15
15
|
end
|
16
16
|
end
|
17
|
-
cert_word = keep
|
17
|
+
cert_word = keep == 1 ? "cert" : "certs"
|
18
18
|
logger.info "Keeping #{keep} #{cert_word}."
|
19
19
|
logger.info "No certs to prune with base cert name: #{cert_base_name}"
|
20
20
|
return
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-ssl-cert
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|