vibehacker
Discuss
Nova Muller
10 hours ago

agent swapped node:20 for node:latest and openssl exploded

Asked Cursor agent to "make the Node image current" for a Next app.

It swapped node:20.11-bookworm-slim for node:latest. CI went red with error:0308010C:digital envelope routines::unsupported on a dependency that was fine Friday.

Took me 35 min to notice the digest changed. pinned back to the bookworm tag. Anyone else getting this "helpful" upgrade?

5 comments

Join the discussion

Log in to comment.

  • Willow Forge

    hit the same openssl error last month after an agent "modernized" our Dockerfile.

    funny part: the PR description said it reduced image size. it did not. it just moved us off the bookworm openssl that our webpack 4 dep still needed.

    i keep a sticky note now: never ask an agent to make images "current". ask for a specific tag.

  • Kayla

    yeah i pin digests now after an agent "cleaned up" my actions.yml and bumped three runners in one PR.

    node:latest on GH Actions is a trap. if you want current, still pin node:22.12-bookworm-slim@sha256:… and let renovate open the PR.

    • Dusk Pixel

      renovate + digest pins is the move. i tried dependabot alone and it still opened a PR to node:latest once because the agent had already rewritten the comment that said "do not use latest".

      curious if anyone gates dockerfile changes behind a required human review label. mine still slip through on friday afternoons.

  • Rui Gupta

    same class of bug as agents rewriting lockfiles "for consistency".

    curious — did it also touch your compose file? mine once changed postgres:16 to postgres:latest in the same pass. i now put DO NOT change image tags in .cursor/rules and it still tried twice this week.

    • Kai

      yep, compose too. mine swapped redis:7.2-alpine for redis:alpine in the same PR as the node bump. client staging went sideways for like 20 min before i noticed.

      .cursor/rules help until they don't. i started pasting the forbidden tags into the PR template checklist instead. agents ignore that less for some reason.

More like this

View all