vault-rails 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47998d084dd52dda1d47a5f83744814782d82c0d
4
- data.tar.gz: 74419f45c8933e11f2ec4fef210c3b4fc876848c
3
+ metadata.gz: 98afdaeb972d07c15203204eba71e85774c70b99
4
+ data.tar.gz: '08f8f31d7ad2c281ae7319c5f244a77dd93baabc'
5
5
  SHA512:
6
- metadata.gz: 27a4208b7a3c8a8b398a5b108b01c275bddfa73a8ec1747580227307ea5f0f87b0c2d184c73fd4740cd6be54f50f7be36afbda5590c5cd44d8d513a678d7741b
7
- data.tar.gz: 0cbfe20010c58fcb42a9c39d4a1e5e5bc5543a3d7b48a93e22d62fb8db726a5d06acb6d3be974c15909ce1766216e83d4b7c40af1c1fced8754a3c4471d73e37
6
+ metadata.gz: 0aaf71cf850b874d57ca81e9cd8e9b17e4b9abdb3b9e60b427cdb32362c797782f7843b074771ba0436b6c5f3bead42006f7ad00cf065a005725b38736ff907b
7
+ data.tar.gz: 6c6217b1c5f0853247b3cccd57e71c5d55e168ba091c5a7aa4b69aa496fddcba388aff1d8798730411eb8cb159f983333e591859e3a8774ab2767af07da67557
data/lib/vault/rails.rb CHANGED
@@ -144,7 +144,7 @@ module Vault
144
144
 
145
145
  # Perform in-memory encryption. This is useful for testing and development.
146
146
  def memory_encrypt(path, key, plaintext, client)
147
- log_warning(DEV_WARNING)
147
+ log_warning(DEV_WARNING) if self.in_memory_warnings_enabled?
148
148
 
149
149
  return nil if plaintext.nil?
150
150
 
@@ -156,7 +156,7 @@ module Vault
156
156
 
157
157
  # Perform in-memory decryption. This is useful for testing and development.
158
158
  def memory_decrypt(path, key, ciphertext, client)
159
- log_warning(DEV_WARNING)
159
+ log_warning(DEV_WARNING) if self.in_memory_warnings_enabled?
160
160
 
161
161
  return nil if ciphertext.nil?
162
162
 
@@ -25,7 +25,7 @@ module Vault
25
25
 
26
26
  # Whether the connection to Vault is enabled. The default value is `false`,
27
27
  # which means vault-rails will perform in-memory encryption/decryption and
28
- # not attempt to talk to a reail Vault server. This is useful for
28
+ # not attempt to talk to a real Vault server. This is useful for
29
29
  # development and testing.
30
30
  #
31
31
  # @return [true, false]
@@ -49,6 +49,32 @@ module Vault
49
49
  @enabled = !!val
50
50
  end
51
51
 
52
+ # Whether warnings about in-memory ciphers are enabled. The default value
53
+ # is `true`, which means vault-rails will log a warning for every attempt
54
+ # to encrypt or decrypt using an in-memory cipher. This is useful for
55
+ # development and testing.
56
+ #
57
+ # @return [true, false]
58
+ def in_memory_warnings_enabled?
59
+ if !defined?(@in_memory_warnings_enabled) || @in_memory_warnings_enabled.nil?
60
+ return true
61
+ end
62
+ return @in_memory_warnings_enabled
63
+ end
64
+
65
+ # Sets whether warnings about in-memory ciphers are enabled. Users can set
66
+ # this in an initializer depending on their Rails environment.
67
+ #
68
+ # @example
69
+ # Vault.configure do |vault|
70
+ # vault.in_memory_warnings_enabled = !Rails.env.test?
71
+ # end
72
+ #
73
+ # @return [true, false]
74
+ def in_memory_warnings_enabled=(val)
75
+ @in_memory_warnings_enabled = val
76
+ end
77
+
52
78
  # Gets the number of retry attempts.
53
79
  #
54
80
  # @return [Fixnum]
@@ -1,5 +1,5 @@
1
1
  module Vault
2
2
  module Rails
3
- VERSION = "0.3.1"
3
+ VERSION = "0.3.2"
4
4
  end
5
5
  end
@@ -0,0 +1,43 @@
1
+ require "spec_helper"
2
+
3
+ describe Vault::Rails::Configurable do
4
+ subject do
5
+ Class.new.tap do |c|
6
+ c.class.instance_eval do
7
+ include Vault::Rails::Configurable
8
+ end
9
+ end
10
+ end
11
+
12
+ describe '.in_memory_warnings_enabled?' do
13
+ context 'when unconfigured' do
14
+ it 'returns true' do
15
+ expect(subject.in_memory_warnings_enabled?).to eq true
16
+ end
17
+ end
18
+
19
+ context 'when configured as on' do
20
+ before do
21
+ subject.configure do |vault|
22
+ vault.in_memory_warnings_enabled = true
23
+ end
24
+ end
25
+
26
+ it 'returns true' do
27
+ expect(subject.in_memory_warnings_enabled?).to eq true
28
+ end
29
+ end
30
+
31
+ context 'when configured as off' do
32
+ before do
33
+ subject.configure do |vault|
34
+ vault.in_memory_warnings_enabled = false
35
+ end
36
+ end
37
+
38
+ it 'returns false' do
39
+ expect(subject.in_memory_warnings_enabled?).to eq false
40
+ end
41
+ end
42
+ end
43
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vault-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Vargo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-03 00:00:00.000000000 Z
11
+ date: 2017-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -163,13 +163,9 @@ files:
163
163
  - spec/dummy/config/locales/en.yml
164
164
  - spec/dummy/config/routes.rb
165
165
  - spec/dummy/config/secrets.yml
166
- - spec/dummy/db/development.sqlite3
167
166
  - spec/dummy/db/migrate/20150428220101_create_people.rb
168
167
  - spec/dummy/db/schema.rb
169
- - spec/dummy/db/test.sqlite3
170
168
  - spec/dummy/lib/binary_serializer.rb
171
- - spec/dummy/log/development.log
172
- - spec/dummy/log/test.log
173
169
  - spec/dummy/public/404.html
174
170
  - spec/dummy/public/422.html
175
171
  - spec/dummy/public/500.html
@@ -178,10 +174,11 @@ files:
178
174
  - spec/spec_helper.rb
179
175
  - spec/support/vault_server.rb
180
176
  - spec/unit/encrypted_model_spec.rb
177
+ - spec/unit/rails/configurable_spec.rb
181
178
  - spec/unit/rails_spec.rb
182
179
  homepage: https://github.com/hashicorp/vault-rails
183
180
  licenses:
184
- - MPLv3
181
+ - MPL-2.0
185
182
  metadata: {}
186
183
  post_install_message:
187
184
  rdoc_options: []
@@ -199,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
199
196
  version: '0'
200
197
  requirements: []
201
198
  rubyforge_project:
202
- rubygems_version: 2.5.1
199
+ rubygems_version: 2.6.10
203
200
  signing_key:
204
201
  specification_version: 4
205
202
  summary: Official Vault plugin for Rails
@@ -228,13 +225,9 @@ test_files:
228
225
  - spec/dummy/config/routes.rb
229
226
  - spec/dummy/config/secrets.yml
230
227
  - spec/dummy/config.ru
231
- - spec/dummy/db/development.sqlite3
232
228
  - spec/dummy/db/migrate/20150428220101_create_people.rb
233
229
  - spec/dummy/db/schema.rb
234
- - spec/dummy/db/test.sqlite3
235
230
  - spec/dummy/lib/binary_serializer.rb
236
- - spec/dummy/log/development.log
237
- - spec/dummy/log/test.log
238
231
  - spec/dummy/public/404.html
239
232
  - spec/dummy/public/422.html
240
233
  - spec/dummy/public/500.html
@@ -244,4 +237,5 @@ test_files:
244
237
  - spec/spec_helper.rb
245
238
  - spec/support/vault_server.rb
246
239
  - spec/unit/encrypted_model_spec.rb
240
+ - spec/unit/rails/configurable_spec.rb
247
241
  - spec/unit/rails_spec.rb
Binary file
Binary file
@@ -1,220 +0,0 @@
1
-  (6.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2
-  (1.2ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
- Migrating to CreatePeople (20150428220101)
5
-  (0.0ms) begin transaction
6
- DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
7
-
8
- class CreatePeople < ActiveRecord::Migration[4.2] (called from load at /Users/phinze/.gem/ruby/2.3.1/bin/rake:23)
9
-  (0.3ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "ssn_encrypted" varchar, "cc_encrypted" varchar, "details_encrypted" varchar, "business_card_encrypted" varchar, "favorite_color_encrypted" varchar, "non_ascii_encrypted" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
10
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150428220101"]]
11
-  (0.8ms) commit transaction
12
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
13
-  (0.0ms) begin transaction
14
- SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", 2017-03-03 16:13:53 UTC], ["updated_at", 2017-03-03 16:13:53 UTC]]
15
-  (1.2ms) commit transaction
16
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
17
-  (0.0ms) begin transaction
18
- SQL (0.5ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
19
- SQL (0.1ms) UPDATE "people" SET "favorite_color_encrypted" = 'vault:v1:O9sdHNBmxtuBZmNCfjAEKUL8D8HkeE6PwFoRHchli0Id1bEqlpc=' WHERE "people"."id" = ? [["id", 1]]
20
-  (6.1ms) commit transaction
21
- Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
22
-  (0.1ms) begin transaction
23
- SQL (0.4ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
24
- SQL (0.1ms) UPDATE "people" SET "ssn_encrypted" = 'vault:v1:kkhFPrmENwMpjYgt56M03j3/nOStEB5cb942fTwOypkD6lbsxmia' WHERE "people"."id" = ? [["id", 2]]
25
-  (0.9ms) commit transaction
26
-  (0.1ms) begin transaction
27
- SQL (0.3ms) UPDATE "people" SET "name" = ?, "updated_at" = ? WHERE "people"."id" = ? [["name", "Cinderella"], ["updated_at", 2017-03-03 16:14:14 UTC], ["id", 2]]
28
-  (0.6ms) commit transaction
29
-  (0.0ms) begin transaction
30
- SQL (0.2ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
31
- SQL (0.1ms) UPDATE "people" SET "ssn_encrypted" = 'vault:v1:nr39GB+UkbueiGfgBJgOuNn54SFDWP62Faijv7d/Yy8sH8myxwT/' WHERE "people"."id" = ? [["id", 3]]
32
-  (0.8ms) commit transaction
33
- Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
34
-  (0.1ms) begin transaction
35
- SQL (0.3ms) UPDATE "people" SET "updated_at" = ? WHERE "people"."id" = ? [["updated_at", 2017-03-03 16:14:14 UTC], ["id", 3]]
36
- SQL (0.1ms) UPDATE "people" SET "ssn_encrypted" = NULL WHERE "people"."id" = ? [["id", 3]]
37
-  (1.3ms) commit transaction
38
- Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
39
-  (0.1ms) begin transaction
40
- SQL (0.2ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
41
- SQL (0.1ms) UPDATE "people" SET "ssn_encrypted" = 'vault:v1:gUNQYS439Ipo2p89bCE/Lf5uZ5gdr/q/SrzC15fH/dDbi/QPbdbt' WHERE "people"."id" = ? [["id", 4]]
42
-  (0.8ms) commit transaction
43
-  (0.0ms) begin transaction
44
- SQL (0.3ms) UPDATE "people" SET "updated_at" = ? WHERE "people"."id" = ? [["updated_at", 2017-03-03 16:14:14 UTC], ["id", 4]]
45
- SQL (0.1ms) UPDATE "people" SET "ssn_encrypted" = '' WHERE "people"."id" = ? [["id", 4]]
46
-  (0.9ms) commit transaction
47
- Person Load (0.2ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]
48
-  (0.1ms) begin transaction
49
- SQL (0.5ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
50
- SQL (0.2ms) UPDATE "people" SET "ssn_encrypted" = 'vault:v1:0dHzl4Da5K6/cYIjoRdiSo4/VzNmUJN4N6DDCjNFWJKH5e3Esw6vUg==' WHERE "people"."id" = ? [["id", 5]]
51
-  (1.0ms) commit transaction
52
-  (0.1ms) begin transaction
53
- SQL (0.6ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
54
- SQL (0.1ms) UPDATE "people" SET "ssn_encrypted" = 'vault:v1:rj1XKVSsJ8ywbWqX1FnjBpSC66FqRGbyUwpcgZn5BWLdGWnHjIak' WHERE "people"."id" = ? [["id", 6]]
55
-  (0.8ms) commit transaction
56
- Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
57
-  (0.1ms) begin transaction
58
- SQL (0.3ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
59
- SQL (0.1ms) UPDATE "people" SET "ssn_encrypted" = 'vault:v1:n4UyTJYR8PutaBdKWbxhlNoo2uokBOTrRP6yJBfg778W6+3yPMKe' WHERE "people"."id" = ? [["id", 7]]
60
-  (0.8ms) commit transaction
61
-  (0.1ms) begin transaction
62
- SQL (0.4ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
63
- SQL (0.2ms) UPDATE "people" SET "ssn_encrypted" = 'vault:v1:QOAvcAVEncnhqy3lJlKSitJ9s+iVXEGZIcNqn5kJ6V0wQi/WJjCm' WHERE "people"."id" = ? [["id", 8]]
64
-  (1.0ms) commit transaction
65
-  (0.0ms) begin transaction
66
- SQL (0.4ms) UPDATE "people" SET "updated_at" = ? WHERE "people"."id" = ? [["updated_at", 2017-03-03 16:14:14 UTC], ["id", 8]]
67
- SQL (0.1ms) UPDATE "people" SET "ssn_encrypted" = NULL WHERE "people"."id" = ? [["id", 8]]
68
-  (0.7ms) commit transaction
69
- Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]
70
-  (0.1ms) begin transaction
71
- SQL (0.3ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
72
- SQL (0.1ms) UPDATE "people" SET "ssn_encrypted" = 'vault:v1:smetbpkrTuqCmykSkcpVkYP0MR7/QkGG51VEWrcixC+6rReps4UI' WHERE "people"."id" = ? [["id", 9]]
73
-  (0.6ms) commit transaction
74
-  (0.1ms) begin transaction
75
- SQL (0.4ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
76
- SQL (0.1ms) UPDATE "people" SET "ssn_encrypted" = 'vault:v1:UurH28LBH4NSv8ybdDn+C1xblesqa6uV3KuitURXiGB3cBqoK62x' WHERE "people"."id" = ? [["id", 10]]
77
-  (0.8ms) commit transaction
78
- Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]]
79
-  (0.1ms) begin transaction
80
- SQL (0.3ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
81
- SQL (0.1ms) UPDATE "people" SET "business_card_encrypted" = 'vault:v1:lcuzuysXh2Da2iQItzG4u5MVhpNQ6WE4Xi7Zt+ECL4Su9RRAUQvwsd5UtNvvp3mHH8/mcZiqIsn7zjup' WHERE "people"."id" = ? [["id", 11]]
82
-  (0.7ms) commit transaction
83
- Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]]
84
-  (0.1ms) begin transaction
85
- SQL (0.5ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
86
- SQL (0.1ms) UPDATE "people" SET "details_encrypted" = 'vault:v1:rm1wdjCyU5hrSvpW9GAgpEugh4ciXwNtdzE6aBdrKYL5dIQfGYASZNk=' WHERE "people"."id" = ? [["id", 12]]
87
-  (1.1ms) commit transaction
88
-  (0.1ms) begin transaction
89
- SQL (0.6ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
90
- SQL (0.2ms) UPDATE "people" SET "details_encrypted" = 'vault:v1:Suo8wiuwTQBRr5firWd3WbG9My8imdGVv7wfmEOMmco9asbX2dMfkq+BGmLq6lf7YQ==' WHERE "people"."id" = ? [["id", 13]]
91
-  (0.9ms) commit transaction
92
- Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 13], ["LIMIT", 1]]
93
-  (0.2ms) begin transaction
94
- SQL (0.4ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
95
-  (0.9ms) commit transaction
96
-  (0.1ms) begin transaction
97
- SQL (0.4ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
98
- SQL (0.1ms) UPDATE "people" SET "ssn_encrypted" = 'vault:v1:oJbcqgYmPdDd6Xa4k5i57WIZEMqy4Ex7APlnlAcisE7nBi3AbCqV' WHERE "people"."id" = ? [["id", 15]]
99
-  (0.8ms) commit transaction
100
- LazyPerson Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 15], ["LIMIT", 1]]
101
- LazyPerson Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 15], ["LIMIT", 1]]
102
-  (0.0ms) begin transaction
103
- SQL (0.2ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
104
- SQL (0.1ms) UPDATE "people" SET "ssn_encrypted" = 'vault:v1:T0exE1+AdITrbLg7mRvytvVkMSLMj+0K0CokZysBtCiAnU1fAG3g' WHERE "people"."id" = ? [["id", 16]]
105
-  (0.6ms) commit transaction
106
-  (0.0ms) begin transaction
107
- SQL (0.4ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
108
- SQL (0.1ms) UPDATE "people" SET "ssn_encrypted" = 'vault:v1:ZUGb5um1h7GdoP0vgdz6+lnxkuCMryq7aK/RZonE01/2WWrE3NsF' WHERE "people"."id" = ? [["id", 17]]
109
-  (0.9ms) commit transaction
110
- LazyPerson Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 17], ["LIMIT", 1]]
111
-  (0.1ms) begin transaction
112
- SQL (0.5ms) UPDATE "people" SET "updated_at" = ? WHERE "people"."id" = ? [["updated_at", 2017-03-03 16:14:14 UTC], ["id", 17]]
113
- SQL (0.1ms) UPDATE "people" SET "ssn_encrypted" = NULL WHERE "people"."id" = ? [["id", 17]]
114
-  (1.0ms) commit transaction
115
- LazyPerson Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 17], ["LIMIT", 1]]
116
-  (0.1ms) begin transaction
117
- SQL (0.5ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
118
- SQL (0.2ms) UPDATE "people" SET "ssn_encrypted" = 'vault:v1:elZnBbhzSyfxWAqQ5Ft29e08dDlcfo7tVyWQRhgJuEser+m2eaaf' WHERE "people"."id" = ? [["id", 18]]
119
-  (0.8ms) commit transaction
120
-  (0.0ms) begin transaction
121
- SQL (0.2ms) UPDATE "people" SET "name" = ?, "updated_at" = ? WHERE "people"."id" = ? [["name", "Cinderella"], ["updated_at", 2017-03-03 16:14:14 UTC], ["id", 18]]
122
-  (0.8ms) commit transaction
123
-  (0.1ms) begin transaction
124
- SQL (0.6ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
125
- SQL (0.2ms) UPDATE "people" SET "ssn_encrypted" = 'vault:v1:uHab+z11jf4oLXPXoHm6ySJVL2WU6i8zzdd3e0Q1/zmsDz7NkmWF' WHERE "people"."id" = ? [["id", 19]]
126
-  (0.9ms) commit transaction
127
- LazyPerson Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 19], ["LIMIT", 1]]
128
-  (0.1ms) begin transaction
129
- SQL (0.4ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
130
- SQL (0.1ms) UPDATE "people" SET "ssn_encrypted" = 'vault:v1:+Ih8l8R0ejY5wHKGnGKJNil+7m+KGdcGk8evHUGAyiS5cvRxjaoBmA==' WHERE "people"."id" = ? [["id", 20]]
131
-  (0.9ms) commit transaction
132
-  (0.0ms) begin transaction
133
- SQL (0.3ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
134
- SQL (0.2ms) UPDATE "people" SET "ssn_encrypted" = 'vault:v1:D+ORfdeC4uSdXLuTrWvrK0f2Q+sbcpdbVe8p5pW8K3SqVaeKJSYE' WHERE "people"."id" = ? [["id", 21]]
135
-  (1.1ms) commit transaction
136
-  (0.1ms) begin transaction
137
- SQL (0.3ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
138
- SQL (0.1ms) UPDATE "people" SET "ssn_encrypted" = 'vault:v1:ho4imZV05JbAuT/ZX/z++DYiVRiH90IxdY+O8U/MAluewa09xXlO' WHERE "people"."id" = ? [["id", 22]]
139
-  (1.2ms) commit transaction
140
-  (0.1ms) begin transaction
141
- SQL (0.3ms) UPDATE "people" SET "updated_at" = ? WHERE "people"."id" = ? [["updated_at", 2017-03-03 16:14:14 UTC], ["id", 22]]
142
- SQL (0.1ms) UPDATE "people" SET "ssn_encrypted" = NULL WHERE "people"."id" = ? [["id", 22]]
143
-  (0.7ms) commit transaction
144
- LazyPerson Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 22], ["LIMIT", 1]]
145
-  (0.1ms) begin transaction
146
- SQL (0.2ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
147
- SQL (0.1ms) UPDATE "people" SET "ssn_encrypted" = 'vault:v1:9H/+sN3ExzfrQkdV6QvSA63+RF956jFuJ35cawsakXNMV+9RsvFV' WHERE "people"."id" = ? [["id", 23]]
148
-  (1.2ms) commit transaction
149
- LazyPerson Load (0.2ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 23], ["LIMIT", 1]]
150
-  (0.2ms) begin transaction
151
- SQL (0.8ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
152
- SQL (0.3ms) UPDATE "people" SET "ssn_encrypted" = 'vault:v1:kruW2MzuwaiNM6WP2HIniKZ8jL7UppmlLq8VEjx89QtUmEOxqUSA' WHERE "people"."id" = ? [["id", 24]]
153
-  (1.7ms) commit transaction
154
-  (0.1ms) begin transaction
155
- SQL (0.9ms) UPDATE "people" SET "updated_at" = ? WHERE "people"."id" = ? [["updated_at", 2017-03-03 16:14:14 UTC], ["id", 24]]
156
- SQL (0.2ms) UPDATE "people" SET "ssn_encrypted" = '' WHERE "people"."id" = ? [["id", 24]]
157
-  (1.1ms) commit transaction
158
- LazyPerson Load (0.2ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 24], ["LIMIT", 1]]
159
-  (0.2ms) begin transaction
160
- SQL (0.6ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
161
- SQL (0.2ms) UPDATE "people" SET "cc_encrypted" = 'vault:v1:EYR7C5REfk+ri8BT7HR+ckbHCt2/7msH43gA5BVKmaPsNRKS5ZU/67Bp4CI=' WHERE "people"."id" = ? [["id", 25]]
162
-  (0.8ms) commit transaction
163
-  (0.0ms) begin transaction
164
- SQL (0.4ms) UPDATE "people" SET "updated_at" = ? WHERE "people"."id" = ? [["updated_at", 2017-03-03 16:14:14 UTC], ["id", 25]]
165
- SQL (0.1ms) UPDATE "people" SET "cc_encrypted" = '' WHERE "people"."id" = ? [["id", 25]]
166
-  (0.6ms) commit transaction
167
- Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 25], ["LIMIT", 1]]
168
-  (0.2ms) begin transaction
169
- SQL (0.4ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
170
- SQL (0.1ms) UPDATE "people" SET "cc_encrypted" = 'vault:v1:Aj1yP927opt8c9c+ZXhjrUAg5/B6+vnGRYHJyzFbgwjWz8YrLK8q05lYyp4=' WHERE "people"."id" = ? [["id", 26]]
171
-  (0.8ms) commit transaction
172
-  (0.1ms) begin transaction
173
- SQL (0.3ms) UPDATE "people" SET "updated_at" = ? WHERE "people"."id" = ? [["updated_at", 2017-03-03 16:14:14 UTC], ["id", 26]]
174
- SQL (0.1ms) UPDATE "people" SET "cc_encrypted" = NULL WHERE "people"."id" = ? [["id", 26]]
175
-  (0.8ms) commit transaction
176
- Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 26], ["LIMIT", 1]]
177
-  (0.1ms) begin transaction
178
- SQL (0.4ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
179
- SQL (0.1ms) UPDATE "people" SET "cc_encrypted" = 'vault:v1:Ic0vG6ivkdUMacJiXjF/MJCyN1McsmTfuAmBzH9tAjjQXVO1/HxA+pQMZrQ=' WHERE "people"."id" = ? [["id", 27]]
180
-  (1.1ms) commit transaction
181
-  (0.0ms) begin transaction
182
- SQL (0.3ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
183
- SQL (0.2ms) UPDATE "people" SET "cc_encrypted" = 'vault:v1:c1Bn2YeGiEmjaxM2b4DcwuSr0e3Ubmy6aTHEe0ziKXMaC9zUkMcAnNnDQqE=' WHERE "people"."id" = ? [["id", 28]]
184
-  (1.8ms) commit transaction
185
- Person Load (0.2ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 28], ["LIMIT", 1]]
186
-  (0.1ms) begin transaction
187
- SQL (0.6ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
188
- SQL (0.3ms) UPDATE "people" SET "cc_encrypted" = 'vault:v1:UWK9sdZeRcQt2+m1+XJhMPVpZrah3nFMRy0bsXiCLNUKWmvBQEDTZLYSaZI=' WHERE "people"."id" = ? [["id", 29]]
189
-  (1.6ms) commit transaction
190
-  (0.1ms) begin transaction
191
- SQL (0.5ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
192
- SQL (0.1ms) UPDATE "people" SET "non_ascii_encrypted" = 'vault:v1:NkpfIT8hYJjV3xOs3owx1xOVeJ5J2JiAfmeTqGp/fruqQWE6QcNVRw==' WHERE "people"."id" = ? [["id", 30]]
193
-  (0.6ms) commit transaction
194
-  (0.0ms) begin transaction
195
- SQL (0.3ms) UPDATE "people" SET "updated_at" = ? WHERE "people"."id" = ? [["updated_at", 2017-03-03 16:14:14 UTC], ["id", 30]]
196
- SQL (0.1ms) UPDATE "people" SET "non_ascii_encrypted" = '' WHERE "people"."id" = ? [["id", 30]]
197
-  (1.0ms) commit transaction
198
- Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 30], ["LIMIT", 1]]
199
-  (0.1ms) begin transaction
200
- SQL (0.3ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
201
- SQL (0.1ms) UPDATE "people" SET "non_ascii_encrypted" = 'vault:v1:kmEkVT/H3FGNafgjaXbeyNquqW9Uid6sfKG7qbBahVGT1DW92wiLSg==' WHERE "people"."id" = ? [["id", 31]]
202
-  (0.9ms) commit transaction
203
-  (0.1ms) begin transaction
204
- SQL (0.4ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
205
- SQL (0.2ms) UPDATE "people" SET "non_ascii_encrypted" = 'vault:v1:QtNKJSbssvWj6TCeejJvpgk4CogHb7B9htShcKCXywxxog9qrUC2pA==' WHERE "people"."id" = ? [["id", 32]]
206
-  (0.8ms) commit transaction
207
- Person Load (0.4ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 32], ["LIMIT", 1]]
208
-  (0.1ms) begin transaction
209
- SQL (0.3ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
210
- SQL (0.1ms) UPDATE "people" SET "non_ascii_encrypted" = 'vault:v1:00quZh+CvjzgfiOAn0b8qi8DArIKm9Eyk1fWyLPqYhtrWsDIEqS8jA==' WHERE "people"."id" = ? [["id", 33]]
211
-  (0.7ms) commit transaction
212
-  (0.0ms) begin transaction
213
- SQL (0.2ms) UPDATE "people" SET "updated_at" = ? WHERE "people"."id" = ? [["updated_at", 2017-03-03 16:14:14 UTC], ["id", 33]]
214
- SQL (0.1ms) UPDATE "people" SET "non_ascii_encrypted" = NULL WHERE "people"."id" = ? [["id", 33]]
215
-  (0.6ms) commit transaction
216
- Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 33], ["LIMIT", 1]]
217
-  (0.1ms) begin transaction
218
- SQL (0.5ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-03 16:14:14 UTC], ["updated_at", 2017-03-03 16:14:14 UTC]]
219
- SQL (0.2ms) UPDATE "people" SET "non_ascii_encrypted" = 'vault:v1:XI4s6OrCKI0U9CLNHTosfy/olxV/AEK7/qN+tAl/OHuC3GvJxe9Hng==' WHERE "people"."id" = ? [["id", 34]]
220
-  (1.3ms) commit transaction
@@ -1,13 +0,0 @@
1
-  (6.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2
-  (1.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
- Migrating to CreatePeople (20150428220101)
5
-  (0.1ms) begin transaction
6
-  (0.4ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "ssn_encrypted" varchar, "cc_encrypted" varchar, "details_encrypted" varchar, "business_card_encrypted" varchar, "favorite_color_encrypted" varchar, "non_ascii_encrypted" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
7
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150428220101"]]
8
-  (1.0ms) commit transaction
9
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
10
-  (0.1ms) begin transaction
11
- SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2017-03-03 16:14:02 UTC], ["updated_at", 2017-03-03 16:14:02 UTC]]
12
-  (0.8ms) commit transaction
13
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"