Archive

Articles

Everything the Mestreclique team has written about engineering, tools, and the technical decisions behind what we build.

MC/TECH
SECURITY · INFRASTRUCTURE

47-day certificates: what changes when renewal becomes routine

Publicly trusted certificates are getting much shorter lifetimes on a fixed schedule. A look at the timeline, what breaks, and why expiry monitoring has to change shape.

Pedro Pereira Pedro Pereira 03 Nov 2026 6 min read
MC/TECH
SECURITY · IDENTITY

JWT beyond alg none: key confusion, kid and JWKS caching

The alg none trick is solved in every serious library. The attacks that still work are about who gets to choose the algorithm, the key and the key source.

Pedro Pereira Pedro Pereira 29 Oct 2026 5 min read
MC/TECH
AI · PERFORMANCE

Prompt caching: prefix stability is your cost model

Why the order of the things you put in a prompt decides your latency and your bill, and the small habits that quietly break caching.

Pedro Pereira Pedro Pereira 27 Oct 2026 3 min read
MC/TECH
ARCHITECTURE · RELIABILITY

Idempotency keys: storage, races and replaying the response

An idempotency key is easy to describe and easy to implement wrong. What to store, what to do when two requests with the same key arrive together, and what happens when the first one crashes halfway.

Pedro Pereira Pedro Pereira 22 Oct 2026 4 min read
MC/TECH
DATABASES · ARCHITECTURE

Write skew, snapshot isolation and what SERIALIZABLE actually catches

The anomaly that snapshot isolation allows, why it passes every test you write, and the three ways to fix it: serializable with retries, locking the right rows, or materializing the conflict.

Pedro Pereira Pedro Pereira 19 Oct 2026 6 min read
MC/TECH
CI/CD · SECURITY · SUPPLY CHAIN

GitHub Actions: pull_request_target, OIDC and SHA pinning

Four small workflow changes that close most of the serious holes in a typical GitHub Actions setup: untrusted checkouts, script injection, long-lived cloud secrets and mutable action tags.

Pedro Pereira Pedro Pereira 14 Oct 2026 5 min read
MC/TECH
AI · SECURITY

Prompt injection through tool results and why agents need privilege separation

The dangerous prompt injection is not what the user types, it is what the agent reads. How the confused deputy problem shows up in LLM agents and which designs actually limit the damage.

Pedro Pereira Pedro Pereira 09 Oct 2026 8 min read
MC/TECH
INFRASTRUCTURE · KUBERNETES · PERFORMANCE

CPU limits, CFS throttling and the latency you cannot see in averages

A container can be throttled while its CPU graph shows 20% usage. Here is how CPU limits really work, how to measure throttling, and what it does to a multi-threaded runtime.

Pedro Pereira Pedro Pereira 07 Oct 2026 7 min read
MC/TECH
SECURITY · SUPPLY CHAIN · .NET

Dependency confusion and NuGet package source mapping

How an attacker can get their package installed instead of your internal one, why it works, and the NuGet feature that closes the gap.

Pedro Pereira Pedro Pereira 01 Oct 2026 5 min read
MC/TECH
DATABASES · PERFORMANCE

Postgres HOT updates, fillfactor and the hidden cost of indexes

Why adding one index to a frequently updated table can multiply your write cost, and how heap-only tuples and fillfactor decide whether that happens.

Pedro Pereira Pedro Pereira 28 Sep 2026 4 min read
MC/TECH
ARCHITECTURE · DATABASES · RELIABILITY

Transactional outbox or CDC: choosing how events leave your database

The dual-write problem, the outbox pattern that solves it, and the real trade-off between a polling relay and log-based change data capture.

Pedro Pereira Pedro Pereira 24 Sep 2026 6 min read
MC/TECH
SECURITY · INFRASTRUCTURE

SSRF against cloud metadata and why the IMDSv2 hop limit matters

Why a plain SSRF bug turns into stolen cloud credentials, what IMDSv2 actually changes, and why the default hop limit of 1 is doing more work than most people realize.

Pedro Pereira Pedro Pereira 16 Sep 2026 7 min read
MC/TECH
ARCHITECTURE · RECOVERY · RELIABILITY · UX

Load shedding and Throttling impact in serving capacity

Succinct explanation of Load shedding and Throttling and their relevance/impact in day to day use.

Pedro Pereira Pedro Pereira 09 Sep 2026 9 min read