Tinker Dependencies

by Samy (Kondasamy Jayaraman)

Day 18: build passed, hijacked code shipped, its install script ran, security fix in.

Day 18 of the month. Slide to any day.9 packages · 1 hijacked

Chapter 7 of 7

An update policy

One month of the registry: a bad patch, a hijacked release and a security fix. Larkspur picks how it updates.

This chapter: Which policy keeps every build safe and takes the fix soonest?

About this chapter

You will learn

  • Ranges, the lockfile and updates together
  • Why updating too often is a risk too
  • Why more than one policy can tie

Words you’ll meet

Security fix
A release that closes a hole others could use; every day without it is a day exposed.

Step 1 of 2

A build runs daily for a month: a bad patch, a hijacked release, and a .

Keep the owner’s rule; take the fix soonest.

0 days late RULE BROKEN

No broken build, no hijacked code shipped and no hijacked install script run; then take the security fix as soon as you can.

Ranges

How far each of the app's five ranges may move on its own.

Whether builds install from the lockfile or resolve afresh each day.

Tested update

How often the lockfile is updated, with the tests run first.

Whether packages may run install scripts.

The month, day 1 to its end
CaseThis policy
Broken builds1
Days inkdrop 1.1.4’s payload shipped2
Its install script runs2
Days late on shipcalc 3.2.50

Fictional packages in a made-up registry: every name, version and date is invented.