vault-rails 0.8.0 → 0.9.0

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.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +2 -0
  3. data/lib/vault/encrypted_model.rb +3 -0
  4. data/lib/vault/rails/configurable.rb +3 -0
  5. data/lib/vault/rails/errors.rb +3 -0
  6. data/lib/vault/rails/json_serializer.rb +3 -0
  7. data/lib/vault/rails/version.rb +4 -1
  8. data/lib/vault/rails.rb +3 -0
  9. data/spec/dummy/app/models/lazy_person.rb +3 -0
  10. data/spec/dummy/app/models/lazy_single_person.rb +3 -0
  11. data/spec/dummy/app/models/person.rb +3 -0
  12. data/spec/dummy/config/application.rb +3 -0
  13. data/spec/dummy/config/boot.rb +3 -0
  14. data/spec/dummy/config/database.yml +7 -5
  15. data/spec/dummy/config/environment.rb +3 -0
  16. data/spec/dummy/config/environments/development.rb +3 -0
  17. data/spec/dummy/config/environments/test.rb +3 -0
  18. data/spec/dummy/config/initializers/assets.rb +3 -0
  19. data/spec/dummy/config/initializers/backtrace_silencers.rb +3 -0
  20. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  21. data/spec/dummy/config/initializers/filter_parameter_logging.rb +3 -0
  22. data/spec/dummy/config/initializers/inflections.rb +3 -0
  23. data/spec/dummy/config/initializers/mime_types.rb +3 -0
  24. data/spec/dummy/config/initializers/session_store.rb +3 -0
  25. data/spec/dummy/config/initializers/vault.rb +3 -0
  26. data/spec/dummy/config/initializers/wrap_parameters.rb +3 -0
  27. data/spec/dummy/config/locales/en.yml +3 -0
  28. data/spec/dummy/config/routes.rb +3 -0
  29. data/spec/dummy/config/secrets.yml +3 -0
  30. data/spec/dummy/config.ru +3 -0
  31. data/spec/dummy/db/development.sqlite3 +0 -0
  32. data/spec/dummy/db/migrate/20150428220101_create_people.rb +3 -0
  33. data/spec/dummy/db/schema.rb +3 -0
  34. data/spec/dummy/db/test.sqlite3 +0 -0
  35. data/spec/dummy/lib/binary_serializer.rb +3 -0
  36. data/spec/dummy/log/development.log +1637 -0
  37. data/spec/dummy/log/test.log +400 -0
  38. data/spec/dummy/public/404.html +5 -0
  39. data/spec/dummy/public/422.html +5 -0
  40. data/spec/dummy/public/500.html +5 -0
  41. data/spec/integration/rails_spec.rb +5 -2
  42. data/spec/lib/vault/rails/json_serializer_spec.rb +3 -0
  43. data/spec/spec_helper.rb +3 -0
  44. data/spec/support/vault_server.rb +38 -10
  45. data/spec/unit/encrypted_model_spec.rb +3 -0
  46. data/spec/unit/rails/configurable_spec.rb +3 -0
  47. data/spec/unit/rails_spec.rb +3 -0
  48. data/spec/unit/vault/rails_spec.rb +3 -0
  49. metadata +17 -9
@@ -0,0 +1,400 @@
1
+  (0.7ms) SELECT sqlite_version(*)
2
+  (0.4ms) SELECT sqlite_version(*)
3
+  (0.0ms) begin transaction
4
+ Person Create (0.2ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:19.937858"], ["updated_at", "2023-04-24 02:53:19.937858"]]
5
+ [vault-rails] Using in-memory cipher - this is not secure and should never be used in production-like environments!
6
+ Person Update (0.0ms) UPDATE "people" SET "cc_encrypted" = ? WHERE "people"."id" = ? [["cc_encrypted", "vault:dev:lP7BST3fnuhVpzSepVlWIiZcbw2l4eYTMRk1pHwy0g4="], ["id", 1]]
7
+  (0.6ms) commit transaction
8
+  (0.0ms) begin transaction
9
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:19.946193"], ["updated_at", "2023-04-24 02:53:19.946193"]]
10
+ [vault-rails] Using in-memory cipher - this is not secure and should never be used in production-like environments!
11
+ Person Update (0.0ms) UPDATE "people" SET "cc_encrypted" = ? WHERE "people"."id" = ? [["cc_encrypted", "vault:dev:lP7BST3fnuhVpzSepVlWIiZcbw2l4eYTMRk1pHwy0g4="], ["id", 2]]
12
+  (0.5ms) commit transaction
13
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
14
+ [vault-rails] Using in-memory cipher - this is not secure and should never be used in production-like environments!
15
+ [vault-rails] Using in-memory cipher - this is not secure and should never be used in production-like environments!
16
+  (0.0ms) begin transaction
17
+ LazyPerson Create (0.2ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:19.958681"], ["updated_at", "2023-04-24 02:53:19.958681"]]
18
+ LazyPerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:lRCCSGkfiyGyGtAL8gbAVyMfoVtrZgXPkG7TPqOu+p9+UD4Lz2LZ"], ["id", 3]]
19
+  (0.6ms) commit transaction
20
+ LazyPerson Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
21
+  (0.0ms) begin transaction
22
+ LazyPerson Create (0.2ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:19.962216"], ["updated_at", "2023-04-24 02:53:19.962216"]]
23
+ LazyPerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:QUIuXwj03v7YGpeJZDkAW8/r+6Gi2A6UMEvfWo7zM+3EdmTRIgF7"], ["id", 4]]
24
+  (0.6ms) commit transaction
25
+  (0.0ms) begin transaction
26
+ LazyPerson Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:19.964897"], ["updated_at", "2023-04-24 02:53:19.964897"]]
27
+ LazyPerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:dGKYOjZQ+NqBjckITcTaFFDJhjzl16iSGqyzFbU3ekI0S+1+8K1y"], ["id", 5]]
28
+  (0.6ms) commit transaction
29
+ LazyPerson Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]
30
+  (0.0ms) begin transaction
31
+ LazyPerson Create (0.2ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:19.967879"], ["updated_at", "2023-04-24 02:53:19.967879"]]
32
+ LazyPerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:Suc4BKHfmFYL34V7gRSepngQJEy7zCPoWYmhTEaXUlanjxZn2Znt5Q=="], ["id", 6]]
33
+  (0.6ms) commit transaction
34
+  (0.0ms) begin transaction
35
+ LazyPerson Create (0.2ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:19.970658"], ["updated_at", "2023-04-24 02:53:19.970658"]]
36
+ LazyPerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:KOfPzAsmkIR7GtgFTkxU4TKNpNWHCAqv0CvepKk63Z1AdMUnvH7d"], ["id", 7]]
37
+  (0.5ms) commit transaction
38
+  (0.0ms) begin transaction
39
+ LazyPerson Update (0.1ms) UPDATE "people" SET "updated_at" = ? WHERE "people"."id" = ? [["updated_at", "2023-04-24 02:53:19.972768"], ["id", 7]]
40
+ LazyPerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", ""], ["id", 7]]
41
+  (0.3ms) commit transaction
42
+ LazyPerson Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]
43
+  (0.0ms) begin transaction
44
+ LazyPerson Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:19.974541"], ["updated_at", "2023-04-24 02:53:19.974541"]]
45
+ LazyPerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:eWA259Zf+neLCF8NfgOVdIkPNQ+yAEUmNTbPW3o8f+AKwpmGBbKp"], ["id", 8]]
46
+  (0.6ms) commit transaction
47
+  (0.0ms) begin transaction
48
+ LazyPerson Create (0.2ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:19.976802"], ["updated_at", "2023-04-24 02:53:19.976802"]]
49
+ LazyPerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:70Y6eHElTj/EI+d200enk9sVXmH/WrCaBMWxRk32IHYBfaAOt9eI"], ["id", 9]]
50
+  (0.5ms) commit transaction
51
+  (0.0ms) begin transaction
52
+ LazyPerson Update (0.1ms) UPDATE "people" SET "updated_at" = ? WHERE "people"."id" = ? [["updated_at", "2023-04-24 02:53:19.978622"], ["id", 9]]
53
+ LazyPerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", nil], ["id", 9]]
54
+  (0.3ms) commit transaction
55
+ LazyPerson Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]
56
+  (0.0ms) begin transaction
57
+ LazyPerson Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:19.980187"], ["updated_at", "2023-04-24 02:53:19.980187"]]
58
+ LazyPerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:o7UNzBu7vLngbDS+lhAz56JcGifHSMRXf7HioRZ3DGTClKR98gv0"], ["id", 10]]
59
+  (0.4ms) commit transaction
60
+ LazyPerson Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]]
61
+  (0.0ms) begin transaction
62
+ LazyPerson Update (0.1ms) UPDATE "people" SET "updated_at" = ? WHERE "people"."id" = ? [["updated_at", "2023-04-24 02:53:19.982574"], ["id", 10]]
63
+ LazyPerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", nil], ["id", 10]]
64
+  (0.5ms) commit transaction
65
+ LazyPerson Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]]
66
+  (0.0ms) begin transaction
67
+ LazyPerson Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:19.984311"], ["updated_at", "2023-04-24 02:53:19.984311"]]
68
+ LazyPerson Update (0.1ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:5gGNB30NPoISfgy6oYS8Y4eA9OAiGtbKbX4vZmGRsyXwTLO3+jA4"], ["id", 11]]
69
+  (0.7ms) commit transaction
70
+  (0.0ms) begin transaction
71
+ LazyPerson Update (0.2ms) UPDATE "people" SET "name" = ?, "updated_at" = ? WHERE "people"."id" = ? [["name", "Cinderella"], ["updated_at", "2023-04-24 02:53:19.987627"], ["id", 11]]
72
+  (0.5ms) commit transaction
73
+  (0.0ms) begin transaction
74
+ LazyPerson Create (0.2ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:19.989264"], ["updated_at", "2023-04-24 02:53:19.989264"]]
75
+ LazyPerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:FMhauKWAhqowX8wb8/pWi97ZPM+5cD3lb5V+5yfd/tk6c+N/y6nD"], ["id", 12]]
76
+  (0.5ms) commit transaction
77
+ LazyPerson Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 12], ["LIMIT", 1]]
78
+ LazyPerson Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 12], ["LIMIT", 1]]
79
+  (0.0ms) begin transaction
80
+ LazyPerson Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:19.992498"], ["updated_at", "2023-04-24 02:53:19.992498"]]
81
+ LazyPerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:GWzICZDT98sLiZhBcnYcwdvpRZofftr5N1m3VXQ1LeNkAbgWDFPz"], ["id", 13]]
82
+  (0.5ms) commit transaction
83
+  (0.0ms) begin transaction
84
+ LazyPerson Destroy (0.2ms) DELETE FROM "people" WHERE "people"."id" = ? [["id", 13]]
85
+  (0.4ms) commit transaction
86
+  (0.0ms) begin transaction
87
+ LazyPerson Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:19.995895"], ["updated_at", "2023-04-24 02:53:19.995895"]]
88
+ LazyPerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:nfbuejMc/jtMJyY91Q3aWdgu4T5jKqX7ZEmTOSwP9SzOqwUwhcWB"], ["id", 14]]
89
+  (0.5ms) commit transaction
90
+  (0.0ms) begin transaction
91
+ LazyPerson Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:19.997849"], ["updated_at", "2023-04-24 02:53:19.997849"]]
92
+ LazyPerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:oSqImXNChtnbTSf6xxFIuLgKkHcyn/EAwY+Ffz8TD4H5kTvRjwJO"], ["id", 15]]
93
+  (0.5ms) commit transaction
94
+  (0.0ms) begin transaction
95
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:19.999906"], ["updated_at", "2023-04-24 02:53:19.999906"]]
96
+ Person Update (0.0ms) UPDATE "people" SET "context_proc_encrypted" = ? WHERE "people"."id" = ? [["context_proc_encrypted", "vault:v1:1CG9BgZ4crbGN+0e1ewSCoSXFJOKNdDBWA52hmk19esXrg=="], ["id", 16]]
97
+  (0.4ms) commit transaction
98
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 16], ["LIMIT", 1]]
99
+  (0.0ms) begin transaction
100
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.010876"], ["updated_at", "2023-04-24 02:53:20.010876"]]
101
+ Person Update (0.0ms) UPDATE "people" SET "context_string_encrypted" = ? WHERE "people"."id" = ? [["context_string_encrypted", "vault:v1:h6eYNxyrCu9NREBdcpNs9/lfGx0hcDV3I+1ICdywjGBYpg=="], ["id", 17]]
102
+  (0.5ms) commit transaction
103
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 17], ["LIMIT", 1]]
104
+  (0.0ms) begin transaction
105
+ Person Create (0.2ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.015768"], ["updated_at", "2023-04-24 02:53:20.015768"]]
106
+ Person Update (0.0ms) UPDATE "people" SET "context_symbol_encrypted" = ? WHERE "people"."id" = ? [["context_symbol_encrypted", "vault:v1:afaGkwnpi/6puAIpIAr9nYTgjYeHgtnyobpEm2ltQdk6wg=="], ["id", 18]]
107
+  (0.5ms) commit transaction
108
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 18], ["LIMIT", 1]]
109
+  (0.0ms) begin transaction
110
+ Person Create (0.2ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.021595"], ["updated_at", "2023-04-24 02:53:20.021595"]]
111
+ Person Update (0.0ms) UPDATE "people" SET "non_ascii_encrypted" = ? WHERE "people"."id" = ? [["non_ascii_encrypted", "vault:v1:XNAx5J3t3nN7tojjLCqAgSfsYLtnPAq5mY1W18ipq55b+W0jUxCZjg=="], ["id", 19]]
112
+  (0.5ms) commit transaction
113
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 19], ["LIMIT", 1]]
114
+  (0.0ms) begin transaction
115
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.025232"], ["updated_at", "2023-04-24 02:53:20.025232"]]
116
+ Person Update (0.0ms) UPDATE "people" SET "non_ascii_encrypted" = ? WHERE "people"."id" = ? [["non_ascii_encrypted", "vault:v1:BC1nCXrYo1d5D/nujDaUsMyvE3IviT1ychx7UUFBsA2/XUHtg0+3ww=="], ["id", 20]]
117
+  (0.4ms) commit transaction
118
+  (0.0ms) begin transaction
119
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.027197"], ["updated_at", "2023-04-24 02:53:20.027197"]]
120
+ Person Update (0.0ms) UPDATE "people" SET "non_ascii_encrypted" = ? WHERE "people"."id" = ? [["non_ascii_encrypted", "vault:v1:A+JY5mhHFDtvRiW6m5ST3azXPRyDhLt3yBBcBUwe4FsygN6iGfogtw=="], ["id", 21]]
121
+  (0.4ms) commit transaction
122
+  (0.0ms) begin transaction
123
+ Person Update (0.2ms) UPDATE "people" SET "updated_at" = ? WHERE "people"."id" = ? [["updated_at", "2023-04-24 02:53:20.028929"], ["id", 21]]
124
+ Person Update (0.0ms) UPDATE "people" SET "non_ascii_encrypted" = ? WHERE "people"."id" = ? [["non_ascii_encrypted", ""], ["id", 21]]
125
+  (0.4ms) commit transaction
126
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 21], ["LIMIT", 1]]
127
+  (0.0ms) begin transaction
128
+ Person Create (0.2ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.032507"], ["updated_at", "2023-04-24 02:53:20.032507"]]
129
+ Person Update (0.0ms) UPDATE "people" SET "non_ascii_encrypted" = ? WHERE "people"."id" = ? [["non_ascii_encrypted", "vault:v1:pvwXv6RjfSIM+f4z3hLmyYESjABGWN5N0oeoaxmGwrmtvN0ya/MCtw=="], ["id", 22]]
130
+  (0.5ms) commit transaction
131
+  (0.0ms) begin transaction
132
+ Person Create (0.2ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.035267"], ["updated_at", "2023-04-24 02:53:20.035267"]]
133
+ Person Update (0.0ms) UPDATE "people" SET "non_ascii_encrypted" = ? WHERE "people"."id" = ? [["non_ascii_encrypted", "vault:v1:6NPFtN8IkJ0hY1Lv6z+1DNWsuAE1oUjMtVAyB+lobjU4RoUs3Y6dDw=="], ["id", 23]]
134
+  (0.5ms) commit transaction
135
+  (0.0ms) begin transaction
136
+ Person Update (0.1ms) UPDATE "people" SET "updated_at" = ? WHERE "people"."id" = ? [["updated_at", "2023-04-24 02:53:20.037537"], ["id", 23]]
137
+ Person Update (0.0ms) UPDATE "people" SET "non_ascii_encrypted" = ? WHERE "people"."id" = ? [["non_ascii_encrypted", nil], ["id", 23]]
138
+  (0.3ms) commit transaction
139
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 23], ["LIMIT", 1]]
140
+  (0.0ms) begin transaction
141
+ LazySinglePerson Create (0.2ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.045996"], ["updated_at", "2023-04-24 02:53:20.045996"]]
142
+ LazySinglePerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:GSjTtGCYW0G6NkwP7bYJmJkcN9cWs/YJtBcevcvvWCHQoL5bMIgI"], ["id", 24]]
143
+  (0.5ms) commit transaction
144
+  (0.0ms) begin transaction
145
+ LazySinglePerson Update (0.1ms) UPDATE "people" SET "updated_at" = ? WHERE "people"."id" = ? [["updated_at", "2023-04-24 02:53:20.047726"], ["id", 24]]
146
+ LazySinglePerson Update (0.0ms) UPDATE "people" SET "cc_encrypted" = ? WHERE "people"."id" = ? [["cc_encrypted", "vault:v1:0wxQZm4Wov5aDU1Tdb71MSj6DV16cccQ5WJSTeQN/stnp9cZPaGwKB5MRk7hkEk="], ["id", 24]]
147
+  (0.5ms) commit transaction
148
+ LazySinglePerson Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 24], ["LIMIT", 1]]
149
+ LazySinglePerson Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 24], ["LIMIT", 1]]
150
+  (0.0ms) begin transaction
151
+ LazySinglePerson Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.050792"], ["updated_at", "2023-04-24 02:53:20.050792"]]
152
+ LazySinglePerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:Fs0tU1ls0xiiLf+P42GiXjdu8hhvhIaz2yExqbK+PMkboTiTOmbX"], ["id", 25]]
153
+  (0.6ms) commit transaction
154
+  (0.0ms) begin transaction
155
+ LazySinglePerson Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.052395"], ["updated_at", "2023-04-24 02:53:20.052395"]]
156
+ LazySinglePerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:W3+7bw7DyUYl4l2kOla9P4McRehzvBUPYVfPVE8sMmPR3OLk5uYT"], ["id", 26]]
157
+  (0.5ms) commit transaction
158
+  (0.0ms) begin transaction
159
+ LazySinglePerson Update (0.1ms) UPDATE "people" SET "name" = ?, "updated_at" = ? WHERE "people"."id" = ? [["name", "Cinderella"], ["updated_at", "2023-04-24 02:53:20.053882"], ["id", 26]]
160
+  (0.4ms) commit transaction
161
+  (0.0ms) begin transaction
162
+ LazySinglePerson Create (0.2ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.054760"], ["updated_at", "2023-04-24 02:53:20.054760"]]
163
+ LazySinglePerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:BgcKkN3AniEHn4IaDnGSRwkNYs0D+zxS5OAlhchilMnE9eXr+Z3s"], ["id", 27]]
164
+  (0.4ms) commit transaction
165
+  (0.0ms) begin transaction
166
+ LazySinglePerson Update (0.1ms) UPDATE "people" SET "updated_at" = ? WHERE "people"."id" = ? [["updated_at", "2023-04-24 02:53:20.056212"], ["id", 27]]
167
+ LazySinglePerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", ""], ["id", 27]]
168
+  (0.3ms) commit transaction
169
+ LazySinglePerson Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 27], ["LIMIT", 1]]
170
+  (0.0ms) begin transaction
171
+ LazySinglePerson Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.057257"], ["updated_at", "2023-04-24 02:53:20.057257"]]
172
+ LazySinglePerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:SDz6v6DNfKcriDu7jSu67ezVyJagnXnL7W6WPiDArAyroSBygm4Eag=="], ["id", 28]]
173
+  (0.5ms) commit transaction
174
+  (0.0ms) begin transaction
175
+ LazyPerson Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.058812"], ["updated_at", "2023-04-24 02:53:20.058812"]]
176
+ LazyPerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:E80fTKzNCK+4r5034qDUKPc34mBlZJGhXwKKOShsbLUCGSc7UGMr"], ["id", 29]]
177
+  (0.4ms) commit transaction
178
+  (0.0ms) begin transaction
179
+ LazyPerson Destroy (0.1ms) DELETE FROM "people" WHERE "people"."id" = ? [["id", 29]]
180
+  (0.3ms) commit transaction
181
+  (0.0ms) begin transaction
182
+ LazySinglePerson Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.061178"], ["updated_at", "2023-04-24 02:53:20.061178"]]
183
+ LazySinglePerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:heSNRj9va8JpYoOTpc3hqsY5MAm801c7TIDKdNo36smJzNePAuhi"], ["id", 30]]
184
+  (0.5ms) commit transaction
185
+  (0.0ms) begin transaction
186
+ LazySinglePerson Update (0.1ms) UPDATE "people" SET "updated_at" = ? WHERE "people"."id" = ? [["updated_at", "2023-04-24 02:53:20.062563"], ["id", 30]]
187
+ LazySinglePerson Update (0.0ms) UPDATE "people" SET "cc_encrypted" = ? WHERE "people"."id" = ? [["cc_encrypted", "vault:v1:O/ShQ0RHnqNBzZt2m+uz5kPiDwLGv16j2H3YI+wyb6oruOlrbgrDosI0kQ4bQ9U="], ["id", 30]]
188
+  (0.4ms) commit transaction
189
+ LazySinglePerson Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 30], ["LIMIT", 1]]
190
+ LazySinglePerson Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 30], ["LIMIT", 1]]
191
+  (0.0ms) begin transaction
192
+ LazySinglePerson Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.065090"], ["updated_at", "2023-04-24 02:53:20.065090"]]
193
+ LazySinglePerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:fuuELL2YegAsUYb1OeJNEfbqTO6P3fnY1Lxuwg1HeIyw7AJub6hz"], ["id", 31]]
194
+  (0.5ms) commit transaction
195
+  (0.0ms) begin transaction
196
+ LazySinglePerson Update (0.1ms) UPDATE "people" SET "updated_at" = ? WHERE "people"."id" = ? [["updated_at", "2023-04-24 02:53:20.066439"], ["id", 31]]
197
+ LazySinglePerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", nil], ["id", 31]]
198
+  (0.4ms) commit transaction
199
+ LazySinglePerson Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 31], ["LIMIT", 1]]
200
+  (0.0ms) begin transaction
201
+ LazySinglePerson Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.067503"], ["updated_at", "2023-04-24 02:53:20.067503"]]
202
+ LazySinglePerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:oNIiw5W0PmC9sbN3ScGJ8/pY1jdNFHp/H/Z2+y/n59StxACWqgNl"], ["id", 32]]
203
+  (0.5ms) commit transaction
204
+ LazySinglePerson Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 32], ["LIMIT", 1]]
205
+  (0.0ms) begin transaction
206
+ LazySinglePerson Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.069563"], ["updated_at", "2023-04-24 02:53:20.069563"]]
207
+ LazySinglePerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:hJ9zyPXmG4n2aAth6KjyyHr7GUBFbGQRD4XYsuutlwJ5oH4hZ/Z2"], ["id", 33]]
208
+  (0.5ms) commit transaction
209
+ LazySinglePerson Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 33], ["LIMIT", 1]]
210
+  (0.0ms) begin transaction
211
+ LazySinglePerson Update (0.2ms) UPDATE "people" SET "updated_at" = ? WHERE "people"."id" = ? [["updated_at", "2023-04-24 02:53:20.071517"], ["id", 33]]
212
+ LazySinglePerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", nil], ["id", 33]]
213
+  (0.3ms) commit transaction
214
+ LazySinglePerson Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 33], ["LIMIT", 1]]
215
+  (0.0ms) begin transaction
216
+ LazySinglePerson Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.072647"], ["updated_at", "2023-04-24 02:53:20.072647"]]
217
+ LazySinglePerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:EqMDH2xCOSMbv8xIFZK6tHfIyfS30qzrh7Tso2Pp5QABcAciYoKh"], ["id", 34]]
218
+  (0.4ms) commit transaction
219
+ LazySinglePerson Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 34], ["LIMIT", 1]]
220
+ LazySinglePerson Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 34], ["LIMIT", 1]]
221
+  (0.0ms) begin transaction
222
+ LazySinglePerson Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.074650"], ["updated_at", "2023-04-24 02:53:20.074650"]]
223
+ LazySinglePerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:bb81atJtjnM4E8Rf4uZOLQnRW2rPuUtmXyyzcEpTthdr8o9Ts7aL"], ["id", 35]]
224
+  (0.5ms) commit transaction
225
+  (0.0ms) begin transaction
226
+ LazySinglePerson Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.076269"], ["updated_at", "2023-04-24 02:53:20.076269"]]
227
+ LazySinglePerson Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:HwBDGWZ+R4HGi8catAI2dY08I7SwgygIBjOyQ8cK6qPOA6u2OIvN"], ["id", 36]]
228
+  (0.4ms) commit transaction
229
+ LazySinglePerson Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 36], ["LIMIT", 1]]
230
+  (0.0ms) begin transaction
231
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.079677"], ["updated_at", "2023-04-24 02:53:20.079677"]]
232
+ Person Update (0.0ms) UPDATE "people" SET "cc_encrypted" = ? WHERE "people"."id" = ? [["cc_encrypted", "vault:v1:7JMOJN93QQye7nQ+RK1TVqMUBV+AzAS1vO5anspfbeZOJAkjtrkn7tzhpcM="], ["id", 37]]
233
+  (0.5ms) commit transaction
234
+  (0.0ms) begin transaction
235
+ Person Update (0.2ms) UPDATE "people" SET "updated_at" = ? WHERE "people"."id" = ? [["updated_at", "2023-04-24 02:53:20.081470"], ["id", 37]]
236
+ Person Update (0.0ms) UPDATE "people" SET "cc_encrypted" = ? WHERE "people"."id" = ? [["cc_encrypted", nil], ["id", 37]]
237
+  (0.4ms) commit transaction
238
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 37], ["LIMIT", 1]]
239
+  (0.0ms) begin transaction
240
+ Person Create (0.2ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.083572"], ["updated_at", "2023-04-24 02:53:20.083572"]]
241
+ Person Update (0.0ms) UPDATE "people" SET "cc_encrypted" = ? WHERE "people"."id" = ? [["cc_encrypted", "vault:v1:91GPU8ao0cVxbHWnCtZ36lhVFpTewbAzeuYBJ5IVHI4pk08rjwO30RH0QgE="], ["id", 38]]
242
+  (0.4ms) commit transaction
243
+  (0.0ms) begin transaction
244
+ Person Update (0.2ms) UPDATE "people" SET "updated_at" = ? WHERE "people"."id" = ? [["updated_at", "2023-04-24 02:53:20.085371"], ["id", 38]]
245
+ Person Update (0.0ms) UPDATE "people" SET "cc_encrypted" = ? WHERE "people"."id" = ? [["cc_encrypted", ""], ["id", 38]]
246
+  (0.3ms) commit transaction
247
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 38], ["LIMIT", 1]]
248
+  (0.0ms) begin transaction
249
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.087363"], ["updated_at", "2023-04-24 02:53:20.087363"]]
250
+ Person Update (0.0ms) UPDATE "people" SET "cc_encrypted" = ? WHERE "people"."id" = ? [["cc_encrypted", "vault:v1:KCmpC5yCKOo1w0EvdcKEdin6txpuXquJp8EvLPBcoAjwFgDc/WOMJEtikII="], ["id", 39]]
251
+  (0.4ms) commit transaction
252
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 39], ["LIMIT", 1]]
253
+  (0.0ms) begin transaction
254
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.090606"], ["updated_at", "2023-04-24 02:53:20.090606"]]
255
+ Person Update (0.0ms) UPDATE "people" SET "cc_encrypted" = ? WHERE "people"."id" = ? [["cc_encrypted", "vault:v1:1aw8iFtD55NXrspj2UQyVlgCOr8mIPl10zJe0+k+rBldwLQmNv8EfPSsEyY="], ["id", 40]]
256
+  (0.5ms) commit transaction
257
+  (0.0ms) begin transaction
258
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.092533"], ["updated_at", "2023-04-24 02:53:20.092533"]]
259
+ Person Update (0.0ms) UPDATE "people" SET "cc_encrypted" = ? WHERE "people"."id" = ? [["cc_encrypted", "vault:v1:0I6xLnyvTsUCcGyCg62yN1zk518FvYf1ahj3MHUshrg+5cQe7dDOVA+ylcU="], ["id", 41]]
260
+  (0.4ms) commit transaction
261
+  (0.0ms) begin transaction
262
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.094894"], ["updated_at", "2023-04-24 02:53:20.094894"]]
263
+ Person Update (0.0ms) UPDATE "people" SET "favorite_color_encrypted" = ? WHERE "people"."id" = ? [["favorite_color_encrypted", "vault:v1:vNR2o8MsQ8wXUFJCG35GDe+DZP+cEzXo2kmZOPvgbPE3/qfxuvk="], ["id", 42]]
264
+  (0.4ms) commit transaction
265
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 42], ["LIMIT", 1]]
266
+  (0.0ms) begin transaction
267
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.098964"], ["updated_at", "2023-04-24 02:53:20.098964"]]
268
+ Person Update (0.0ms) UPDATE "people" SET "details_encrypted" = ? WHERE "people"."id" = ? [["details_encrypted", "vault:v1:0rhQeYn7DWs4s554TVR2l+OhTBpMgXKs5kOg+fh0wsBbSzP/yLHCd7Y="], ["id", 43]]
269
+  (0.4ms) commit transaction
270
+  (0.0ms) begin transaction
271
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.100923"], ["updated_at", "2023-04-24 02:53:20.100923"]]
272
+ Person Update (0.0ms) UPDATE "people" SET "details_encrypted" = ? WHERE "people"."id" = ? [["details_encrypted", "vault:v1:UPZZ6GUP32bl2kmdzFWzhPX4ZUzTjilmcqSpzzyvfM6l4qGeGK7JzofCTsjA4I/GcQ=="], ["id", 44]]
273
+  (0.4ms) commit transaction
274
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 44], ["LIMIT", 1]]
275
+  (0.0ms) begin transaction
276
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.104504"], ["updated_at", "2023-04-24 02:53:20.104504"]]
277
+  (0.4ms) commit transaction
278
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 45], ["LIMIT", 1]]
279
+  (0.0ms) begin transaction
280
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.106981"], ["updated_at", "2023-04-24 02:53:20.106981"]]
281
+ Person Update (0.0ms) UPDATE "people" SET "business_card_encrypted" = ? WHERE "people"."id" = ? [["business_card_encrypted", "vault:v1:UERUAT36CzgSrA7DgRDVCk4bL/+Ulh7yfZn6Yt9sMLTLC6GJQQq/OMqYPGocfTMY7/4ccA/MzBCcScCo"], ["id", 46]]
282
+  (0.4ms) commit transaction
283
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 46], ["LIMIT", 1]]
284
+  (0.0ms) begin transaction
285
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.110817"], ["updated_at", "2023-04-24 02:53:20.110817"]]
286
+ Person Update (0.0ms) UPDATE "people" SET "default_with_serializer_encrypted" = ? WHERE "people"."id" = ? [["default_with_serializer_encrypted", "vault:v1:D6hMwZ+k3dlHi+Qlmg6N9md5Sjq6gDFuM6zZZUpd95lM6qLV9Wcq5F8="], ["id", 47]]
287
+  (0.4ms) commit transaction
288
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 47], ["LIMIT", 1]]
289
+  (0.0ms) begin transaction
290
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.114118"], ["updated_at", "2023-04-24 02:53:20.114118"]]
291
+  (0.4ms) commit transaction
292
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 48], ["LIMIT", 1]]
293
+  (0.0ms) begin transaction
294
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.116182"], ["updated_at", "2023-04-24 02:53:20.116182"]]
295
+ Person Update (0.0ms) UPDATE "people" SET "default_with_serializer_encrypted" = ? WHERE "people"."id" = ? [["default_with_serializer_encrypted", "vault:v1:zUgFVPmySQIsxeIM4jGLw1+XE9MPTLRu+le7NGS4y8SSUk1q66ttaP4="], ["id", 49]]
296
+  (0.4ms) commit transaction
297
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 49], ["LIMIT", 1]]
298
+  (0.0ms) begin transaction
299
+ Person Create (0.2ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.121217"], ["updated_at", "2023-04-24 02:53:20.121217"]]
300
+  (0.5ms) commit transaction
301
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 50], ["LIMIT", 1]]
302
+  (0.0ms) begin transaction
303
+ Person Create (0.2ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.124375"], ["updated_at", "2023-04-24 02:53:20.124375"]]
304
+ Person Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:qsDbEHAPD8CZ5Di41wThVQuj0AVeACJaY5qcAZccRAjgq96/6K6g"], ["id", 51]]
305
+  (0.5ms) commit transaction
306
+  (0.0ms) begin transaction
307
+ Person Create (0.2ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.126564"], ["updated_at", "2023-04-24 02:53:20.126564"]]
308
+ Person Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:m6vDDLCU0jempQ1I0RfwJ29xUa5mHBwV07gRx7VViq9+oOxYOwZ7"], ["id", 52]]
309
+  (0.4ms) commit transaction
310
+  (0.0ms) begin transaction
311
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.128689"], ["updated_at", "2023-04-24 02:53:20.128689"]]
312
+ Person Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:8nlRUl0j5heUzIER8Djl4XJFIzC4alO05FmfrqkSzXbln2y3KGEV"], ["id", 53]]
313
+  (0.4ms) commit transaction
314
+  (0.0ms) begin transaction
315
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.130658"], ["updated_at", "2023-04-24 02:53:20.130658"]]
316
+ Person Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:CAQX2RSUou3HTi28jxNDXp6y+xtSUZa1tNVYpsYyjUPPetV8U75q"], ["id", 54]]
317
+  (0.4ms) commit transaction
318
+  (0.0ms) begin transaction
319
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.132623"], ["updated_at", "2023-04-24 02:53:20.132623"]]
320
+ Person Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:s1kOXpTqQOWN6ksW1wYMygjBbZbT2S+LaaD6ts1NeAhHGuEwNdo10Q=="], ["id", 55]]
321
+  (0.4ms) commit transaction
322
+  (0.0ms) begin transaction
323
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.134488"], ["updated_at", "2023-04-24 02:53:20.134488"]]
324
+ Person Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:Gy36nkUZrSf5xW6JN+q6C/LZ0UcLtVMlMVHVusFuR7fDpvAeJ3OQ"], ["id", 56]]
325
+  (0.5ms) commit transaction
326
+  (0.0ms) begin transaction
327
+ Person Update (0.2ms) UPDATE "people" SET "updated_at" = ? WHERE "people"."id" = ? [["updated_at", "2023-04-24 02:53:20.136402"], ["id", 56]]
328
+ Person Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", ""], ["id", 56]]
329
+  (0.4ms) commit transaction
330
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 56], ["LIMIT", 1]]
331
+  (0.0ms) begin transaction
332
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.138634"], ["updated_at", "2023-04-24 02:53:20.138634"]]
333
+ Person Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:eLcKrXai8A3xEUNuLWSsbJHsvgbtAtUl+26ReLLWU7huPUuqZo93"], ["id", 57]]
334
+  (0.6ms) commit transaction
335
+  (0.0ms) begin transaction
336
+ Person Update (0.2ms) UPDATE "people" SET "updated_at" = ? WHERE "people"."id" = ? [["updated_at", "2023-04-24 02:53:20.140702"], ["id", 57]]
337
+ Person Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", nil], ["id", 57]]
338
+  (0.4ms) commit transaction
339
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 57], ["LIMIT", 1]]
340
+  (0.0ms) begin transaction
341
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.142707"], ["updated_at", "2023-04-24 02:53:20.142707"]]
342
+ Person Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:1hXlNCk5f4Yfz89jrKNqXuX10BcgT7rxGOmZqOeUN9z5sEx2k5X2"], ["id", 58]]
343
+  (0.4ms) commit transaction
344
+  (0.0ms) begin transaction
345
+ Person Destroy (0.2ms) DELETE FROM "people" WHERE "people"."id" = ? [["id", 58]]
346
+  (0.4ms) commit transaction
347
+  (0.0ms) begin transaction
348
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.145550"], ["updated_at", "2023-04-24 02:53:20.145550"]]
349
+ Person Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:2OEuCKGDc/LtIQvBn+3uE7c0blHKUmvwNPV1LMxdHt7h5Izi8C5w"], ["id", 59]]
350
+  (0.4ms) commit transaction
351
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 59], ["LIMIT", 1]]
352
+  (0.0ms) begin transaction
353
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.149075"], ["updated_at", "2023-04-24 02:53:20.149075"]]
354
+ Person Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:mjTuykSzcTpaB5j/sXz+uUgC8zs55kx/jxx+IGTueyBX6iIsgM9w"], ["id", 60]]
355
+  (0.6ms) commit transaction
356
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 60], ["LIMIT", 1]]
357
+  (0.0ms) begin transaction
358
+ Person Update (0.1ms) UPDATE "people" SET "updated_at" = ? WHERE "people"."id" = ? [["updated_at", "2023-04-24 02:53:20.152419"], ["id", 60]]
359
+ Person Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", nil], ["id", 60]]
360
+  (0.4ms) commit transaction
361
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 60], ["LIMIT", 1]]
362
+  (0.0ms) begin transaction
363
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.155964"], ["updated_at", "2023-04-24 02:53:20.155964"]]
364
+ Person Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:QUVTnTnrdYLZoUljjrUSaFGpuOywz7Tp5XJ6Omx1Ht/GfMX8KqsO"], ["id", 61]]
365
+  (0.5ms) commit transaction
366
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 61], ["LIMIT", 1]]
367
+  (0.0ms) begin transaction
368
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.159451"], ["updated_at", "2023-04-24 02:53:20.159451"]]
369
+ Person Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:jLCuzuCW+QFO4x2Ibb9NF9kzLEPmz5a/hV0hsakXJhS3JnxDE7Cw"], ["id", 62]]
370
+  (0.5ms) commit transaction
371
+  (0.0ms) begin transaction
372
+ Person Update (0.1ms) UPDATE "people" SET "name" = ?, "updated_at" = ? WHERE "people"."id" = ? [["name", "Cinderella"], ["updated_at", "2023-04-24 02:53:20.161284"], ["id", 62]]
373
+  (0.4ms) commit transaction
374
+  (0.0ms) begin transaction
375
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.162646"], ["updated_at", "2023-04-24 02:53:20.162646"]]
376
+ Person Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", "vault:v1:GxPl3UOoKVvBEVP20az9XYH6VLyo51nuMvK9yaoHALxHDLJMD0lv"], ["id", 63]]
377
+  (0.4ms) commit transaction
378
+  (0.0ms) begin transaction
379
+ Person Update (0.1ms) UPDATE "people" SET "updated_at" = ? WHERE "people"."id" = ? [["updated_at", "2023-04-24 02:53:20.164341"], ["id", 63]]
380
+ Person Update (0.0ms) UPDATE "people" SET "ssn_encrypted" = ? WHERE "people"."id" = ? [["ssn_encrypted", nil], ["id", 63]]
381
+  (0.4ms) commit transaction
382
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 63], ["LIMIT", 1]]
383
+  (0.0ms) begin transaction
384
+ Person Create (0.2ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.166452"], ["updated_at", "2023-04-24 02:53:20.166452"]]
385
+  (0.4ms) commit transaction
386
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 64], ["LIMIT", 1]]
387
+  (0.0ms) begin transaction
388
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.168466"], ["updated_at", "2023-04-24 02:53:20.168466"]]
389
+ Person Update (0.0ms) UPDATE "people" SET "default_encrypted" = ? WHERE "people"."id" = ? [["default_encrypted", "vault:v1:s/8fz6lsnF4vDL4XTB62ZnOvqu2S/gZeGkcjB4IWyxxCuJk="], ["id", 65]]
390
+  (0.4ms) commit transaction
391
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 65], ["LIMIT", 1]]
392
+  (0.0ms) begin transaction
393
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.172022"], ["updated_at", "2023-04-24 02:53:20.172022"]]
394
+ Person Update (0.0ms) UPDATE "people" SET "default_encrypted" = ? WHERE "people"."id" = ? [["default_encrypted", "vault:v1:1ZYvdeQzgJsJFaB67Sf0o4Nt9nnEdEWrRTvaZNXp2Jt7rtA="], ["id", 66]]
395
+  (0.4ms) commit transaction
396
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 66], ["LIMIT", 1]]
397
+  (0.0ms) begin transaction
398
+ Person Create (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2023-04-24 02:53:20.175816"], ["updated_at", "2023-04-24 02:53:20.175816"]]
399
+  (0.5ms) commit transaction
400
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT ? [["id", 67], ["LIMIT", 1]]
@@ -1,4 +1,9 @@
1
1
  <!DOCTYPE html>
2
+ <!--
3
+ Copyright (c) HashiCorp, Inc.
4
+ SPDX-License-Identifier: MPL-2.0
5
+ -->
6
+
2
7
  <html>
3
8
  <head>
4
9
  <title>The page you were looking for doesn't exist (404)</title>
@@ -1,4 +1,9 @@
1
1
  <!DOCTYPE html>
2
+ <!--
3
+ Copyright (c) HashiCorp, Inc.
4
+ SPDX-License-Identifier: MPL-2.0
5
+ -->
6
+
2
7
  <html>
3
8
  <head>
4
9
  <title>The change you wanted was rejected (422)</title>
@@ -1,4 +1,9 @@
1
1
  <!DOCTYPE html>
2
+ <!--
3
+ Copyright (c) HashiCorp, Inc.
4
+ SPDX-License-Identifier: MPL-2.0
5
+ -->
6
+
2
7
  <html>
3
8
  <head>
4
9
  <title>We're sorry, but something went wrong (500)</title>
@@ -1,4 +1,7 @@
1
1
  # encoding: utf-8
2
+ # Copyright (c) HashiCorp, Inc.
3
+ # SPDX-License-Identifier: MPL-2.0
4
+
2
5
 
3
6
  require "spec_helper"
4
7
 
@@ -598,7 +601,7 @@ describe Vault::Rails do
598
601
  end
599
602
  end
600
603
 
601
- context "with context" do
604
+ xcontext "with context" do
602
605
  it "encodes and decodes with a string context" do
603
606
  person = Person.create!(context_string: "foobar")
604
607
  person.reload
@@ -681,7 +684,7 @@ describe Vault::Rails do
681
684
  end
682
685
  end
683
686
 
684
- context 'with transform_secret', ent_vault: ">= 1.4" do
687
+ xcontext 'with transform_secret', ent_vault: ">= 1.4" do
685
688
  before(:all) do
686
689
  Vault::Rails.sys.mount("transform", :transform)
687
690
  Vault::Rails.client.transform.create_transformation(
@@ -1,3 +1,6 @@
1
+ # Copyright (c) HashiCorp, Inc.
2
+ # SPDX-License-Identifier: MPL-2.0
3
+
1
4
  require 'spec_helper'
2
5
 
3
6
  RSpec.describe Vault::Rails::JSONSerializer do
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,6 @@
1
+ # Copyright (c) HashiCorp, Inc.
2
+ # SPDX-License-Identifier: MPL-2.0
3
+
1
4
  $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
2
5
  require "vault/rails"
3
6
 
@@ -1,3 +1,6 @@
1
+ # Copyright (c) HashiCorp, Inc.
2
+ # SPDX-License-Identifier: MPL-2.0
3
+
1
4
  require "open-uri"
2
5
  require "singleton"
3
6
  require "timeout"
@@ -15,6 +18,7 @@ module RSpec
15
18
  end
16
19
 
17
20
  attr_reader :token
21
+ attr_reader :unseal_token
18
22
 
19
23
  def initialize
20
24
  # If there is already a vault-token, we need to move it so we do not
@@ -27,7 +31,10 @@ module RSpec
27
31
  end
28
32
 
29
33
  io = Tempfile.new("vault-server")
30
- pid = Process.spawn({}, "vault server -dev", out: io.to_i, err: io.to_i)
34
+ pid = Process.spawn(
35
+ "vault server -dev -dev-root-token-id=root",
36
+ out: io.to_i, err: io.to_i
37
+ )
31
38
 
32
39
  at_exit do
33
40
  Process.kill("INT", pid)
@@ -36,9 +43,23 @@ module RSpec
36
43
  io.close
37
44
  io.unlink
38
45
  end
46
+ wait_for_ready
47
+ puts "vault server is ready"
48
+ # sleep to get unseal token
49
+ sleep 5
50
+
51
+ @token = "root"
39
52
 
40
- wait_for_ready do
41
- @token = File.read(TOKEN_PATH)
53
+ output = ""
54
+ while io.rewind
55
+ output = io.read
56
+ break unless output.empty?
57
+ end
58
+
59
+ if output.match(/Unseal Key.*: (.+)/)
60
+ @unseal_token = $1.strip
61
+ else
62
+ raise "Vault did not return an unseal token!"
42
63
  end
43
64
  end
44
65
 
@@ -46,16 +67,23 @@ module RSpec
46
67
  "http://127.0.0.1:8200"
47
68
  end
48
69
 
49
- def wait_for_ready(&block)
50
- Timeout.timeout(5) do
51
- while !File.exist?(TOKEN_PATH)
52
- sleep(0.25)
70
+ def wait_for_ready
71
+ uri = URI(address + "/v1/sys/health")
72
+ Timeout.timeout(15) do
73
+ loop do
74
+ begin
75
+ response = Net::HTTP.get_response(uri)
76
+ if response.code != 200
77
+ return true
78
+ end
79
+ rescue Errno::ECONNREFUSED
80
+ puts "waiting for vault to start"
81
+ end
82
+ sleep 2
53
83
  end
54
84
  end
55
-
56
- yield
57
85
  rescue Timeout::Error
58
- raise "Vault did not start in 5 seconds!"
86
+ raise TimeoutError, "Timed out waiting for vault health check"
59
87
  end
60
88
  end
61
89
  end