frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: A Mutating Webhook to automatically strip PII from K8s logs

https://github.com/aragossa/pii-shield
11•aragoss•2h ago

Comments

aragoss•2h ago
Hey HN,

About 3 months ago I posted here the first version of Pii-shield, the tool that sanitizes logs to hide api-keys using Shannon entropy, Luhn algorithm for credit cards, and regex for custom pii data.

The tool itself worked well, but manual injecting sidecars to huge clusters was too complicated, that's why I wanted to rewrite the delivery mechanism, and turn the project into a Kubernetes Operator (Mutating Webhook).

In that process I resolved following issues: 1. Replaced the old tail -f | pii-shield pipe with native Go mechanism, which waits for logs files creation to avoid CrashLoopBackOff.

2. If a main container finish it's work, the sidecar continues working and trying to read the logs files. To fix it the Operator injects the agent into the initContainers array with RestartPolicy: Always, so now Kubernetes will know how to behave and kill the sidecar gracefully.

3. If a main container works under root with umask 0077, the nonroot sidecar can't read the the file because of Permission Denied error. Instead of changing user's manifests, the webhook does it automatically, it checks the SecurityContext of a pod, and injects fsGroup: 65532.

Now everything is packed into one helm chart. You just describe one simple label pii-shield.io/inject: "true", and the Operator will do the rest of the work, with no code changing.

Would be happy to hear you thoughts about it.

dlcarrier•48m ago
I saw PII and K8 and thought this was talking about early 2000's processors from Intel (Pentium II) and AMD (K8 is the 1st-gen Athlon 64), respectively.

Three Inverse Laws of AI

https://susam.net/inverse-laws-of-robotics.html
137•blenderob•1h ago•73 comments

UK: Two millionth electric car registered as market rebounds strongly

https://www.smmt.co.uk/two-millionth-electric-car-registered-as-market-rebounds-strongly-from-tax...
62•kieranmaine•1h ago•37 comments

Accelerating Gemma 4: faster inference with multi-token prediction drafters

https://blog.google/innovation-and-ai/technology/developers-tools/multi-token-prediction-gemma-4/
52•amrrs•59m ago•11 comments

EEVblog: The 555 Timer is 55 years old

https://www.youtube.com/watch?v=6JhK8iCQuqI
52•brudgers•1h ago•8 comments

Computer Use Is 45x More Expensive Than Structured APIs

https://reflex.dev/blog/computer-use-is-45x-more-expensive-than-structured-apis/
26•palashawas•38m ago•5 comments

Proliferate (YC S25) Is Hiring- 200k for junior engineers

https://www.ycombinator.com/companies/proliferate/jobs/L3copvK-founding-engineer
1•pablo24602•13m ago

iOS 27 is adding a 'Create a Pass' button to Apple Wallet

https://walletwallet.alen.ro/blog/ios-27-wallet-create-pass/
275•alentodorov•4h ago•223 comments

Async Rust never left the MVP state

https://tweedegolf.nl/en/blog/237/async-rust-never-left-the-mvp-state
359•pjmlp•9h ago•197 comments

Should I Run Plain Docker Compose in Production in 2026?

https://distr.sh/blog/running-docker-in-production/
243•pmig•5d ago•186 comments

Docker 29 has changed its default image store for new installs

https://docs.docker.com/engine/storage/containerd
79•neitsab•3d ago•39 comments

Agents for financial services and insurance

https://www.anthropic.com/news/finance-agents
88•louiereederson•2h ago•69 comments

Show HN: Airbyte Agents – context for agents across multiple data sources

35•mtricot•2h ago•3 comments

AI Product Graveyard

https://tooldirectory.ai/ai-graveyard
196•StriverGuy•4h ago•77 comments

Simple Meta-Harness on Islo.dev

https://zozo123.github.io/meta-harness-on-islo-page/
28•zozo123-IB•3h ago•16 comments

Empty Screenings – Finds AMC movie screenings with few or no tickets sold

https://walzr.com/empty-screenings
268•MrBuddyCasino•12h ago•225 comments

Comparing the Z80 and 6502 to Their Relatives

https://bumbershootsoft.wordpress.com/2026/05/02/comparing-the-z80-and-6502-to-their-relatives/
53•ibobev•2d ago•0 comments

Incident with Actions

https://www.githubstatus.com/incidents/1j40g94rn22j
106•pera•2h ago•58 comments

AI didn't delete your database, you did

https://idiallo.com/blog/ai-didnt-delete-your-database-you-did
343•Brajeshwar•3h ago•179 comments

When everyone has AI and the company still learns nothing

https://www.robert-glaser.de/when-everyone-has-ai-and-the-company-still-learns-nothing/
192•youngbrioche•7h ago•127 comments

The first photo published in a newspaper

https://phsne.org/the-first-photograph-published-in-a-newspaper-1848/
29•geuis•2d ago•10 comments

Google Chrome silently installs a 4 GB AI model on your device without consent

https://www.thatprivacyguy.com/blog/chrome-silent-nano-install/
798•john-doe•9h ago•566 comments

New Landing Page for Awesome PaaS

https://debarshibasak.github.io/awesome-paas/
6•debarshri•1h ago•5 comments

Lessons for Agentic Coding: What should we do when code is cheap?

https://www.dbreunig.com/2026/05/04/10-lessons-for-agentic-coding.html
173•ingve•10h ago•179 comments

Instagram Encrypted Messaging Ends on Friday, May 8

https://www.macrumors.com/2026/05/05/psa-instagram-encrypted-messaging-ends-may-8/
33•fraXis•1h ago•8 comments

Show HN: I built a new word game, Wordtrak

https://wordtrak.com/blog/2026-05-05-I-built-a-new-word-game
49•qrush•4h ago•22 comments

Hand Drawn QR Codes (2025)

https://sethmlarson.dev/hand-drawn-qr-codes
183•jollyjerry•13h ago•34 comments

How OpenAI delivers low-latency voice AI at scale

https://openai.com/index/delivering-low-latency-voice-ai-at-scale/
473•Sean-Der•21h ago•139 comments

Did I photograph the Aurora or was it something else? (2016)

https://wp.lancs.ac.uk/aurorawatchuk/2016/03/16/did-i-photgraph-the-aurora-or-was-it-something-else/
8•susam•3d ago•2 comments

Farewell to a Giant of Botany

https://nautil.us/farewell-to-a-giant-of-botany-1280409
84•Brajeshwar•2d ago•5 comments

Show HN: A Mutating Webhook to automatically strip PII from K8s logs

https://github.com/aragossa/pii-shield
11•aragoss•2h ago•2 comments