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.
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.
How often the lockfile is updated, with the tests run first.
Whether packages may run install scripts.
| Case | This policy |
|---|---|
| Broken builds | 1 |
| Days inkdrop 1.1.4’s payload shipped | 2 |
| Its install script runs | 2 |
| Days late on shipcalc 3.2.5 | 0 |
Fictional packages in a made-up registry: every name, version and date is invented.