trocla 0.3.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/ruby.yml +24 -0
- data/.rspec +1 -1
- data/CHANGELOG.md +23 -0
- data/Gemfile +10 -36
- data/README.md +64 -5
- data/bin/trocla +57 -40
- data/lib/VERSION +1 -1
- data/lib/trocla/default_config.yaml +3 -4
- data/lib/trocla/encryptions/none.rb +0 -1
- data/lib/trocla/encryptions/ssl.rb +11 -11
- data/lib/trocla/encryptions.rb +12 -5
- data/lib/trocla/formats/bcrypt.rb +2 -2
- data/lib/trocla/formats/md5crypt.rb +2 -2
- data/lib/trocla/formats/mysql.rb +2 -2
- data/lib/trocla/formats/pgsql.rb +50 -3
- data/lib/trocla/formats/plain.rb +1 -3
- data/lib/trocla/formats/sha1.rb +1 -1
- data/lib/trocla/formats/sha256crypt.rb +2 -2
- data/lib/trocla/formats/sha512crypt.rb +2 -2
- data/lib/trocla/formats/ssha.rb +3 -3
- data/lib/trocla/formats/sshkey.rb +42 -0
- data/lib/trocla/formats/wireguard.rb +45 -0
- data/lib/trocla/formats/x509.rb +56 -46
- data/lib/trocla/formats.rb +15 -5
- data/lib/trocla/store.rb +24 -13
- data/lib/trocla/stores/memory.rb +26 -10
- data/lib/trocla/stores/moneta.rb +53 -17
- data/lib/trocla/stores/vault.rb +78 -0
- data/lib/trocla/stores.rb +3 -2
- data/lib/trocla/util.rb +28 -17
- data/lib/trocla/version.rb +7 -4
- data/lib/trocla.rb +51 -41
- data/spec/spec_helper.rb +13 -1
- data/spec/trocla/formats/pgsql_spec.rb +25 -0
- data/spec/trocla/formats/sshkey_spec.rb +52 -0
- data/spec/trocla/formats/x509_spec.rb +8 -1
- data/spec/trocla_spec.rb +43 -0
- data/trocla.gemspec +29 -26
- metadata +58 -12
- data/.travis.yml +0 -11
data/trocla.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: trocla 0.
|
5
|
+
# stub: trocla 0.5.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "trocla".freeze
|
9
|
-
s.version = "0.
|
9
|
+
s.version = "0.5.0"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["mh".freeze]
|
14
|
-
s.date = "
|
14
|
+
s.date = "2023-01-01"
|
15
15
|
s.description = "Trocla helps you to generate random passwords and to store them in various formats (plain, MD5, bcrypt) for later retrival.".freeze
|
16
16
|
s.email = "mh+trocla@immerda.ch".freeze
|
17
17
|
s.executables = ["trocla".freeze]
|
@@ -21,8 +21,8 @@ Gem::Specification.new do |s|
|
|
21
21
|
]
|
22
22
|
s.files = [
|
23
23
|
".document",
|
24
|
+
".github/workflows/ruby.yml",
|
24
25
|
".rspec",
|
25
|
-
".travis.yml",
|
26
26
|
"CHANGELOG.md",
|
27
27
|
"Gemfile",
|
28
28
|
"LICENSE.txt",
|
@@ -46,17 +46,22 @@ Gem::Specification.new do |s|
|
|
46
46
|
"lib/trocla/formats/sha256crypt.rb",
|
47
47
|
"lib/trocla/formats/sha512crypt.rb",
|
48
48
|
"lib/trocla/formats/ssha.rb",
|
49
|
+
"lib/trocla/formats/sshkey.rb",
|
50
|
+
"lib/trocla/formats/wireguard.rb",
|
49
51
|
"lib/trocla/formats/x509.rb",
|
50
52
|
"lib/trocla/store.rb",
|
51
53
|
"lib/trocla/stores.rb",
|
52
54
|
"lib/trocla/stores/memory.rb",
|
53
55
|
"lib/trocla/stores/moneta.rb",
|
56
|
+
"lib/trocla/stores/vault.rb",
|
54
57
|
"lib/trocla/util.rb",
|
55
58
|
"lib/trocla/version.rb",
|
56
59
|
"spec/data/.keep",
|
57
60
|
"spec/spec_helper.rb",
|
58
61
|
"spec/trocla/encryptions/none_spec.rb",
|
59
62
|
"spec/trocla/encryptions/ssl_spec.rb",
|
63
|
+
"spec/trocla/formats/pgsql_spec.rb",
|
64
|
+
"spec/trocla/formats/sshkey_spec.rb",
|
60
65
|
"spec/trocla/formats/x509_spec.rb",
|
61
66
|
"spec/trocla/store/memory_spec.rb",
|
62
67
|
"spec/trocla/store/moneta_spec.rb",
|
@@ -66,36 +71,34 @@ Gem::Specification.new do |s|
|
|
66
71
|
]
|
67
72
|
s.homepage = "https://tech.immerda.ch/2011/12/trocla-get-hashed-passwords-out-of-puppet-manifests/".freeze
|
68
73
|
s.licenses = ["GPLv3".freeze]
|
69
|
-
s.rubygems_version = "
|
74
|
+
s.rubygems_version = "3.3.26".freeze
|
70
75
|
s.summary = "Trocla a simple password generator and storage".freeze
|
71
76
|
|
72
77
|
if s.respond_to? :specification_version then
|
73
78
|
s.specification_version = 4
|
79
|
+
end
|
74
80
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
s.add_dependency(%q<bcrypt>.freeze, [">= 0"])
|
87
|
-
s.add_dependency(%q<rspec>.freeze, [">= 0"])
|
88
|
-
s.add_dependency(%q<rdoc>.freeze, [">= 0"])
|
89
|
-
s.add_dependency(%q<jeweler>.freeze, [">= 0"])
|
90
|
-
s.add_dependency(%q<rspec-pending_for>.freeze, [">= 0"])
|
91
|
-
end
|
81
|
+
if s.respond_to? :add_runtime_dependency then
|
82
|
+
s.add_runtime_dependency(%q<highline>.freeze, ["~> 2.0.0"])
|
83
|
+
s.add_runtime_dependency(%q<moneta>.freeze, ["~> 1.4.0"])
|
84
|
+
s.add_runtime_dependency(%q<bcrypt>.freeze, [">= 0"])
|
85
|
+
s.add_runtime_dependency(%q<openssl>.freeze, [">= 0"])
|
86
|
+
s.add_runtime_dependency(%q<sshkey>.freeze, [">= 0"])
|
87
|
+
s.add_development_dependency(%q<addressable>.freeze, [">= 0"])
|
88
|
+
s.add_development_dependency(%q<jeweler>.freeze, [">= 0"])
|
89
|
+
s.add_development_dependency(%q<rdoc>.freeze, [">= 0"])
|
90
|
+
s.add_development_dependency(%q<rspec>.freeze, [">= 0"])
|
91
|
+
s.add_development_dependency(%q<rspec-pending_for>.freeze, [">= 0"])
|
92
92
|
else
|
93
|
-
s.add_dependency(%q<
|
94
|
-
s.add_dependency(%q<
|
93
|
+
s.add_dependency(%q<highline>.freeze, ["~> 2.0.0"])
|
94
|
+
s.add_dependency(%q<moneta>.freeze, ["~> 1.4.0"])
|
95
95
|
s.add_dependency(%q<bcrypt>.freeze, [">= 0"])
|
96
|
-
s.add_dependency(%q<
|
97
|
-
s.add_dependency(%q<
|
96
|
+
s.add_dependency(%q<openssl>.freeze, [">= 0"])
|
97
|
+
s.add_dependency(%q<sshkey>.freeze, [">= 0"])
|
98
|
+
s.add_dependency(%q<addressable>.freeze, [">= 0"])
|
98
99
|
s.add_dependency(%q<jeweler>.freeze, [">= 0"])
|
100
|
+
s.add_dependency(%q<rdoc>.freeze, [">= 0"])
|
101
|
+
s.add_dependency(%q<rspec>.freeze, [">= 0"])
|
99
102
|
s.add_dependency(%q<rspec-pending_for>.freeze, [">= 0"])
|
100
103
|
end
|
101
104
|
end
|
metadata
CHANGED
@@ -1,17 +1,45 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trocla
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mh
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: highline
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.0.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.0.0
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: moneta
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.4.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.4.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bcrypt
|
15
43
|
requirement: !ruby/object:Gem::Requirement
|
16
44
|
requirements:
|
17
45
|
- - ">="
|
@@ -25,7 +53,7 @@ dependencies:
|
|
25
53
|
- !ruby/object:Gem::Version
|
26
54
|
version: '0'
|
27
55
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
56
|
+
name: openssl
|
29
57
|
requirement: !ruby/object:Gem::Requirement
|
30
58
|
requirements:
|
31
59
|
- - ">="
|
@@ -39,7 +67,7 @@ dependencies:
|
|
39
67
|
- !ruby/object:Gem::Version
|
40
68
|
version: '0'
|
41
69
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
70
|
+
name: sshkey
|
43
71
|
requirement: !ruby/object:Gem::Requirement
|
44
72
|
requirements:
|
45
73
|
- - ">="
|
@@ -53,7 +81,21 @@ dependencies:
|
|
53
81
|
- !ruby/object:Gem::Version
|
54
82
|
version: '0'
|
55
83
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
84
|
+
name: addressable
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: jeweler
|
57
99
|
requirement: !ruby/object:Gem::Requirement
|
58
100
|
requirements:
|
59
101
|
- - ">="
|
@@ -81,7 +123,7 @@ dependencies:
|
|
81
123
|
- !ruby/object:Gem::Version
|
82
124
|
version: '0'
|
83
125
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
126
|
+
name: rspec
|
85
127
|
requirement: !ruby/object:Gem::Requirement
|
86
128
|
requirements:
|
87
129
|
- - ">="
|
@@ -119,8 +161,8 @@ extra_rdoc_files:
|
|
119
161
|
- README.md
|
120
162
|
files:
|
121
163
|
- ".document"
|
164
|
+
- ".github/workflows/ruby.yml"
|
122
165
|
- ".rspec"
|
123
|
-
- ".travis.yml"
|
124
166
|
- CHANGELOG.md
|
125
167
|
- Gemfile
|
126
168
|
- LICENSE.txt
|
@@ -144,17 +186,22 @@ files:
|
|
144
186
|
- lib/trocla/formats/sha256crypt.rb
|
145
187
|
- lib/trocla/formats/sha512crypt.rb
|
146
188
|
- lib/trocla/formats/ssha.rb
|
189
|
+
- lib/trocla/formats/sshkey.rb
|
190
|
+
- lib/trocla/formats/wireguard.rb
|
147
191
|
- lib/trocla/formats/x509.rb
|
148
192
|
- lib/trocla/store.rb
|
149
193
|
- lib/trocla/stores.rb
|
150
194
|
- lib/trocla/stores/memory.rb
|
151
195
|
- lib/trocla/stores/moneta.rb
|
196
|
+
- lib/trocla/stores/vault.rb
|
152
197
|
- lib/trocla/util.rb
|
153
198
|
- lib/trocla/version.rb
|
154
199
|
- spec/data/.keep
|
155
200
|
- spec/spec_helper.rb
|
156
201
|
- spec/trocla/encryptions/none_spec.rb
|
157
202
|
- spec/trocla/encryptions/ssl_spec.rb
|
203
|
+
- spec/trocla/formats/pgsql_spec.rb
|
204
|
+
- spec/trocla/formats/sshkey_spec.rb
|
158
205
|
- spec/trocla/formats/x509_spec.rb
|
159
206
|
- spec/trocla/store/memory_spec.rb
|
160
207
|
- spec/trocla/store/moneta_spec.rb
|
@@ -165,7 +212,7 @@ homepage: https://tech.immerda.ch/2011/12/trocla-get-hashed-passwords-out-of-pup
|
|
165
212
|
licenses:
|
166
213
|
- GPLv3
|
167
214
|
metadata: {}
|
168
|
-
post_install_message:
|
215
|
+
post_install_message:
|
169
216
|
rdoc_options: []
|
170
217
|
require_paths:
|
171
218
|
- lib
|
@@ -180,9 +227,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
227
|
- !ruby/object:Gem::Version
|
181
228
|
version: '0'
|
182
229
|
requirements: []
|
183
|
-
|
184
|
-
|
185
|
-
signing_key:
|
230
|
+
rubygems_version: 3.3.26
|
231
|
+
signing_key:
|
186
232
|
specification_version: 4
|
187
233
|
summary: Trocla a simple password generator and storage
|
188
234
|
test_files: []
|