Marked: [DevOps]: Node Security

Created on 23 Mar 2018  路  16Comments  路  Source: markedjs/marked

Marked version: 0.3.18

Markdown flavor: n/a

Proposal type: other

What pain point are you perceiving?

None. More of a curiosity.

What solution are you suggesting?

Was making the rounds to those projects who became dependent on 8fold-marked to make sure they switched back to latest. Noticed this in their pipeline:

screen shot 2018-03-23 at 11 58 17 am

Node security... @UziTech what is it, should we have it? (Believe there was a REGEX tool mentioned elsewhere at some point.)

proposal question

Most helpful comment

should we add npm audit to travis after lint? (once the registry actually allows it)

All 16 comments

That is NSP. It is free for OSPs

There is a free Snyk App that might be helpful as well.

image

It would also be nice to enable Appveyor for testing on windows.

Leave it to you, brother. Definitely think Snyk should be a thing since they're the ones nice enough to talk to us. :)

I also think we should add the policy to prevent merging PRs without having all the checks pass:

  • CI
  • security check
  • 2+ approvals

I can enable 2+ approvals through the github policy.
Is anyone against this? @joshbruce @UziTech @davisjam

+1

I'm okay with the 2+ approvals. If this can be done through the GitHub review process, please post a link of a how-to, if you have one handy.

Visit "Setting" > "Branches" https://github.com/markedjs/marked/settings/branches

Click "Edit" next to master

Then check the boxes for the policies

image


Update: I accidentally enabled "Require branches to be up to date before merging" and I realize this is going to be painful for each PR so I disabled that option. Sorry about that 馃槢

I just enabled that, however I am unable to install Snyk.
I think only @joshbruce can do it: https://github.com/marketplace/snyk

(note: node security is no longer accepting new repos)

NSP has been aquired by NPM and have stopped accepting new accounts. But should probably still do Snyk

Added Snyk via the MarkedJSBot account. (Starting to think admin might be an owner...but still considering operations for that.)

  • Testing weekly (daily felt like overkill).
  • Fail if the repo has any vulnerabilities.

So it doesnt check every PR?

If "it" in this context is Snyk, it should be every PR - but they have a CLI to extend it would seem. See #1229

It looks like [email protected] will have this security audit built in.

See the blog post for details.

should we add npm audit to travis after lint? (once the registry actually allows it)

Currently the security check for RegEx fails due to some violations.

@DanielRuf Some fixes and discussion in #1226.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vsemozhetbyt picture vsemozhetbyt  路  4Comments

priyesh-diukar picture priyesh-diukar  路  3Comments

cusalvi picture cusalvi  路  3Comments

mjbvz picture mjbvz  路  4Comments

gclove picture gclove  路  4Comments