kms_encrypted 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -10
- data/LICENSE.txt +1 -1
- data/README.md +9 -0
- data/lib/kms_encrypted/model.rb +8 -7
- data/lib/kms_encrypted/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd32d5162572d1645342bbf2b41e11f5cdafc5dcd180e3482615f73df03d2158
|
4
|
+
data.tar.gz: 6751b51e2b74bf292b2b76f88783cf7e9aab8f1243ebbe8a54c8a79e3a51b76e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38659f6fa4e22615bba67cf9419c73aa996befc67cb969266d2b46caf6068622e8dab9c90ac63aa60c07ca99c9152eb930a280025999c1513666f5d07c51fe02
|
7
|
+
data.tar.gz: b9c0be48197d38e34d055fca992568b4736fcf29d6cf638e24598482f92e86c2dd016b09d517d8d43027ec451fd7fb56e75ee10a15b124f4bac390ee421b7fe6
|
data/CHANGELOG.md
CHANGED
@@ -1,15 +1,19 @@
|
|
1
|
-
## 1.1.
|
1
|
+
## 1.1.1 (2020-04-16)
|
2
|
+
|
3
|
+
- Fixed `SystemStackError` with `reload` and CarrierWave
|
4
|
+
|
5
|
+
## 1.1.0 (2019-07-09)
|
2
6
|
|
3
7
|
- Added support for Lockbox
|
4
8
|
- Dropped support for Rails 4.2
|
5
9
|
|
6
|
-
## 1.0.1
|
10
|
+
## 1.0.1 (2019-01-21)
|
7
11
|
|
8
12
|
- Added support for encryption and decryption outside models
|
9
13
|
- Added support for dynamic keys
|
10
14
|
- Fixed issue with inheritance
|
11
15
|
|
12
|
-
## 1.0.0
|
16
|
+
## 1.0.0 (2018-12-17)
|
13
17
|
|
14
18
|
- Added versioning
|
15
19
|
- Added `context_hash` method
|
@@ -20,38 +24,38 @@ Breaking changes
|
|
20
24
|
- ActiveSupport notifications were changed from `generate_data_key` and `decrypt_data_key` to `encrypt` and `decrypt`
|
21
25
|
- AWS KMS uses the `Encrypt` operation instead of `GenerateDataKey`
|
22
26
|
|
23
|
-
## 0.3.0
|
27
|
+
## 0.3.0 (2018-11-11)
|
24
28
|
|
25
29
|
- Added support for Vault
|
26
30
|
- Removed `KmsEncrypted.kms_client` and `KmsEncrypted.client_options` in favor of `KmsEncrypted.aws_client`
|
27
31
|
- Removed `KmsEncrypted::Google.kms_client` in favor of `KmsEncrypted.google_client`
|
28
32
|
|
29
|
-
## 0.2.0
|
33
|
+
## 0.2.0 (2018-02-23)
|
30
34
|
|
31
35
|
- Added support for Google KMS
|
32
36
|
|
33
|
-
## 0.1.4
|
37
|
+
## 0.1.4 (2017-12-03)
|
34
38
|
|
35
39
|
- Added `kms_keys` method to models
|
36
40
|
- Reset data keys when record is reloaded
|
37
41
|
- Added `kms_client`
|
38
42
|
- Added ActiveSupport notifications
|
39
43
|
|
40
|
-
## 0.1.3
|
44
|
+
## 0.1.3 (2017-12-01)
|
41
45
|
|
42
46
|
- Added test key
|
43
47
|
- Added `client_options`
|
44
48
|
- Allow private or protected `kms_encryption_context` method
|
45
49
|
|
46
|
-
## 0.1.2
|
50
|
+
## 0.1.2 (2017-09-25)
|
47
51
|
|
48
52
|
- Use `KMS_KEY_ID` env variable by default
|
49
53
|
|
50
|
-
## 0.1.1
|
54
|
+
## 0.1.1 (2017-09-23)
|
51
55
|
|
52
56
|
- Added key rotation
|
53
57
|
- Added support for multiple keys per record
|
54
58
|
|
55
|
-
## 0.1.0
|
59
|
+
## 0.1.0 (2017-09-23)
|
56
60
|
|
57
61
|
- First release
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -98,3 +98,12 @@ Everyone is encouraged to help improve this project. Here are a few ways you can
|
|
98
98
|
- Fix bugs and [submit pull requests](https://github.com/ankane/kms_encrypted/pulls)
|
99
99
|
- Write, clarify, or fix documentation
|
100
100
|
- Suggest or add new features
|
101
|
+
|
102
|
+
To get started with development and testing:
|
103
|
+
|
104
|
+
```sh
|
105
|
+
git clone https://github.com/ankane/kms_encrypted.git
|
106
|
+
cd kms_encrypted
|
107
|
+
bundle install
|
108
|
+
bundle exec rake test
|
109
|
+
```
|
data/lib/kms_encrypted/model.rb
CHANGED
@@ -55,16 +55,17 @@ module KmsEncrypted
|
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
58
|
-
# same pattern as attr_encrypted reload
|
59
58
|
if method_defined?(:reload)
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
59
|
+
m = Module.new do
|
60
|
+
define_method(:reload) do |*args, &block|
|
61
|
+
result = super(*args, &block)
|
62
|
+
self.class.kms_keys.keys.each do |key_method|
|
63
|
+
instance_variable_set("@#{key_method}", nil)
|
64
|
+
end
|
65
|
+
result
|
65
66
|
end
|
66
|
-
result
|
67
67
|
end
|
68
|
+
prepend m
|
68
69
|
end
|
69
70
|
end
|
70
71
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kms_encrypted
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -204,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
204
204
|
- !ruby/object:Gem::Version
|
205
205
|
version: '0'
|
206
206
|
requirements: []
|
207
|
-
rubygems_version: 3.
|
207
|
+
rubygems_version: 3.1.2
|
208
208
|
signing_key:
|
209
209
|
specification_version: 4
|
210
210
|
summary: Simple, secure key management for Lockbox and attr_encrypted
|