data_classification 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +15 -0
- data/.rspec +3 -0
- data/.travis.yml +6 -0
- data/CHANGELOG.md +16 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +93 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/data_classification.gemspec +37 -0
- data/lib/data_classification.rb +17 -0
- data/lib/data_classification/generators/data_classification/USAGE +8 -0
- data/lib/data_classification/generators/data_classification/create_generator.rb +53 -0
- data/lib/data_classification/generators/data_classification/templates/create_migration.rb.erb +15 -0
- data/lib/data_classification/migration.rb +19 -0
- data/lib/data_classification/railtie.rb +10 -0
- data/lib/data_classification/tasks/bulk.rake +54 -0
- data/lib/data_classification/version.rb +3 -0
- metadata +114 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4d61857bdf82daed3923a26e5476b3a8b564054e1388949b83f69c71ff1ceddf
|
4
|
+
data.tar.gz: 23c8d8c20d93e252fba54ad8ba8b57636c8a2b4b3f511396154efacb0807c340
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 211a08ec4596c48127877803d2e652ea08d2da46bb27767204f9ebbaf50c3398eee55b989300f7614d7f32ae40cc60a9096dc83373f010ba228a293d9b8efea8
|
7
|
+
data.tar.gz: 4fd5f4ab6f82ba96d8eaa83550000e835e20b2d08042dc1162a6b4966e9acb4bfa4c9f0dd4f43d2d4bbcf46dbfb3638b77c185d8b35f9e7d17371dde1c06a4ff
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
## Unreleased Changes
|
2
|
+
|
3
|
+
[Full Changelog](https://github.com/Hacker0x01/data_classification/compare/master)
|
4
|
+
|
5
|
+
Bug Fixes:
|
6
|
+
|
7
|
+
* None
|
8
|
+
|
9
|
+
Enhancements:
|
10
|
+
|
11
|
+
* Add a rake task to walk through your table/columns and easily classify and create a migration from it
|
12
|
+
* Add a migration generator
|
13
|
+
* Module helper to include in migrations to add data classification smart comment
|
14
|
+
|
15
|
+
Deprecations:
|
16
|
+
* None
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at opensource@hackerone.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [https://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: https://contributor-covenant.org
|
74
|
+
[version]: https://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 HackerOne Inc.
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,93 @@
|
|
1
|
+
# DataClassification
|
2
|
+
|
3
|
+
This gem is to help with classifying data in your database by adding smart comments to your columns in Rails. This brings
|
4
|
+
the following functionality to your Rails app:
|
5
|
+
- a helper to allow migrations to easily add data classifications
|
6
|
+
- a generator to create a migration that will add one or more data classifications to columns
|
7
|
+
- a rake task to help you audit and set the data classifications for your columns
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
Add this line to your application's Gemfile:
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
gem 'data_classification'
|
15
|
+
```
|
16
|
+
|
17
|
+
And then execute:
|
18
|
+
|
19
|
+
$ bundle install
|
20
|
+
|
21
|
+
Or install it yourself as:
|
22
|
+
|
23
|
+
$ gem install data_classification
|
24
|
+
|
25
|
+
## Usage
|
26
|
+
|
27
|
+
## Migration Helper
|
28
|
+
|
29
|
+
One simple helper is available to set the classification on the column level:
|
30
|
+
```ruby
|
31
|
+
include DataClassification::Migrate
|
32
|
+
|
33
|
+
add_data_classification 'table_name', 'column_name', 'classification'
|
34
|
+
```
|
35
|
+
|
36
|
+
This generates the SQL to add a column. In PostgreSQL, this is equivalent to:
|
37
|
+
```sql
|
38
|
+
COMMENT ON COLUMN schema.table_name.column_name IS '{"tags":["classification:confidential"]}';
|
39
|
+
```
|
40
|
+
|
41
|
+
### Migration Generator
|
42
|
+
|
43
|
+
You can view generators by running `bin/rails g`. The simple migration generator syntax is as follows:
|
44
|
+
```
|
45
|
+
bin/rails g data_classification <table>:<column>:<classification> <table>:<column>:<classification> ...
|
46
|
+
```
|
47
|
+
|
48
|
+
This will create a migration similar to the following:
|
49
|
+
```ruby
|
50
|
+
class CreateDataClassificationForArInternalMetadata < ActiveRecord::Migration[5.2]
|
51
|
+
include DataClassification::Migration
|
52
|
+
|
53
|
+
def up
|
54
|
+
add_data_classification 'ar_internal_metadata', 'key', 'confidential'
|
55
|
+
end
|
56
|
+
|
57
|
+
def down
|
58
|
+
fail ActiveRecord::IrreversibleMigration
|
59
|
+
end
|
60
|
+
end
|
61
|
+
```
|
62
|
+
|
63
|
+
### Audit Data Classifications
|
64
|
+
|
65
|
+
It's tedious to go through and map out the table and column classifications. To help simplify the process, you can use this rake task:
|
66
|
+
```
|
67
|
+
bin/rake data_classification:bulk_classify
|
68
|
+
```
|
69
|
+
|
70
|
+
This walks through any uncommented table/columns and prompts on how to classify:
|
71
|
+
```
|
72
|
+
Table: users, Column: password
|
73
|
+
Data classification (public,operational,critical,confidential,personal,personal_sensitive, q(uit), n(ext) >
|
74
|
+
```
|
75
|
+
|
76
|
+
## Development
|
77
|
+
|
78
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
79
|
+
|
80
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
81
|
+
|
82
|
+
## Contributing
|
83
|
+
|
84
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/Hacker0x01/data_classification. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/Hacker0x01/data_classification/blob/master/CODE_OF_CONDUCT.md).
|
85
|
+
|
86
|
+
|
87
|
+
## License
|
88
|
+
|
89
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
90
|
+
|
91
|
+
## Code of Conduct
|
92
|
+
|
93
|
+
Everyone interacting in the DataClassification project's codebases, issue trackers, chat rooms, and mailing lists is expected to follow the [code of conduct](https://github.com/Hacker0x01/data_classification/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "data_classification"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
require_relative 'lib/data_classification/version'
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = "data_classification"
|
5
|
+
spec.version = DataClassification::VERSION
|
6
|
+
spec.authors = ["HackerOne Open Source", "Ben Willis"]
|
7
|
+
spec.email = ["opensource+data_classification@hackerone.com", "ben@hackerone.com"]
|
8
|
+
|
9
|
+
spec.summary = %q{
|
10
|
+
DataClassification helps you tag your database columns with smart comments in order to classify your data.
|
11
|
+
}
|
12
|
+
spec.description = %q{
|
13
|
+
By leveraging smart comments in your schema, you can easily use this data throughout your app
|
14
|
+
and make better decisions when logging data, exposing data through endpoints, monitoring data sent elsewhere,
|
15
|
+
or allowing other systems accessing your database to consume the classifications.
|
16
|
+
}
|
17
|
+
spec.homepage = "https://github.com/Hacker0x01/data_classification"
|
18
|
+
spec.license = "MIT"
|
19
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
20
|
+
|
21
|
+
spec.add_dependency('activerecord', '> 5.0')
|
22
|
+
spec.add_dependency('railties', '> 5.0')
|
23
|
+
spec.add_development_dependency('pry')
|
24
|
+
|
25
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
26
|
+
spec.metadata["source_code_uri"] = "https://github.com/Hacker0x01/data_classification"
|
27
|
+
spec.metadata["changelog_uri"] = "https://github.com/Hacker0x01/data_classification/blob/master/CHANGELOG.md"
|
28
|
+
|
29
|
+
# Specify which files should be added to the gem when it is released.
|
30
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
31
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
32
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
33
|
+
end
|
34
|
+
spec.bindir = "exe"
|
35
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
36
|
+
spec.require_paths = ["lib"]
|
37
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require "data_classification/version"
|
2
|
+
require "data_classification/migration"
|
3
|
+
require "data_classification/generators/data_classification/create_generator"
|
4
|
+
|
5
|
+
module DataClassification
|
6
|
+
require 'data_classification/railtie' if defined?(Rails)
|
7
|
+
class Error < StandardError; end
|
8
|
+
|
9
|
+
DATA_CLASSIFICATIONS = [
|
10
|
+
PUBLIC = :public,
|
11
|
+
OPERATIONAL = :operational,
|
12
|
+
CRITICAL = :critical,
|
13
|
+
CONFIDENTIAL = :confidential,
|
14
|
+
PERSONAL = :personal,
|
15
|
+
PERSONAL_SENSITIVE = :personal_sensitive,
|
16
|
+
].freeze
|
17
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
Description:
|
2
|
+
Generate a migration to set the data classification of a table column.
|
3
|
+
|
4
|
+
Example:
|
5
|
+
rails generate data_classification:create reports:vulnerability_information:confidential reports:title:confidential
|
6
|
+
|
7
|
+
This will create:
|
8
|
+
Migrations: db/migrate/{timestamp}_create_data_classification_for_{table_names}.rb
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "rails/generators"
|
4
|
+
require 'rails/generators/active_record/migration'
|
5
|
+
require 'rails/generators/base'
|
6
|
+
|
7
|
+
class CreateGenerator < Rails::Generators::Base
|
8
|
+
include ActiveRecord::Generators::Migration
|
9
|
+
include DataClassification::Migration
|
10
|
+
|
11
|
+
namespace 'data_classification:create'
|
12
|
+
source_root File.expand_path('../templates', __FILE__)
|
13
|
+
|
14
|
+
# table1:column1:classification table2:column2:classification
|
15
|
+
# => ['table1:column1:classification', 'table2:column2:classification']
|
16
|
+
argument :table_column_classification, type: :array
|
17
|
+
|
18
|
+
def copy_migration
|
19
|
+
validate!
|
20
|
+
set_local_assigns!
|
21
|
+
migration_template 'create_migration.rb.erb', "db/migrate/#{migration_file_name}.rb"
|
22
|
+
end
|
23
|
+
|
24
|
+
protected
|
25
|
+
|
26
|
+
def set_local_assigns!
|
27
|
+
@table_classifications = table_column_classification.map { |params| params.split(':') }.sort_by { |params| params[0] }
|
28
|
+
tables = @table_classifications.map { |table, _column, _classification| table }.uniq.to_sentence.gsub(' ', '_')
|
29
|
+
|
30
|
+
@migration_file_name = "create_data_classification_for_#{tables}"
|
31
|
+
@migration_class_name = "CreateDataClassification#{tables.camelize}"
|
32
|
+
end
|
33
|
+
|
34
|
+
def validate!
|
35
|
+
table_column_classification.each do |data|
|
36
|
+
table, column, classification = data.split(':')
|
37
|
+
|
38
|
+
if table.blank? || column.blank? || classification.blank?
|
39
|
+
fail "All arguments require 3 parts <table>:<column>:<classification> referenced in '#{data}'"
|
40
|
+
end
|
41
|
+
unless ActiveRecord::Base.connection.table_exists?(table)
|
42
|
+
fail "Table '#{table}' referenced in '#{data}' does not exist"
|
43
|
+
end
|
44
|
+
unless ActiveRecord::Base.connection.column_exists? table, column
|
45
|
+
fail "Column '#{column}' on '#{table}' referenced in '#{data}' does not exist"
|
46
|
+
end
|
47
|
+
if DataClassification::DATA_CLASSIFICATIONS.map(&:to_s).exclude? classification
|
48
|
+
fail "Data classification '#{classification}' referenced in '#{data}' is not valid, must be one of "\
|
49
|
+
"#{DataClassification::DATA_CLASSIFICATIONS.join(', ')}"
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class <%= migration_class_name %> < ActiveRecord::Migration[5.2]
|
4
|
+
include DataClassification::Migration
|
5
|
+
|
6
|
+
def up
|
7
|
+
<%- @table_classifications.each do |table, column, classification | -%>
|
8
|
+
add_data_classification '<%= table %>', '<%= column %>', '<%= classification %>'
|
9
|
+
<%- end -%>
|
10
|
+
end
|
11
|
+
|
12
|
+
def down
|
13
|
+
fail ActiveRecord::IrreversibleMigration
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module DataClassification
|
4
|
+
module Migration
|
5
|
+
def add_data_classification(table, column, classification)
|
6
|
+
change_column_comment table, column, data_classification_comment(classification)
|
7
|
+
end
|
8
|
+
|
9
|
+
def data_classification_comment(classification)
|
10
|
+
fail "This is not a valid data classification" unless DATA_CLASSIFICATIONS.include? classification
|
11
|
+
|
12
|
+
{
|
13
|
+
tags: [
|
14
|
+
"classification:#{classification}",
|
15
|
+
],
|
16
|
+
}.to_json
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'data_classification/migration'
|
4
|
+
|
5
|
+
namespace :data_classification do
|
6
|
+
include DataClassification
|
7
|
+
|
8
|
+
desc 'Classify your table/columns in bulk'
|
9
|
+
task bulk_classify: :environment do
|
10
|
+
classifications = []
|
11
|
+
unclassified = []
|
12
|
+
|
13
|
+
ActiveRecord::Base.connection.tables.each do |table_name|
|
14
|
+
ActiveRecord::Base.connection.columns(table_name).each do |column|
|
15
|
+
next if column.comment.present?
|
16
|
+
unclassified << [table_name, column.name]
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
unclassified.each do |table_name, column_name|
|
21
|
+
puts "Table: #{table_name}, Column: #{column_name}"
|
22
|
+
puts "Data classification (#{DATA_CLASSIFICATIONS.join(',')}, q(uit), n(ext) >"
|
23
|
+
selection = STDIN.gets.chomp
|
24
|
+
if selection == 'q'
|
25
|
+
break
|
26
|
+
elsif selection == 'n'
|
27
|
+
next
|
28
|
+
elsif DATA_CLASSIFICATIONS.map(&:to_s).include? selection
|
29
|
+
classifications << [table_name, column_name, selection]
|
30
|
+
else
|
31
|
+
puts 'Invalid option, try again.'
|
32
|
+
redo
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
if classifications.any?
|
37
|
+
arguments = classifications.map { |classification| classification.join(':') }
|
38
|
+
Rails::Generators.invoke 'data_classification:create', arguments
|
39
|
+
else
|
40
|
+
puts 'No classifications made'
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
task list: :environment do
|
45
|
+
ActiveRecord::Base.connection.tables.each do |table_name|
|
46
|
+
ActiveRecord::Base.connection.columns(table_name).each do |column|
|
47
|
+
next if column.comment.nil?
|
48
|
+
data_classification = JSON.parse(column.comment)
|
49
|
+
|
50
|
+
puts [table_name, column.name, data_classification['tags']].join(',')
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
metadata
ADDED
@@ -0,0 +1,114 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: data_classification
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- HackerOne Open Source
|
8
|
+
- Ben Willis
|
9
|
+
autorequire:
|
10
|
+
bindir: exe
|
11
|
+
cert_chain: []
|
12
|
+
date: 2020-03-31 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: activerecord
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ">"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '5.0'
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '5.0'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: railties
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '5.0'
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '5.0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: pry
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
description: "\n By leveraging smart comments in your schema, you can easily use
|
57
|
+
this data throughout your app\n and make better decisions when logging data,
|
58
|
+
exposing data through endpoints, monitoring data sent elsewhere,\n or allowing
|
59
|
+
other systems accessing your database to consume the classifications.\n "
|
60
|
+
email:
|
61
|
+
- opensource+data_classification@hackerone.com
|
62
|
+
- ben@hackerone.com
|
63
|
+
executables: []
|
64
|
+
extensions: []
|
65
|
+
extra_rdoc_files: []
|
66
|
+
files:
|
67
|
+
- ".gitignore"
|
68
|
+
- ".rspec"
|
69
|
+
- ".travis.yml"
|
70
|
+
- CHANGELOG.md
|
71
|
+
- CODE_OF_CONDUCT.md
|
72
|
+
- Gemfile
|
73
|
+
- LICENSE.txt
|
74
|
+
- README.md
|
75
|
+
- Rakefile
|
76
|
+
- bin/console
|
77
|
+
- bin/setup
|
78
|
+
- data_classification.gemspec
|
79
|
+
- lib/data_classification.rb
|
80
|
+
- lib/data_classification/generators/data_classification/USAGE
|
81
|
+
- lib/data_classification/generators/data_classification/create_generator.rb
|
82
|
+
- lib/data_classification/generators/data_classification/templates/create_migration.rb.erb
|
83
|
+
- lib/data_classification/migration.rb
|
84
|
+
- lib/data_classification/railtie.rb
|
85
|
+
- lib/data_classification/tasks/bulk.rake
|
86
|
+
- lib/data_classification/version.rb
|
87
|
+
homepage: https://github.com/Hacker0x01/data_classification
|
88
|
+
licenses:
|
89
|
+
- MIT
|
90
|
+
metadata:
|
91
|
+
homepage_uri: https://github.com/Hacker0x01/data_classification
|
92
|
+
source_code_uri: https://github.com/Hacker0x01/data_classification
|
93
|
+
changelog_uri: https://github.com/Hacker0x01/data_classification/blob/master/CHANGELOG.md
|
94
|
+
post_install_message:
|
95
|
+
rdoc_options: []
|
96
|
+
require_paths:
|
97
|
+
- lib
|
98
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 2.3.0
|
103
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
|
+
requirements:
|
105
|
+
- - ">="
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '0'
|
108
|
+
requirements: []
|
109
|
+
rubygems_version: 3.0.3
|
110
|
+
signing_key:
|
111
|
+
specification_version: 4
|
112
|
+
summary: DataClassification helps you tag your database columns with smart comments
|
113
|
+
in order to classify your data.
|
114
|
+
test_files: []
|