Skip to content

Commit

Permalink
Merge pull request #93 from DFE-Digital/revert-71-encrypt-dsi-user-pi…
Browse files Browse the repository at this point in the history
…i-fields

Revert "Encrypt `DsiUser` PII fields"
  • Loading branch information
steventux authored Aug 14, 2023
2 parents 21a9472 + 421d0de commit d8cae7a
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 77 deletions.
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,3 @@ terraform.tfstate*
bin/terrafile
bin/konduit.sh
bin/fetch_config.rb

config/credentials/test.key
config/credentials/review.key

/config/credentials/production.key
31 changes: 0 additions & 31 deletions adr/00004-encrypt-database-fields.md

This file was deleted.

3 changes: 0 additions & 3 deletions app/models/dsi_user.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
class DsiUser < ApplicationRecord
encrypts :email, deterministic: true
encrypts :first_name, :last_name

def self.create_or_update_from_dsi(dsi_payload)
dsi_user = find_or_initialize_by(email: dsi_payload.info.fetch(:email))

Expand Down
1 change: 0 additions & 1 deletion config/credentials/production.yml.enc

This file was deleted.

1 change: 0 additions & 1 deletion config/credentials/review.yml.enc

This file was deleted.

1 change: 0 additions & 1 deletion config/credentials/test.yml.enc

This file was deleted.

35 changes: 0 additions & 35 deletions docs/encryption.md

This file was deleted.

0 comments on commit d8cae7a

Please sign in to comment.