frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

14 Killed in protests in Nepal over social media ban

https://www.tribuneindia.com/news/world/massive-protests-in-nepal-over-social-media-ban/
236•whatsupdog•2h ago•130 comments

RSS Beat Microsoft

https://buttondown.com/blog/rss-vs-ice
78•vidyesh•3h ago•46 comments

ICEBlock handled my vulnerability report in the worst possible way

https://micahflee.com/iceblock-handled-my-vulnerability-report-in-the-worst-possible-way/
97•FergusArgyll•1h ago•44 comments

Indiana Jones and the Last Crusade Adventure Prototype Recovered for the C64

https://www.gamesthatwerent.com/2025/09/indiana-jones-and-the-last-crusade-adventure-prototype-re...
26•ibobev•1h ago•2 comments

Using Claude Code to modernize a 25-year-old kernel driver

https://dmitrybrant.com/2025/09/07/using-claude-code-to-modernize-a-25-year-old-kernel-driver
701•dmitrybrant•13h ago•225 comments

VMware's in court again. Customer relationships rarely go this wrong

https://www.theregister.com/2025/09/08/vmware_in_court_opinion/
85•rntn•1h ago•30 comments

The MacBook has a sensor that knows the exact angle of the screen hinge

https://twitter.com/samhenrigold/status/1964428927159382261
877•leephillips•22h ago•423 comments

Why Is Japan Still Investing in Custom Floating Point Accelerators?

https://www.nextplatform.com/2025/09/04/why-is-japan-still-investing-in-custom-floating-point-acc...
134•rbanffy•2d ago•33 comments

Meta suppressed research on child safety, employees say

https://www.washingtonpost.com/investigations/2025/09/08/meta-research-child-safety-virtual-reality/
24•mdhb•52m ago•5 comments

Formatting code should be unnecessary

https://maxleiter.com/blog/formatting
243•MaxLeiter•14h ago•327 comments

GPT-5 Thinking in ChatGPT (a.k.a. Research Goblin) is good at search

https://simonwillison.net/2025/Sep/6/research-goblin/
288•simonw•1d ago•225 comments

How inaccurate are Nintendo's official emulators? [video]

https://www.youtube.com/watch?v=oYjYmSniQyM
62•viraptor•3h ago•13 comments

Intel Arc Pro B50 GPU Launched at $349 for Compact Workstations

https://www.guru3d.com/story/intel-arc-pro-b50-gpu-launched-at-for-compact-workstations/
157•qwytw•15h ago•178 comments

Look Out for Bugs

https://matklad.github.io/2025/09/04/look-for-bugs.html
32•todsacerdoti•3d ago•19 comments

Immich – High performance self-hosted photo and video management solution

https://github.com/immich-app/immich
32•rzk•5h ago•7 comments

Creative Technology: The Sound Blaster

https://www.abortretry.fail/p/the-story-of-creative-technology
125•BirAdam•16h ago•73 comments

How many SPARCs is too many SPARCs?

https://thejpster.org.uk/blog/blog-2025-08-20/
39•naves•2d ago•11 comments

No more data centers: Ohio township pushes back against influx of Amazon, others

https://www.usatoday.com
15•ericmay•49m ago•9 comments

Analog optical computer for AI inference and combinatorial optimization

https://www.nature.com/articles/s41586-025-09430-z
88•officerk•3d ago•15 comments

Writing by manipulating visual representations of stories

https://github.com/m-damien/VisualStoryWriting
6•walterbell•3d ago•3 comments

How many dimensions is this?

https://lcamtuf.substack.com/p/how-many-dimensions-is-this
96•robin_reala•4d ago•22 comments

Show HN: Veena Chromatic Tuner

https://play.google.com/store/apps/details?id=in.magima.digitaltuner&hl=en_US
43•v15w•7h ago•23 comments

I am giving up on Intel and have bought an AMD Ryzen 9950X3D

https://michael.stapelberg.ch/posts/2025-09-07-bye-intel-hi-amd-9950x3d/
284•secure•1d ago•297 comments

Forty-Four Esolangs: The Art of Esoteric Code

https://spectrum.ieee.org/esoteric-programming-languages-daniel-temkin
64•eso_eso•3d ago•37 comments

Tesla Wants Out of the Car Business

https://www.theatlantic.com/technology/archive/2025/09/tesla-elon-musk-master-plan-robotaxi/684122/
7•fortran77•31m ago•1 comments

Taking Buildkite from a side project to a global company

https://www.valleyofdoubt.com/p/taking-buildkite-from-a-side-project
75•shandsaker_au•15h ago•9 comments

Garmin beats Apple to market with satellite-connected smartwatch

https://www.macrumors.com/2025/09/03/garmin-satellite-smartwatch/
211•mgh2•4d ago•194 comments

How to make metals from Martian dirt

https://www.csiro.au/en/news/All/Articles/2025/August/Metals-out-of-martian-dirt
75•PaulHoule•18h ago•83 comments

No Silver Bullet: Essence and Accidents of Software Engineering (1986) [pdf]

https://www.cs.unc.edu/techreports/86-020.pdf
102•benterix•17h ago•24 comments

What is the origin of the private network address 192.168.*.*? (2009)

https://lists.ding.net/othersite/isoc-internet-history/2009/oct/msg00000.html
220•kreyenborgi•1d ago•83 comments
Open in hackernews

Keeping secrets out of logs (2024)

https://allan.reyes.sh/posts/keeping-secrets-out-of-logs/
226•xk3•19h ago

Comments

mlhpdx•19h ago
Great read.

> And while people will write the code that accidentally introduces sensitive data into logs, they’re also the ones that will report, respond, and fix them.

This should probably be the first point and not the last.

lucideer•18h ago
This is an excellent excellent resource regardless of whether you agree/disagree with the author's conclusions, simply by virtue of being a great list of broken down problems, well described, & accompanied by good technical descriptions of proposed fixes (again independent of your opinion on those fixes).

Just an excellent example of how to approach & elucidate a problem domain.

CraigJPerry•18h ago
With java theres a GuardedString implementation https://docs.oracle.com/en/middleware/idm/identity-governanc...
antonvs•1h ago
Those are primarily for in-memory security. They apparently uses a "known default key" in its serialized form. At least when it comes to logging, that's more like obfuscation than security.
b0gb•18h ago
eazy

secrets.forEach(secret => logMessage = logMessage.replaceAll(secret, '**'))

mberning•17h ago
That presumes you know all secrets ahead of time. A risk in and of itself. But from a practical point of view you will never know all secrets, because they are generated constantly in real time.
pluto_modadic•7h ago
I've known users to type passwords in the username field. you implicitly do NOT know all secrets (e.g., a password is hashed).

secrets can also churn, so even if you did your example would require something besides an in-memory array.

and, the final point: what if your secret masking code fails on an exception, too ;)

NeutralForest•18h ago
Just excellent. Lots of (common from my experience) examples, potential fixes and self-contained explanations. Nice.
aduwah•18h ago
Great article! I will definitely reference it in my upcoming discussions. I had some hard time defending having an EU based o11y stack for our EU based infra. I found it hard to articulate on the spot that there are myriads of places where sensitive/personal data can get in the logs and cause leaks, or make GDPR angry.
jazzyjackson•17h ago
Why do I have to know how many letters are in observability? is this some kind of in group signaling?
aduwah•16h ago
Just wait until you see our secret handshake
arccy•16m ago
you don't need to know, just consider it a new word that's a synonym, and happens to kind of look like o-<tall spiky letters like i and l>-y
halffullbrain•14h ago
I read the piece expecting precisely that; How to keep PII out of logs, which require a lot of adamant snipers with a lot of lead bullets. Passwords: Handled by IAM services. Tokens: Application frameworks which not to divulge. But Brian's phone number stashed in an innocuous case metadata field. Gaah!

Some of the same techniques apply, like using domain primitives, but some PII (like names and addresses) is eventually templated into flatter (text) values, and processed by other layers which do not recognize 'brands' as suggested.

Data scanners: Regexes are fine for SSNs and the like, but to be really effective, one would need a full-on Named Entity Recognition in the pipeline, perhaps just as a canary. (Wait, that might actually work?)

Dataflow analysis and control applies in a BIG way, e.g. separating an audit log for forensics, where you really NEED the PII, from a technical log which the SREs can dig into without being suspected of stealing sensitive info. Start there.

munchler•17h ago
I certainly agree with the desire to keep secrets out of logs, but isn’t the entire log itself also considered to be secret? Even a perfectly sanitized log probably contains lots of data about your production environment that you wouldn’t want to share with adversaries (e.g. peak usage hours).
advisedwang•17h ago
Logs probably need to be exposed to support teams, oncalls for sister-teams (if you are a large org), all your devs etc. That is many MANY more people than need access to secrets. Secrets in logs therefore puts you are much wider risk of internal threats and makes it MUCH easier for an attacker who phishes someone to pivot to higher credentials.

Also if you have audit records, you want accessing a secret to be logged separately from accessing logs.

dmurray•17h ago
Yes, but think defense in depth. Your team member who leaves for a competitor could tell them your peak usage hours, but he shouldn't be able to tell them all your customers' passwords.
jauer•17h ago
There’s secret from an adversary and then there’s internal compartmentalization.

You could have 100s of people who have a business need to look at syslog from a router, but approximately nobody who should have access to login creds of administrative users and maybe 10s of people with access to automation role account creds.

pluto_modadic•7h ago
PII is different from proprietary info. customer's email? PII. mask it. your code's stack trace? proprietary info. employees can see that to troubleshoot.
dataflow•17h ago
As far as run-time exposure prevention goes, I feel like in-band signaling might work better than out-of-band for this problem. Along the lines of the taint checking technique mentioned, you can insert some magic string (say, some recognizable prefix + a randomly generated UUID) into your sensitive strings at the source, that you then strip out at the sink. (Or wrap your secrets in a pair of such magic strings.) Then block or mask any strings containing that magic string from making it into any persisted data, including logs. And it will be easy to identify the points of exposure, since they will be wherever you call your respective seal()/unseal() function or such.
HelloNurse•5h ago
Can you elaborate on the situations and reasons that would make this approach appropriate?

At first sight it seems a complicated and inferior approximation of techniques from the article: not automatically single use, not statically checked, somewhat error prone for proper secret usage, not really preventing well-intentioned idiots from accidentally extracting, "laundering" and leaking the secret, removing secrets from logs at a dangerously late stage with some chance of leaks.

rolandog•1h ago
Also may need to handle special cases where entry is truncated so you get incomplete opening/closing pairs (i.e. quirks mode for log parsing?)
debarshri•17h ago
I think secrets ending up in the log is an issue but who should have access to view logs of what log should also be an important that is often ignored. This is also scope down the surface area of leakage.
stretchwithme•15h ago
A user's password is something I shouldn't see in a log, even if I'm in control of what gets logged and frequently access them to do my job.

Even if I trust me.

Audits happen. I assume other people will eventually see this bad practice.

debarshri•13h ago
Audits and bad practice are second-order things.

My argument is that generally everyone has access to all the logs. If you restrict the access and add guardrails around it, you can minimize the surface area and also ways it can be leaked out.

If you take a defensive approach towards, you have to assume that some secret is getting logged somewhere. The goal then becomes a way to reduce the surface area or blast radius of this possible leakage.

jaspervdj•2h ago
Limiting access helps, but if you are storing the logs on a 3rd party (e.g. DataDog, CloudWatch), you will still need to assume it can leak through that 3rd party and start rotating.
blkhawk•17h ago
oh god - I had that come up in an issue at work just about a month ago. A development system used really simple usernames and passwords since it was just for testing but all the lines with one of those got gobbled up because they had "secrets" in them.

I have very strong opinions on this issue that boils down to. _why are you logging everything you lazy asses_ and _adding all the secrets into another tool just to scan for them in logs just adds another point for them to leak_...

Especially since the ability of lines getting censored even when the secrets were just part of words showed that probably no hashing was involved.

But its a security tool so it stays. I kinda feel like Cassandra but I think I can already predict a major security issue with it or others with the same functionality in the future. its like some goddamn blind spot that software that is to prevent X cannot be vulnerable to X but somehow often is vulnerable because prevention of X and not being vulnerable to X are two separate things somehow.

pavel_lishin•17h ago
Why is logging everything considered lazy?
tonymet•16h ago
for one it's extremely costly, in vcpu , storage , transfer rates. and if you're paying a third-party logger , multiply each by 10x
shakna•16h ago
If you're in a testing environment, where your SIT and UAT are looking to break stuff though, don't you usually want to be able to look to a log of everything?
tonymet•15h ago
I could see a couple reasons against. For one, it's expensive to seralize/encode your objects into the logger , even if you reduce logging level on prod.

Secondly, you can't represent the heap & stack well as strings. Concurrent threads and object trees are better debugged with a debugger (e.g. gdb).

pavel_lishin•16h ago
That makes it foolish, but I'm not sure if it's lazy.
tonymet•15h ago
the lazy part comes from the fact that it's easier to be foolish in this case than to be selective about what gets logged. So lazy & foolish.
arccy•18m ago
it's not lazy, it's a good use of time, you don't go back and forth when you realize you forgot to log something important.
petesergeant•2h ago
Axiom wants $60/m if you send them a terabyte of logs, which is basically nothing compared to the cost of developers trying to debug issues without detailed logs.
mgaunard•16h ago
One particular thing to be careful of are core dumps.

What I did at a previous shop was remove the passwords as part of a smart gdb script that runs when the core is dumped, before it gets written to a readable location.

Writing the script also helped to demonstrate how to extract the passwords in the first place.

kjs3•16h ago
Stack traces, too. I did some work with a heavy Java shop and pretty much everything sensitive ended up in a stack trace at some point.
carlmr•15h ago
Java is just too verbose in every possible way.
h1fra•16h ago
I think the big problem is when secrets can be anywhere in a string and you don't control the input (e.g, library stacktraces, HTTP responses, JSON that was stringified). You need to pass the secrets to the logger so it can be redacted, it's heavily dependent on the dev and easy to forget during review.

And an exact match is just part of the problem; if a dev redacts the end and another dev redacts the start, you can still reassemble the secret with enough logs.

Bender•15h ago
One direction to venture would be running rsyslog on every node, using regex to match all the known patterns and use various plugins/addons to send all the applications to the local rsyslog instance using a local spooler and then encrypt the rsyslog upstream to centralized logging servers. Rsyslog supports using a spooler so that if the up-stream server is offline for whatever reason the logs are spooled locally and then resume when upstream is online.

Regex matching on logs is slow but if performed on every node the CPU load is distributed vs. doing this upstream. Configuration management can push the regex rules to all the nodes. This won't help with unknown-unknowns but those can be added quickly to all nodes through configuration management after peer review.

Rsyslog also supports encrypting the log stream so that secret leakage is limited to the sending nodes and the central nodes and it checks a few boxes.

Another thing that helps is limiting to warn and above sent upstream and using an agent on the local nodes to monitor for keywords in the range of info to debug to let someone know to go check the node logs. Less junk on the centralized servers that may have SOC1/SOC2/PCI/FEDRAMP log retention requirements. One can not leak what is not sent in the first place.

bilalq•15h ago
This is an excellent write-up of the problem. New hires out of college/bootcamps often have no awareness of the risks here at all. Sometimes even engineers with years of experience but no operational mentorship in their career.

The kitchen sink example in particular is one that trips up people. Without knowing the specifics of how a library may deal with failure edge cases, it can catch you off guard (e.g., axios errors including API key headers).

A lot of these problems come from architectures where secrets go over the wire instead of just using signatures/ids. But in cases where you have to use some third party platform, there's often no choice.

micksmix•6h ago
Loved this “lead bullets” framing, especially the parts on taint checking, scanners, and pre-processing/sampling logs. One practical add-on to the "Sensitive data scanners" section is verification: can you tell which candidates are actually live creds?

We’ve been working on an open source tool, Kingfisher, that pairs fast detection (Hyperscan + Tree-Sitter) with live validation for a bunch of providers (cloud + common SaaS) so you can down-rank false positives and focus on the secrets that really matter. It plugs in at the chokepoints this post suggests: CI, repo/org sweeps, and sampled log archives (stdin/S3) after a Vector/rsyslog hop.

Examples:

  kingfisher scan /path/to/app.log --only-valid
  kingfisher scan --s3-bucket my-logs --s3-prefix prod/2025/09/
Baselines help keep noise down over time.

Repo: https://github.com/mongodb/kingfisher (Apache-2.0)

Disclosure: I help maintain Kingfisher.

petesergeant•3h ago
> If you shift from “any string can be a secret” to “secrets are secrets”, it makes things a lot easier to reason about and protect.

> const secret = new Secret("...")

one of those things that's obvious in retrospect. That's a cute trick I'll definitely be stealing.

jiggawatts•3h ago
.NET has SecureString: https://learn.microsoft.com/en-us/dotnet/api/system.security...

Which reminds me of why I hate tiny standard libraries as seen in JavaScript: features like SecureString work only if they're used pervasively. It has to be in the std lib and it has to be used everywhere so that you almost never have to unwrap them. It's critical that credentials are converted to SecureString as soon as possible and that they stay as SecureString values until the last possible instant when they're passed to some external API call deep inside even a third-party a library.

vbezhenar•2h ago
Copying GC also have to cooperate with this SecureString feature, so you won't accidentally keep hanging secret in heap dump. Old Java API has the tendency to use `char[]` for secrets. You can zero it after use, so old reference will not contain useful data, but you can't protect it from copying GC, so it might still gets leaked in raw heap dump, even after zeroing it out.