legion-crypt 0.3.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rubocop-analysis.yml +41 -0
- data/.github/workflows/sourcehawk-scan.yml +20 -0
- data/.gitignore +5 -1
- data/.rubocop.yml +3 -1
- data/CHANGELOG.md +4 -0
- data/CODE_OF_CONDUCT.md +75 -0
- data/CONTRIBUTING.md +55 -0
- data/Gemfile +7 -2
- data/INDIVIDUAL_CONTRIBUTOR_LICENSE.md +30 -0
- data/LICENSE +201 -0
- data/NOTICE.txt +9 -0
- data/README.md +55 -2
- data/SECURITY.md +9 -0
- data/attribution.txt +1 -0
- data/legion-crypt.gemspec +18 -25
- data/lib/legion/crypt.rb +0 -3
- data/lib/legion/crypt/cipher.rb +3 -52
- data/lib/legion/crypt/cluster_secret.rb +121 -0
- data/lib/legion/crypt/version.rb +1 -1
- data/sourcehawk.yml +4 -0
- metadata +32 -119
- data/.circleci/config.yml +0 -105
- data/.rspec +0 -3
- data/Gemfile.lock +0 -123
- data/LICENSE.txt +0 -21
- data/Rakefile +0 -8
- data/bitbucket-pipelines.yml +0 -17
- data/settings/transport.json +0 -5
data/.circleci/config.yml
DELETED
@@ -1,105 +0,0 @@
|
|
1
|
-
version: 2.1
|
2
|
-
orbs:
|
3
|
-
ruby: circleci/ruby@1.1.2
|
4
|
-
sonarcloud: sonarsource/sonarcloud@1.0.2
|
5
|
-
|
6
|
-
jobs:
|
7
|
-
"rubocop":
|
8
|
-
docker:
|
9
|
-
- image: cimg/ruby:2.7
|
10
|
-
steps:
|
11
|
-
- checkout
|
12
|
-
- restore_cache:
|
13
|
-
key: "bundler cache mri"
|
14
|
-
- run: bundle update
|
15
|
-
- run: bundle exec rubocop --format=json --out=rubocop-result.json
|
16
|
-
- store_test_results:
|
17
|
-
path: rubocop-result.json
|
18
|
-
- sonarcloud/scan
|
19
|
-
- run: bundle exec rubocop
|
20
|
-
- save_cache:
|
21
|
-
key: "bundler cache mri"
|
22
|
-
paths:
|
23
|
-
- "/usr/local/bundle"
|
24
|
-
"ruby-two-five":
|
25
|
-
docker:
|
26
|
-
- image: cimg/ruby:2.5
|
27
|
-
steps:
|
28
|
-
- checkout
|
29
|
-
- restore_cache:
|
30
|
-
key: "bundler cache mri"
|
31
|
-
- run: bundle update
|
32
|
-
- save_cache:
|
33
|
-
key: "bundler cache mri"
|
34
|
-
paths:
|
35
|
-
- "/usr/local/bundle"
|
36
|
-
- run: bundle exec rspec --format progress --format RspecJunitFormatter -o rspec-results.xml
|
37
|
-
- store_test_results:
|
38
|
-
path: rspec-results.xml
|
39
|
-
- sonarcloud/scan
|
40
|
-
"ruby-two-six":
|
41
|
-
docker:
|
42
|
-
- image: cimg/ruby:2.6
|
43
|
-
steps:
|
44
|
-
- checkout
|
45
|
-
- restore_cache:
|
46
|
-
key: "bundler cache mri"
|
47
|
-
- run: bundle update
|
48
|
-
- save_cache:
|
49
|
-
key: "bundler cache mri"
|
50
|
-
paths:
|
51
|
-
- "/usr/local/bundle"
|
52
|
-
- run: bundle exec rspec --format progress --format RspecJunitFormatter -o rspec-results.xml
|
53
|
-
- store_test_results:
|
54
|
-
path: rspec-results.xml
|
55
|
-
- sonarcloud/scan
|
56
|
-
"ruby-two-seven":
|
57
|
-
docker:
|
58
|
-
- image: circleci/ruby:2.7
|
59
|
-
steps:
|
60
|
-
- checkout
|
61
|
-
- restore_cache:
|
62
|
-
key: "bundler cache mri"
|
63
|
-
- run: bundle update
|
64
|
-
- save_cache:
|
65
|
-
key: "bundler cache mri"
|
66
|
-
paths:
|
67
|
-
- "/usr/local/bundle"
|
68
|
-
- run: bundle exec rspec --format progress --format RspecJunitFormatter -o rspec-results.xml
|
69
|
-
- store_test_results:
|
70
|
-
path: rspec-results.xml
|
71
|
-
- sonarcloud/scan
|
72
|
-
"ruby-three":
|
73
|
-
docker:
|
74
|
-
- image: circleci/ruby:3
|
75
|
-
steps:
|
76
|
-
- checkout
|
77
|
-
- restore_cache:
|
78
|
-
key: "bundler cache mri"
|
79
|
-
- run: bundle update
|
80
|
-
- save_cache:
|
81
|
-
key: "bundler cache mri"
|
82
|
-
paths:
|
83
|
-
- "/usr/local/bundle"
|
84
|
-
- run: bundle exec rspec --format progress --format RspecJunitFormatter -o rspec-results.xml
|
85
|
-
- store_test_results:
|
86
|
-
path: rspec-results.xml
|
87
|
-
- sonarcloud/scan
|
88
|
-
|
89
|
-
workflows:
|
90
|
-
version: 2
|
91
|
-
rubocop-rspec:
|
92
|
-
jobs:
|
93
|
-
- rubocop
|
94
|
-
- ruby-two-five:
|
95
|
-
requires:
|
96
|
-
- rubocop
|
97
|
-
- ruby-two-six:
|
98
|
-
requires:
|
99
|
-
- ruby-two-five
|
100
|
-
- ruby-two-seven:
|
101
|
-
requires:
|
102
|
-
- ruby-two-five
|
103
|
-
- ruby-three:
|
104
|
-
requires:
|
105
|
-
- ruby-two-five
|
data/.rspec
DELETED
data/Gemfile.lock
DELETED
@@ -1,123 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
legion-crypt (0.2.4)
|
5
|
-
vault (>= 0.15.0)
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: https://rubygems.org/
|
9
|
-
specs:
|
10
|
-
amq-protocol (2.3.2)
|
11
|
-
ast (2.4.2)
|
12
|
-
aws-eventstream (1.1.0)
|
13
|
-
aws-sigv4 (1.2.2)
|
14
|
-
aws-eventstream (~> 1, >= 1.0.2)
|
15
|
-
bunny (2.17.0)
|
16
|
-
amq-protocol (~> 2.3, >= 2.3.1)
|
17
|
-
concurrent-ruby (1.1.8)
|
18
|
-
concurrent-ruby-ext (1.1.8)
|
19
|
-
concurrent-ruby (= 1.1.8)
|
20
|
-
connection_pool (2.2.3)
|
21
|
-
daemons (1.3.1)
|
22
|
-
dalli (2.7.11)
|
23
|
-
diff-lcs (1.4.4)
|
24
|
-
docile (1.3.5)
|
25
|
-
json (2.5.1)
|
26
|
-
json_pure (2.5.1)
|
27
|
-
legion-cache (1.1.1)
|
28
|
-
connection_pool (>= 2.2.3)
|
29
|
-
dalli (>= 2.7)
|
30
|
-
redis (>= 4.2)
|
31
|
-
legion-exceptions (1.1.5)
|
32
|
-
legion-json (1.1.4)
|
33
|
-
json_pure
|
34
|
-
legion-exceptions (>= 1.1.5)
|
35
|
-
multi_json
|
36
|
-
legion-logging (1.1.4)
|
37
|
-
rainbow (~> 3)
|
38
|
-
legion-settings (1.1.3)
|
39
|
-
legion-json
|
40
|
-
legion-logging
|
41
|
-
legion-transport (1.1.9)
|
42
|
-
bunny (>= 2.17.0)
|
43
|
-
concurrent-ruby (>= 1.1.7)
|
44
|
-
legion-json
|
45
|
-
legionio (0.4.2)
|
46
|
-
concurrent-ruby (>= 1.1.7)
|
47
|
-
concurrent-ruby-ext (>= 1.1.7)
|
48
|
-
daemons (>= 1.3.1)
|
49
|
-
legion-cache
|
50
|
-
legion-crypt (>= 0.2.0)
|
51
|
-
legion-exceptions
|
52
|
-
legion-json
|
53
|
-
legion-logging
|
54
|
-
legion-settings
|
55
|
-
legion-transport (>= 1.1.9)
|
56
|
-
lex-node
|
57
|
-
oj (>= 3.10)
|
58
|
-
thor (>= 1)
|
59
|
-
lex-node (0.1.4)
|
60
|
-
multi_json (1.15.0)
|
61
|
-
oj (3.11.2)
|
62
|
-
parallel (1.20.1)
|
63
|
-
parser (3.0.0.0)
|
64
|
-
ast (~> 2.4.1)
|
65
|
-
rainbow (3.0.0)
|
66
|
-
redis (4.2.5)
|
67
|
-
regexp_parser (2.1.1)
|
68
|
-
rexml (3.2.4)
|
69
|
-
rspec (3.10.0)
|
70
|
-
rspec-core (~> 3.10.0)
|
71
|
-
rspec-expectations (~> 3.10.0)
|
72
|
-
rspec-mocks (~> 3.10.0)
|
73
|
-
rspec-core (3.10.1)
|
74
|
-
rspec-support (~> 3.10.0)
|
75
|
-
rspec-expectations (3.10.1)
|
76
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
77
|
-
rspec-support (~> 3.10.0)
|
78
|
-
rspec-mocks (3.10.2)
|
79
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
80
|
-
rspec-support (~> 3.10.0)
|
81
|
-
rspec-support (3.10.2)
|
82
|
-
rspec_junit_formatter (0.4.1)
|
83
|
-
rspec-core (>= 2, < 4, != 2.12.0)
|
84
|
-
rubocop (1.11.0)
|
85
|
-
parallel (~> 1.10)
|
86
|
-
parser (>= 3.0.0.0)
|
87
|
-
rainbow (>= 2.2.2, < 4.0)
|
88
|
-
regexp_parser (>= 1.8, < 3.0)
|
89
|
-
rexml
|
90
|
-
rubocop-ast (>= 1.2.0, < 2.0)
|
91
|
-
ruby-progressbar (~> 1.7)
|
92
|
-
unicode-display_width (>= 1.4.0, < 3.0)
|
93
|
-
rubocop-ast (1.4.1)
|
94
|
-
parser (>= 2.7.1.5)
|
95
|
-
ruby-progressbar (1.11.0)
|
96
|
-
simplecov (0.17.1)
|
97
|
-
docile (~> 1.1)
|
98
|
-
json (>= 1.8, < 3)
|
99
|
-
simplecov-html (~> 0.10.0)
|
100
|
-
simplecov-html (0.10.2)
|
101
|
-
simplecov_json_formatter (0.1.2)
|
102
|
-
thor (1.1.0)
|
103
|
-
unicode-display_width (2.0.0)
|
104
|
-
vault (0.15.0)
|
105
|
-
aws-sigv4
|
106
|
-
|
107
|
-
PLATFORMS
|
108
|
-
ruby
|
109
|
-
|
110
|
-
DEPENDENCIES
|
111
|
-
legion-crypt!
|
112
|
-
legion-logging
|
113
|
-
legion-settings
|
114
|
-
legion-transport
|
115
|
-
legionio
|
116
|
-
rspec
|
117
|
-
rspec_junit_formatter
|
118
|
-
rubocop
|
119
|
-
simplecov (< 0.18.0)
|
120
|
-
simplecov_json_formatter
|
121
|
-
|
122
|
-
BUNDLED WITH
|
123
|
-
2.2.6
|
data/LICENSE.txt
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2020 Esity
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
data/Rakefile
DELETED
data/bitbucket-pipelines.yml
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
image: ruby:2.7
|
2
|
-
|
3
|
-
pipelines:
|
4
|
-
tags:
|
5
|
-
"v*":
|
6
|
-
- step:
|
7
|
-
name: Push to RubyGems
|
8
|
-
deployment: RubyGems
|
9
|
-
script:
|
10
|
-
- gem install gem-release
|
11
|
-
- (umask 077 ; echo $gem_creds | base64 --decode > ~/.gem/credentials)
|
12
|
-
- gem release
|
13
|
-
artifacts:
|
14
|
-
- pkg/**
|
15
|
-
definitions:
|
16
|
-
caches:
|
17
|
-
bundler: /usr/local/bundle
|