Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use audited fork that allows reading encrypted attrs #1357

Merged
merged 1 commit into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby "3.3.0"
gem "rails", "~> 7.1.3"

gem "audited"
gem "audited", git: "https://github.com/tvararu/audited", branch: "encryption"
gem "awesome_print"
gem "bootsnap", require: false
gem "config"
Expand Down
14 changes: 10 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ GIT
capybara_accessible_selectors (0.11.0)
capybara (~> 3.36)

GIT
remote: https://github.com/tvararu/audited
revision: f52ac706d6e5faaeeab772face93a45e52eee6b8
branch: encryption
specs:
audited (5.6.0)
activerecord (>= 5.2, < 7.2)
activesupport (>= 5.2, < 7.2)

GEM
remote: https://rubygems.org/
specs:
Expand Down Expand Up @@ -97,9 +106,6 @@ GEM
asciidoctor-diagram-ditaamini (1.0.3)
asciidoctor-diagram-plantuml (1.2024.0)
ast (2.4.2)
audited (5.6.0)
activerecord (>= 5.2, < 7.2)
activesupport (>= 5.2, < 7.2)
awesome_print (1.9.2)
backport (1.2.0)
base64 (0.2.0)
Expand Down Expand Up @@ -549,7 +555,7 @@ DEPENDENCIES
annotate
asciidoctor
asciidoctor-diagram
audited
audited!
awesome_print
bootsnap
brakeman
Expand Down
6 changes: 6 additions & 0 deletions config/initializers/audited.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# See https://github.com/collectiveidea/audited/pull/694
Audited.filter_encrypted_attributes = false

# Currently no-ops: https://github.com/collectiveidea/audited/pull/694/files#r1618767769
# Fixed by https://github.com/tvararu/audited/commit/f52ac70
Audited.encrypt_audited_changes = true
Loading