super_top_secret 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/super_top_secret/version.rb +1 -1
- data/lib/tasks/super_top_secret_tasks.rake +6 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 041b0d5e47a99d57d995723bb394b67c227551f7
|
4
|
+
data.tar.gz: 9f38fa1add91cda85c4017419b74c1d48eb58b92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c351d680d2179b86d78f5ffe6b73c863ce5ce02bcf36079d7f9bd622d9da24bf016e1782c2cfc1e3b1c50282d163d607e5bf55c459dde6e44a947a0115147c8
|
7
|
+
data.tar.gz: e0ec8a0f1c0e4758a0136cc865e121be8ec1212da475809658d761b6169cc7030209ff45dfbc126bdd2c1fcdc642b4040e48b16e33b17f706d94fbfc6e731f1b
|
@@ -2,12 +2,16 @@ namespace :secrets do
|
|
2
2
|
desc "Decrypt your secrets rake secrets:decrypt"
|
3
3
|
task :decrypt do
|
4
4
|
puts "Decrypting your files, sir"
|
5
|
-
|
5
|
+
%w(config/application.yml config/database.yml).each do |p|
|
6
|
+
sh("aws kms decrypt --ciphertext-blob fileb://#{p}.enc --output text --query Plaintext | base64 --decode > #{p}")
|
7
|
+
end
|
6
8
|
end
|
7
9
|
|
8
10
|
desc "Encrypt your secrets rake secrets:encrypt"
|
9
11
|
task :encrypt do
|
10
12
|
puts "Encrypting your files, sir"
|
11
|
-
|
13
|
+
%w(config/application.yml config/database.yml).each do |p|
|
14
|
+
sh("aws kms encrypt --key-id arn:aws:kms:us-west-2:155751353262:alias/properties --plaintext fileb://#{p} --output text --query CiphertextBlob | base64 --decode > #{p}.enc")
|
15
|
+
end
|
12
16
|
end
|
13
17
|
end
|