portunus 0.3.5 → 0.3.6
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/lib/portunus/tasks/rotate_keys.rake +4 -4
- data/lib/portunus/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7ce3eac0af0a8a0fa451fb24de5cdddbc7741ce5bf043e669b580b2ae8f7045d
|
|
4
|
+
data.tar.gz: 901ec596dc6b5ca9f2a304fd90fe5cb260bffce513209b3b28cfdbf98d199fd5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 721a12bf89394e876fac117f866e2938fb2a57805472fd53978cba626e6a9cbc82cf4c4462a6402ca31dbab2c8577a657cfe3445271df022b558d908db5d177d
|
|
7
|
+
data.tar.gz: 370cb0e5ae67bde8c1d0517586fd19802f14527337c087809578162411a06f7c97d9a109fc1f2c207557141ba474d42de75a66816e2f96e03f3ae90cb9aebbca
|
|
@@ -4,8 +4,8 @@ namespace :portunus do
|
|
|
4
4
|
scope = ::Portunus::DataEncryptionKey.
|
|
5
5
|
where(
|
|
6
6
|
"last_kek_rotation < ? or (created_at < ? and last_kek_rotation is null)",
|
|
7
|
-
::Portunus.configuration.max_key_duration,
|
|
8
|
-
::Portunus.configuration.max_key_duration
|
|
7
|
+
DateTime.now - ::Portunus.configuration.max_key_duration,
|
|
8
|
+
DateTime.now - ::Portunus.configuration.max_key_duration
|
|
9
9
|
)
|
|
10
10
|
|
|
11
11
|
scope.in_batches do |relation|
|
|
@@ -23,8 +23,8 @@ namespace :portunus do
|
|
|
23
23
|
scope = ::Portunus::DataEncryptionKey.
|
|
24
24
|
where(
|
|
25
25
|
"last_dek_rotation < ? or (created_at < ? and last_dek_rotation is null)",
|
|
26
|
-
::Portunus.configuration.max_key_duration,
|
|
27
|
-
::Portunus.configuration.max_key_duration
|
|
26
|
+
DateTime.now - ::Portunus.configuration.max_key_duration,
|
|
27
|
+
DateTime.now - ::Portunus.configuration.max_key_duration
|
|
28
28
|
)
|
|
29
29
|
end
|
|
30
30
|
scope.in_batches do |relation|
|
data/lib/portunus/version.rb
CHANGED