fluent-plugin-masking 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +14 -0
- data/Gemfile.lock +8 -8
- data/README.md +3 -1
- data/Rakefile +3 -1
- data/fluent-plugin-masking.gemspec +2 -1
- data/lib/fluent/plugin/version.rb +1 -1
- metadata +8 -6
- data/.gitlab-ci.yml +0 -73
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02c98ca4f43cdef94bd6ec5615355f76601d5fa7ec28307ffc7c2748a629a0dd
|
4
|
+
data.tar.gz: a25640c10af2bd1724acb5381cd512eeb129719376824a2be0f98aa3e3d6bd55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77b885170c3d95b1abcb60df6e0a86958bce0e137718375179cbf17d6a824144034dfa4954c69397b9d1d8f127be5c218c81dc120340c0546def8cd5df27ceff
|
7
|
+
data.tar.gz: 139d6cfec14a8e970653d44bbf85b5ef9de0765f03bd6b0d67ee3fb0c9da2b94f6635c7915e63c64cbb77a6d98e46ffed83821f9a340680e6d7d64bae75db988
|
data/.travis.yml
ADDED
data/Gemfile.lock
CHANGED
@@ -1,23 +1,24 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fluent-plugin-masking (1.0.
|
4
|
+
fluent-plugin-masking (1.0.7)
|
5
5
|
fluentd (>= 0.14.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
+
concurrent-ruby (1.1.5)
|
10
11
|
cool.io (1.5.4)
|
11
12
|
dig_rb (1.0.1)
|
12
|
-
fluentd (1.
|
13
|
+
fluentd (1.7.2)
|
13
14
|
cool.io (>= 1.4.5, < 2.0.0)
|
14
15
|
dig_rb (~> 1.0.0)
|
15
16
|
http_parser.rb (>= 0.5.1, < 0.7.0)
|
16
|
-
msgpack (>=
|
17
|
+
msgpack (>= 1.2.0, < 2.0.0)
|
17
18
|
serverengine (>= 2.0.4, < 3.0.0)
|
18
19
|
sigdump (~> 0.2.2)
|
19
20
|
strptime (>= 0.2.2, < 1.0.0)
|
20
|
-
tzinfo (~>
|
21
|
+
tzinfo (~> 2.0)
|
21
22
|
tzinfo-data (~> 1.0)
|
22
23
|
yajl-ruby (~> 1.0)
|
23
24
|
http_parser.rb (0.6.0)
|
@@ -34,10 +35,9 @@ GEM
|
|
34
35
|
test-unit-rr (1.0.5)
|
35
36
|
rr (>= 1.1.1)
|
36
37
|
test-unit (>= 2.5.2)
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
tzinfo-data (1.2019.2)
|
38
|
+
tzinfo (2.0.0)
|
39
|
+
concurrent-ruby (~> 1.0)
|
40
|
+
tzinfo-data (1.2019.3)
|
41
41
|
tzinfo (>= 1.0.0)
|
42
42
|
yajl-ruby (1.4.1)
|
43
43
|
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# fluent-plugin-masking
|
2
2
|
|
3
|
+
[![Known Vulnerabilities](https://snyk.io//test/github/PayU/fluent-plugin-masking/badge.svg?targetFile=Gemfile.lock)](https://snyk.io//test/github/PayU/fluent-plugin-masking?targetFile=Gemfile.lock) [![Build Status](https://travis-ci.com/PayU/fluent-plugin-masking.svg?branch=master)](https://travis-ci.com/PayU/fluent-plugin-masking)
|
4
|
+
|
3
5
|
## Overview
|
4
6
|
Fluentd filter plugin to mask sensitive or privacy records with `*******` in place of the original value. This data masking plugin protects data such as name, email, phonenumber, address, and any other field you would like to mask.
|
5
7
|
|
@@ -80,4 +82,4 @@ This sample result is created from the above configuration file `fluent.conf`. A
|
|
80
82
|
|
81
83
|
```
|
82
84
|
2019-09-15 16:12:50.359191000 +0300 maskme: {"message":"{ :body => \"{\\\"first_name\\\":\\\"*******\\\", \\\"type\\\":\\\"puggle\\\", \\\"last_name\\\":\\\"*******\\\", \\\"password\\\":\\\"*******\\\"}\"}"}
|
83
|
-
```
|
85
|
+
```
|
data/Rakefile
CHANGED
@@ -11,9 +11,10 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.email = ["shai.moria@zooz.com", "niv.lipetz@zooz.com"]
|
12
12
|
spec.description = "Fluentd filter plugin to mask sensitive or privacy records in event messages"
|
13
13
|
spec.summary = "Fluentd filter plugin to mask sensitive or privacy records with `*******` in place of the original value. This data masking plugin protects data such as name, email, phonenumber, address, and any other field you would like to mask."
|
14
|
-
spec.homepage = "https://github.com/
|
14
|
+
spec.homepage = "https://github.com/PayU/fluent-plugin-masking"
|
15
15
|
|
16
16
|
spec.files = `git ls-files`.split($\)
|
17
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
17
18
|
spec.require_paths = ["lib"]
|
18
19
|
spec.license = "Apache-2.0"
|
19
20
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-masking
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shai Moria
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-09-
|
12
|
+
date: 2019-09-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fluentd
|
@@ -90,7 +90,7 @@ extensions: []
|
|
90
90
|
extra_rdoc_files: []
|
91
91
|
files:
|
92
92
|
- ".gitignore"
|
93
|
-
- ".
|
93
|
+
- ".travis.yml"
|
94
94
|
- Gemfile
|
95
95
|
- Gemfile.lock
|
96
96
|
- README.md
|
@@ -100,7 +100,7 @@ files:
|
|
100
100
|
- lib/fluent/plugin/version.rb
|
101
101
|
- test/fields-to-mask
|
102
102
|
- test/test_filter_masking.rb
|
103
|
-
homepage: https://github.com/
|
103
|
+
homepage: https://github.com/PayU/fluent-plugin-masking
|
104
104
|
licenses:
|
105
105
|
- Apache-2.0
|
106
106
|
metadata: {}
|
@@ -119,10 +119,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
- !ruby/object:Gem::Version
|
120
120
|
version: '0'
|
121
121
|
requirements: []
|
122
|
-
rubygems_version: 3.0.
|
122
|
+
rubygems_version: 3.0.4
|
123
123
|
signing_key:
|
124
124
|
specification_version: 4
|
125
125
|
summary: Fluentd filter plugin to mask sensitive or privacy records with `*******`
|
126
126
|
in place of the original value. This data masking plugin protects data such as name,
|
127
127
|
email, phonenumber, address, and any other field you would like to mask.
|
128
|
-
test_files:
|
128
|
+
test_files:
|
129
|
+
- test/fields-to-mask
|
130
|
+
- test/test_filter_masking.rb
|
data/.gitlab-ci.yml
DELETED
@@ -1,73 +0,0 @@
|
|
1
|
-
image: ruby:2.6.3
|
2
|
-
|
3
|
-
# Cache gems in between builds
|
4
|
-
cache:
|
5
|
-
key: ${CI_COMMIT_REF_SLUG}
|
6
|
-
paths:
|
7
|
-
- vendor/ruby
|
8
|
-
|
9
|
-
before_script:
|
10
|
-
- gem install bundler:2.0.2
|
11
|
-
- bundle install -j $(nproc) --path vendor # Install dependencies into ./vendor/ruby
|
12
|
-
|
13
|
-
stages:
|
14
|
-
- test
|
15
|
-
- release
|
16
|
-
|
17
|
-
variables:
|
18
|
-
DOCKER_TLS_CERTDIR: ""
|
19
|
-
|
20
|
-
unit-test:
|
21
|
-
tags:
|
22
|
-
- dcos-multi-runner
|
23
|
-
stage: test
|
24
|
-
script:
|
25
|
-
- bundle exec rake test
|
26
|
-
except:
|
27
|
-
- tags
|
28
|
-
|
29
|
-
.release: &release
|
30
|
-
tags:
|
31
|
-
- dcos-multi-runner
|
32
|
-
stage: release
|
33
|
-
before_script:
|
34
|
-
- echo "Setup ssh inside the runner.."
|
35
|
-
- git config --global user.email $GITLAB_USER_EMAIL
|
36
|
-
- git config --global user.name $GITLAB_USER_LOGIN
|
37
|
-
- 'which ssh-agent || ( apk --update add openssh-client )'
|
38
|
-
- eval $(ssh-agent -s)
|
39
|
-
- ssh-add <(echo "$SSH_PRIVATE_KEY")
|
40
|
-
- mkdir -p ~/.ssh
|
41
|
-
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
|
42
|
-
- echo "Clone the source code.."
|
43
|
-
- GIT_URL=$(echo $CI_PROJECT_URL | cut -d'/' -f3)
|
44
|
-
- git clone git@$GIT_URL:$CI_PROJECT_PATH.git
|
45
|
-
- cd $CI_PROJECT_NAME
|
46
|
-
- git reset --hard $CI_COMMIT_SHA
|
47
|
-
script:
|
48
|
-
- mkdir -p ~/.gem
|
49
|
-
- 'echo -e "---\n:rubygems_api_key: $GEM_HOST_API_KEY" > ~/.gem/credentials && echo "created gem credentials"'
|
50
|
-
- chmod 0600 ~/.gem/credentials
|
51
|
-
- gem install gem-release
|
52
|
-
- gem bump fluent-plugin-masking --version $TYPE --file ./lib/fluent/plugin/version.rb --commit --push --tag
|
53
|
-
- gem build fluent-plugin-masking.gemspec
|
54
|
-
- export VERSION=$(cat ./lib/fluent/plugin/version.rb | grep VERSION | sed -ne 's/[^0-9]*\(\([0-9]\.\)\{0,4\}[0-9][^.]\).*/\1/p' | sed 's/"$//')
|
55
|
-
- gem push fluent-plugin-masking-$VERSION.gem
|
56
|
-
when: manual
|
57
|
-
only:
|
58
|
-
- master
|
59
|
-
|
60
|
-
release:patch:
|
61
|
-
extends: .release
|
62
|
-
variables:
|
63
|
-
TYPE: patch
|
64
|
-
|
65
|
-
release:minor:
|
66
|
-
extends: .release
|
67
|
-
variables:
|
68
|
-
TYPE: minor
|
69
|
-
|
70
|
-
release:major:
|
71
|
-
extends: .release
|
72
|
-
variables:
|
73
|
-
TYPE: major
|