HackBlue

Labs / Supply chain

Version 99 of an internal package

A build installed an internal Python package from the public index instead of the company one. Read pip.conf, the requirements, and the install log to see how and why.

  • Terminal mission
  • Intermediate
  • 3 objectives
  • 0 of 3 solved

What you’re looking at

A build installed an internal Python package from the public index instead of the company one. Read pip.conf, the requirements, and the install log to see how and why.

Your goal: Show how a build pulled an internal package name from the public index.

Briefing
the story: what happened and what evidence you were handed.
Terminal
the dark box. It is a pretend Linux shell that runs in your browser. Type a command and press Enter. Nothing you type touches a real system.
Walkthrough
the numbered path. Each step says what to type and what you should see. Hints open one at a time.
Answer boxes
under each question step. Type what you found and press Check.

Start with step 1 in the walkthrough. Every step says what to do and what you should see. The whole thing takes about 2 min to talk through.

Briefing

With --extra-index-url, pip looks in every index and takes the highest version it finds. If someone publishes a package with your internal name and a huge version number on PyPI, pip prefers it.

The build agent’s pip configuration, the service’s requirements.txt, and last night’s install log are in this directory.

analyst@build-07

build-07 · Supply chain

Type help for the command list and objectives for your tasks. Everything runs in this browser.

Up and down arrows walk your history. Ctrl+L clears the screen. Try help, ls, and objectives.

The whole walkthrough

Every step in order, written to be read aloud: 255 words, about 2 min. It gives away every answer, so try the steps first.