SShortSingh.
Back to feed

Regex Masking of a Secrets File Leaked a Private Key Body Into Agent Output

0
·1 views

While building the Since project, a developer asked a coding agent to list the variable names in a production env file without exposing values. The agent used a line-by-line regex to replace text after each equals sign with asterisks. Because the private key spanned several lines in quoted form, the regex only masked the first line, and the rest of the key was printed in plain view. The same failure recurred on a later date when a different agent, unaware of the earlier lesson, used a similar line-based command on the same file. The key was rotated afterward, and the author notes that a grep-based command that prints only key names is a safer alternative.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Linnix uses eBPF and kernel pressure metrics to pinpoint Linux performance stalls

Linnix is an open-source Linux observability project that aims to identify which process or pod is causing performance stalls, rather than merely which one uses the most CPU. It relies on eBPF collectors, the kernel's PSI pressure counters, and an optional language model that can write incident explanations. The project exposes attribution data as Prometheus metrics, showing pressure suffered by victim pods and stall time blamed on offenders. Its documentation frames results as attribution rather than proven causality, and the reviewer notes the project is young, with a licence mismatch between the diagram and the repository. The AI analysis layer is optional and off by default, so it must be enabled explicitly.

0
ProgrammingDEV Community ·

Redict Deprecated: Migrating to Valkey and Handling Rejected RDB Dumps

Redict has been declared deprecated, with its 7.3.6 release from October 2025 described as the final version and no further security patches planned. Users and distro packagers are advised to migrate, with Valkey recommended as the replacement and Redis discouraged due to its contributor licence agreement. Valkey may refuse existing Redict dump.rdb files because Redict's RDB version number differs from what Valkey accepts, though a config option called rdb-version-check can relax this check. The article compares licensing, governance, security support, and managed hosting across Redict, Valkey, and Redis 8, noting Valkey's cloud pricing advantages. It also outlines three migration approaches: copying the RDB file, replication, and Docker Compose.

0
ProgrammingDEV Community ·

Job postings peak midweek, and half of openings close within 33 days

An analysis of 324,634 open jobs from 10,630 companies using Greenhouse, Lever or Ashby found that most new postings appear between Tuesday and Thursday, while weekends see very few. Based on closure data, half of the jobs tracked were removed within 33 days, and about a third closed within two weeks. The authors suggest applying in the first few days a posting is live, since recruiters often screen early applicants more closely. The data is drawn from company career pages checked daily and is refreshed monthly.

0
ProgrammingDEV Community ·

How to Log In to an Argus Technologies Router: Gateway Address and Default Credentials

Argus Technologies routers, such as the EW-2101, can be harder to access than common brands because standard guesses for the gateway and password may not apply. The article says the EW-2101 typically uses 192.168.2.1 as its gateway, and recommends confirming the real gateway via ipconfig, System Settings, or route -n if that address fails. According to the EW-2101 manual, the default username is admin with a blank password, which means users should set a new password immediately after logging in. If defaults fail, the article suggests checking the device label, contacting the ISP since providers sometimes change credentials, or performing a factory reset that also erases custom settings.

Regex Masking of a Secrets File Leaked a Private Key Body Into Agent Output · ShortSingh