google-ssl-cert 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f56ae3e966d0cd58eb597d8321e74ca8f5131a00c0b0de0fff8b230760b0546
4
- data.tar.gz: '0987b6b7ddeb9ce1b9e3a6b7979c29d6e665e271be82db0da8181ea4377284fc'
3
+ metadata.gz: 233142ceef0ecf8ebad8d3c61781e77af33bcf0e9d069249378b684619313131
4
+ data.tar.gz: 6d9ee6e540e9d6d4f82090a8d8021bfc6b613a7b694d1c64631aa1cc66eb31d1
5
5
  SHA512:
6
- metadata.gz: 30dc68bef1c6d6590d4e8b691a2eb41e1719f053d6696ced2a848d9270ab2cfc4e4c794dfb69b1050e97bba1f30f59f864f89a7da830698d6be2904d922126fb
7
- data.tar.gz: 2b0f8963a89952e71501171484c7ecffed8cd22c252d9e9e22b426b5fda74dcda83e89eb3ba9ee9aeb931ced7750876922bb68a20569a174bbd388df38704c09
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
- $ google-ssl-cert create CERT_NAME
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 --cert-name cert-app1 --no-global
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 or
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 > 1 ? "certs" : "cert"
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
@@ -1,3 +1,3 @@
1
1
  module GoogleSslCert
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
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.0
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-10-31 00:00:00.000000000 Z
11
+ date: 2021-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport