• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

venables / bookshelf-secure-password
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/glob-parent-5.1.2
DEFAULT BRANCH: master
Repo Added 13 Feb 2017 02:53PM UTC
Files 2
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH async-only
branch: async-only
CHANGE BRANCH
x
Reset
  • async-only
  • dependabot/npm_and_yarn/acorn-6.4.1
  • dependabot/npm_and_yarn/eslint-utils-1.4.3
  • dependabot/npm_and_yarn/glob-parent-5.1.2
  • dependabot/npm_and_yarn/handlebars-4.5.3
  • dependabot/npm_and_yarn/handlebars-4.7.7
  • dependabot/npm_and_yarn/hosted-git-info-2.8.9
  • dependabot/npm_and_yarn/ini-1.3.7
  • dependabot/npm_and_yarn/knex-0.19.5
  • dependabot/npm_and_yarn/lodash-4.17.19
  • dependabot/npm_and_yarn/lodash-4.17.21
  • drop-old-node
  • feature/only-when-saving
  • master
  • v2.0.0
  • v3.0.0
  • v3.0.1
  • v3.1.0
  • v4.0.0
  • v5.0.0

pending completion
14

push

travis-ci

venables
Only perform asynchronous, save-time hashing

The original default method of hashing passwords during the `setter`
method was not ideal for node async i/o. The benefit of doing it at
set-time was to immediately hash the password, to prevent any leaking.
To add some of this security to the asynchronous method, we use the
bookshelf `virtuals` plugin, and never set `password` on the model
`attributes` hash.  This will prevent the password from being exposed
during a toJSON call (or other).

17 of 17 new or added lines in 1 file covered. (100.0%)

52 of 52 relevant lines covered (100.0%)

27.54 hits per line

Relevant lines Covered
Build:
Build:
52 RELEVANT LINES 52 COVERED LINES
27.54 HITS PER LINE
Source Files on async-only
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
14 async-only Only perform asynchronous, save-time hashing The original default method of hashing passwords during the `setter` method was not ideal for node async i/o. The benefit of doing it at set-time was to immediately hash the password, to prevent any le... push 20 Feb 2017 07:38PM UTC venables travis-ci pending completion  
See All Builds (61)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc