Reddit Programming
194 subscribers
1.22K photos
127K links
I will send you newest post from subreddit /r/programming
Download Telegram
Why DROP COLUMN breaks rolling deploys, and a CI linter to catch it
https://www.reddit.com/r/programming/comments/1u388tg/why_drop_column_breaks_rolling_deploys_and_a_ci/

<!-- SC_OFF -->Author here. We kept writing migrations that were fine as a final schema but unsafe during the rollout itself - old pods still reading a column while new pods have already dropped it. Django solved this ages ago with django-migration-linter, which I leaned on for years on Grafana OnCall. Drizzle has nothing like it, so we wrote one for our CI. It diffs new migrations against the base branch and fails on drops, renames, and required columns added in one step. It’s buried in our monorepo right now. There’s an issue linked in the post if you’d want it published to npm. <!-- SC_ON --> submitted by /u/joey-archestra (https://www.reddit.com/user/joey-archestra)
[link] (https://archestra.ai/blog/drizzle-migration-linter) [comments] (https://www.reddit.com/r/programming/comments/1u388tg/why_drop_column_breaks_rolling_deploys_and_a_ci/)
Service Bindings: Automated Database Access for Apps
https://www.reddit.com/r/programming/comments/1u38a2j/service_bindings_automated_database_access_for/

<!-- SC_OFF -->Service binding is a feature which allows apps to get an isolated schema/database on a shared Postgres or MySQL. This post explain how it works. <!-- SC_ON --> submitted by /u/avkijay (https://www.reddit.com/user/avkijay)
[link] (https://openrun.dev/blog/service-binding/) [comments] (https://www.reddit.com/r/programming/comments/1u38a2j/service_bindings_automated_database_access_for/)
Drupal SQL Code-Injection Vulnerability - Why does it still exist?
https://www.reddit.com/r/programming/comments/1u3aab9/drupal_sql_codeinjection_vulnerability_why_does/

<!-- SC_OFF -->Even with decades of documentation, SQL Code Injection remains a top threat. Train your developers and TPMs! <!-- SC_ON --> submitted by /u/casaaugusta (https://www.reddit.com/user/casaaugusta)
[link] (https://www.akamai.com/blog/security-research/cve-2026-9082-mitigating-critical-sql-injection-drupal) [comments] (https://www.reddit.com/r/programming/comments/1u3aab9/drupal_sql_codeinjection_vulnerability_why_does/)
How Grafana Alloy Builds and Runs Its Component Graph
https://www.reddit.com/r/programming/comments/1uebi9d/how_grafana_alloy_builds_and_runs_its_component/

<!-- SC_OFF -->I spent some time reading Grafana Alloy’s source code to understand how it loads configuration, builds a dependency graph, evaluates components, and runs them. I wrote a short breakdown of what I learned, mainly focused on the runtime/controller, loader, scheduler, services, and component lifecycle. It is not a complete deep dive into the whole project, but more of a source-code reading note from exploring a real production Go codebase. Feedback is welcome, especially from people familiar with observability systems or large Go codebases. <!-- SC_ON --> submitted by /u/am0123 (https://www.reddit.com/user/am0123)
[link] (https://abdellani.dev/posts/2026-06-23-how-grafana-alloy-builds-and-runs-its-component-graph/) [comments] (https://www.reddit.com/r/programming/comments/1uebi9d/how_grafana_alloy_builds_and_runs_its_component/)