-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(rules): check languages in data types for missing encryption (#675)
* fix(rules): check languages in data types for missing encryption * chore: update e2e tests to support multi file structure
- Loading branch information
1 parent
ab95571
commit 79bfd05
Showing
20 changed files
with
89 additions
and
137 deletions.
There are no files selected for viewing
File renamed without changes.
24 changes: 24 additions & 0 deletions
24
...estRubyRailsDefaultEncryptionSchema-testdata-data-ruby_rails_default_encryption_schema_rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
warning: | ||
- rule: | ||
cwe_ids: | ||
- "312" | ||
id: ruby_rails_default_encryption | ||
description: Missing application-level encryption of sensitive data detected. | ||
documentation_url: https://docs.bearer.com/reference/rules/ruby_rails_default_encryption | ||
line_number: 4 | ||
filename: e2e/rules/testdata/data/ruby_rails_default_encryption_schema_rb/db/schema.rb | ||
category_groups: | ||
- PII | ||
parent_line_number: 2 | ||
parent_content: |- | ||
create_table "users", force: :cascade do |t| | ||
t.string "email", null: false | ||
t.string "name" | ||
t.string "encrypted_password", null: false | ||
t.datetime "created_at", null: false | ||
t.datetime "updated_at", null: false | ||
end | ||
|
||
|
||
-- | ||
|
25 changes: 25 additions & 0 deletions
25
...RailsDefaultEncryptionStructure-testdata-data-ruby_rails_default_encryption_structure_sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
warning: | ||
- rule: | ||
cwe_ids: | ||
- "312" | ||
id: ruby_rails_default_encryption | ||
description: Missing application-level encryption of sensitive data detected. | ||
documentation_url: https://docs.bearer.com/reference/rules/ruby_rails_default_encryption | ||
line_number: 3 | ||
filename: e2e/rules/testdata/data/ruby_rails_default_encryption_structure_sql/db/structure.sql | ||
category_groups: | ||
- PII | ||
parent_line_number: 1 | ||
parent_content: |- | ||
CREATE TABLE public.users ( | ||
id bigint NOT NULL, | ||
name character varying, | ||
password character varying, | ||
created_at timestamp(6) without time zone NOT NULL, | ||
updated_at timestamp(6) without time zone NOT NULL, | ||
email character varying DEFAULT ''::character varying NOT NULL | ||
) | ||
|
||
|
||
-- | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
...ailsDefaultEncryption--application_level_encryption_missing-schema_rb-app-models-user.yml
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...tRubyRailsDefaultEncryption--application_level_encryption_missing-schema_rb-bin-rails.yml
This file was deleted.
Oops, something went wrong.
41 changes: 0 additions & 41 deletions
41
...tRubyRailsDefaultEncryption--application_level_encryption_missing-schema_rb-db-schema.yml
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...DefaultEncryption--application_level_encryption_missing-structure_sql-app-models-user.yml
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...yRailsDefaultEncryption--application_level_encryption_missing-structure_sql-bin-rails.yml
This file was deleted.
Oops, something went wrong.
43 changes: 0 additions & 43 deletions
43
...ilsDefaultEncryption--application_level_encryption_missing-structure_sql-db-structure.yml
This file was deleted.
Oops, something went wrong.