Coder Social home page Coder Social logo

deliciousinsights / mongoose-pii Goto Github PK

View Code? Open in Web Editor NEW
44.0 2.0 3.0 1.71 MB

A Mongoose plugin that lets you transparently cipher stored PII and use securely-hashed passwords

Home Page: https://deliciousinsights.github.io/mongoose-pii/

License: MIT License

JavaScript 100.00%
mongodb mongoose mongoose-plugin pii pii-ciphering security bcrypt password passwords

mongoose-pii's Issues

An in-range update of prettier is breaking the build 🚨

The devDependency prettier was updated from 1.17.1 to 1.18.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

prettier is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes for 1.18.0

πŸ”— Release Notes

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Setup code coverage & quality monitoring

  • CodeCov for sure, do we need CodeClimate too?
  • Setup test coverage reporting and status checks (can't diminish ratios)
  • Add coverage badge to README
  • Setup code quality reporting and add badge to README
  • Setup dependencies up-to-date status / badge to README

Migration helper API

  • One helper function to pre-cipher raw storage PII based on the newly-added plugin settings
  • One helper function to pre-hash raw storage passwords based on the newly-added plugin settings
  • README section and example

An in-range update of eslint is breaking the build 🚨

The devDependency eslint was updated from 5.15.3 to 5.16.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

eslint is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v5.16.0
  • dfef227 Build: gensite passes rulesMeta to formatter rendering (#11567) (Kevin Partington)
  • c06d38c Fix: Allow HTML formatter to handle no meta data (#11566) (Ilya Volodin)
  • 87a5c03 Docs: func-style: clarify when allowArrowFunctions is used (#11548) (Oliver Joseph Ash)
  • bc3e427 Update: pass rule meta to formatters RFC 10 (#11551) (Chris Meyer)
  • b452f27 Chore: Update README to pull in reviewer data (#11506) (Nicholas C. Zakas)
  • afe3d25 Upgrade: Bump js-yaml dependency to fix Denial of Service vulnerability (#11550) (Vernon de Goede)
  • 4fe7eb7 Chore: use nyc instead of istanbul (#11532) (Toru Nagashima)
  • f16af43 Chore: fix formatters/table test (#11534) (Toru Nagashima)
  • 78358a8 Docs: fix duplicate punctuation in CLI docs (#11528) (Teddy Katz)
Commits

The new version differs by 11 commits.

  • ded2f94 5.16.0
  • ea36e13 Build: changelog update for 5.16.0
  • dfef227 Build: gensite passes rulesMeta to formatter rendering (#11567)
  • c06d38c Fix: Allow HTML formatter to handle no meta data (#11566)
  • 87a5c03 Docs: func-style: clarify when allowArrowFunctions is used (#11548)
  • bc3e427 Update: pass rule meta to formatters RFC 10 (#11551)
  • b452f27 Chore: Update README to pull in reviewer data (#11506)
  • afe3d25 Upgrade: Bump js-yaml dependency to fix Denial of Service vulnerability (#11550)
  • 4fe7eb7 Chore: use nyc instead of istanbul (#11532)
  • f16af43 Chore: fix formatters/table test (#11534)
  • 78358a8 Docs: fix duplicate punctuation in CLI docs (#11528)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of mongoose is breaking the build 🚨

The devDependency mongoose was updated from 5.4.13 to 5.4.14.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

mongoose is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Commits

The new version differs by 18 commits.

  • 35b90d2 chore: release 5.4.14
  • 8dc47a5 docs(schema): add examples for remaining functions
  • 764735b fix(documentarray): report validation errors that occur in an array subdoc created using create() and then set()
  • 3fec456 test(documentarray): repro #7504
  • 660fe60 chore: remove unnecessary print statements
  • 13c7a00 docs(schema): add examples to schema functions
  • 270732e docs(migrating_to_5): link to migrating to 5 docs on the mongoosejs.com website
  • db79cfc Merge branch 'master' of github.com:Automattic/mongoose
  • 67754bd style: fix lint
  • 8e30004 Merge pull request #7530 from sarpik/master
  • 3e44bc2 Merge branch 'master' of github.com:Automattic/mongoose
  • aa43200 docs: add MongooseError to API docs and add list of error names
  • 0daf626 Merge pull request #7521 from nocksapp/master
  • 8752502 fix anchor tag
  • b5f1723 chore: now working on 5.4.14

There are 18 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of husky is breaking the build 🚨

The devDependency husky was updated from 4.2.0 to 4.2.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

husky is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v4.2.1
  • Fix: support spaces in path to husky.local.sh #658
Commits

The new version differs by 3 commits.

  • d1f182b 4.2.1
  • fa3a7d7 support spaces in path to husky.local.sh (#658)
  • 9891528 Update README.md and mention husky.config.js file

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of mongodb-memory-server is breaking the build 🚨

The devDependency mongodb-memory-server was updated from 2.6.0 to 2.6.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

mongodb-memory-server is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v2.6.1

2.6.1 (2018-10-25)

Bug Fixes

  • tune tmp dir opts, add debug info, add test for 4.0.3 (962fd67), closes #89
Commits

The new version differs by 1 commits.

  • 962fd67 fix: tune tmp dir opts, add debug info, add test for 4.0.3

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Setup CI

  • Decide on Travis vs. Circle
  • Set it up
  • Check it works, make it a PR status check, protect master
  • Add the badge to README

An in-range update of mongodb-memory-server is breaking the build 🚨

The devDependency mongodb-memory-server was updated from 2.7.3 to 2.7.4.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

mongodb-memory-server is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v2.7.4

2.7.4 (2018-12-02)

Bug Fixes

  • add auth to the command line arguments (d1f73ed)
Commits

The new version differs by 1 commits.

  • d1f73ed fix: add auth to the command line arguments

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of mongoose is breaking the build 🚨

The devDependency mongoose was updated from 5.3.6 to 5.3.7.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

mongoose is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Commits

The new version differs by 20 commits.

  • 578a16d chore: release 5.3.7
  • 4fa41e8 Merge pull request #7180 from lineus/fix-6075
  • addc12a Merge pull request #7184 from lineus/fix-7173
  • 4d7d05f simplify declaration of NodeBuffer
  • 4f83211 fallback to safe-buffer in the browser
  • 35118dd change !includes to indexof === -1
  • a611926 fix(update): copy exact errors from array subdoc validation into top-level update validator error
  • b321e81 test(update): add one more case for #7135
  • e1a7ae5 fix(update): run update validators on nested doc when $set on an array
  • 460b703 test(update): repro #7135
  • 47d8fac docs(guide): add links to individual schema types from guide
  • dcac7bc docs(schematypes): add note about nested paths with type getting converted to mixed
  • ade298f make depopulate remove populated virtuals too
  • 1c1bda8 add test for depopulate on an unpopulated doc
  • d3eaec1 fix(document): support propsParameter for validateSync() and make validateSync() handle custom validators returning promise

There are 20 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of mongoose is breaking the build 🚨

The devDependency mongoose was updated from 5.5.2 to 5.5.3.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

mongoose is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 20 commits.

  • 63be350 chore: release 5.5.3
  • 6a94b74 chore: add tekhattan as an opencollective sponsor
  • 082b729 docs(aggregate): use eachAsync() instead of nonexistent each()
  • b5a6f22 docs(model): list out all operations and options for bulkWrite()
  • ac10789 docs(validation): add CastError validation example
  • 8f37ebf refactor(array): move _parent property behind a symbol
  • 0b84971 fix(query): dont show useFindAndModify deprecation warning if useFindAndModify = false
  • 191994e style: fix lint re: #7679
  • d7c0f20 fix(update): run setters on array elements when doing $set
  • c0000e0 test(update): repro #7679
  • 1474fe8 fix: add findAndModify deprecation warning that references the useFindAndModify option
  • 5fa7177 docs(query+model): list out all options and callback details for Model.updateX() and Query#updateX()
  • e410423 fix(document): handle pushing a doc onto a discriminator that contains a doc array
  • b28e489 test(discriminator): repro #7704
  • 92dd346 Merge pull request #7718 from rzymek/buffered-arguments-fix

There are 20 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

How to encrypt a field from nested array

{
"_id":"5f841438366150038e3c6840",
"createdOn":"2020-10-09T18:53:47.924+05:00",
"recipientType":"Customer",
"recipients":[
{
"_id":"5f8414383661502db23c6841",
"receiver":"[email protected]"
},
{
"_id":"5f8414383661502db23c6841",
"receiver":"[email protected]"
}
],
"__v":0
}

I want to encrypt and decrypt receiver email address from the same data above .. Its inside array

This is what my code looks like

const recipientsModel = new mongoose.Schema({
_memberId: {
type: mongoose.Types.ObjectId,
},
receiver: {
type: String,
},
});

const processedTemplateModel = new mongoose.Schema({
recipientType: {
type: String,
required: true,
},
recipients: {
type: [recipientsModel,
],
},
createdOn: {
type: Date,
default: new Date(),
},
});

recipientsModel.plugin(markFieldsAsPII, {
fields: ['receiver'],
key: process.env.MONGOOSE_PII_KEY,
});

processedTemplateModel.plugin(markFieldsAsPII, {
fields: ['recipients.receiver'],
key: process.env.MONGOOSE_PII_KEY,
});

const getProcessedTemplateModel = (tenantId?: String) => {
return new MultiTenancy(tenantId).getTenantModel(
'ProcessedTemplateMuzz',
processedTemplateModel,
'processedtemplates_muzz',
);
};

This is how i am trying to display decrypted emails
const templates = await getProcessedTemplateModel().find();

It is encrypting but not decrypting .. Can anyone help

Add explicit dev setup for easy contributions

  • ESLint
  • Prettier
  • VSCode workspace settings and recommended extensions (ESLint, Prettier, etc.)
  • .editorconfig for the others
  • Husky, Commitlint and Commitizen with pre-commit / pre-push hooks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.