Urgent.News

What's breaking now, across thousands of outlets.

Tech

The Env Catalog Is a Repository Artifact

59 variables, generated not written - and drift fails the build. ๐Ÿ‘‹ I'm Anton - a software engineer working mostly in PHP/Symfony and Go, currently carving a live PHP monolith into Go services. Part 1 of this series was about the service manifest: one declaration that the runtime reads instead of a pile of wiring code. This part is about the file that falls out of that declaration - the catalogโ€ฆ

The Env Catalog is a generated file in a PHP/Symfony and Go service repository. It lists all environment variables the service uses, sourced from either the platform library or the service's own configuration. The catalog is not documentation but an artifact that fails the build if it no longer matches the code. At 59 variables, the service's README becomes unreliable; any changes to the variables require updating the catalog.

The catalog file is YAML and starts with a comment stating it's automatically generated and should not be edited. It contains six fields per variable: name, source, catalog, defined_in, required, secret, and help. The source field indicates whether the variable is from the platform or the service's own config. The catalog provides a record of which variables must never appear in logs, making it more useful than prose rules.

The CI job runs the generator in check mode to detect any drift, failing the build if a mismatch is found.

Written by urgent.news from Dev.to's reporting โ€” not their text. Machine-written โ€” may contain errors; check the original before relying on it.

Read the original at dev.to โ†’

More in Tech

Most of the Questions Will Not Be About Code

If you mentor anyone for longer than a few months, the subject will drift. You start out talking about testing strategy and pull requests, and one Tuesday they ask whether they should take a job inโ€ฆ

  • Conversations shift from technical to broader questions
  • Mentors must avoid overreaching with unsolicited advice
  • Confidentiality is crucial when discussing personal matters

Renovating a vibe-coded app: readable code, no reasoning behind it

A client had been building an education platform in Lovable for months. Too many issues piled up, so they brought in devs. I got assigned to it.

  • Reporter converted vibecoded app to production-ready platform
  • Identified 319 issues, including security concerns and inconsistent scoring
  • Discussed product question with client about definitive engine for scoring

More from Sunday 13 September โ†’