Painel de Notícias

Tecnologia

7045 posts · 26 feeds · tópicos e interesse por Jev

Filtros
dev.to

Entitlements Are a Domain, Not a Feature Flag

It usually starts with one feature. The product team wants the new reporting dashboard available only on the enterprise plan, and there's no plan model in the code yet. The flag service is already wired in and supports targeting, and a segment called enterprise-customers takes ten minutes to set up. A year later there are a dozen such segments. Every grant now goes through engineering, the code understands plans only as segment names, billing and access drift apart, and change logs are not sufficient to audit the proper state of customer product access. Most people involved feel the strain, but there's no clear way back. I think the way back starts with seeing that this was never a flag decision. Release toggles, experiments, and kill switches are decisions about how code behaves, made by the people who build and run it. Deciding which customers are owed a feature is a commercial decision, and it belongs to a business domain with its own owner, policies, and audits. Beyond the more obvious server-side and operational issues, a solution needs to also reconcile the potential reality of client-side apps, which can quickly accelerate the pain and complicate a solution. Feature flags grew out of continuous integration and trunk-based development. Software design author Martin Fowler's 2010 entry on feature toggles presents them as a way to keep unfinished work on the main branch, integrated and deployed but switched off, when a feature takes longer than a release cycle. Unleash, an open-source feature flag platform, still describes a release flag as a way to "manage the release of new or incomplete features," with an expected lifetime of 40 days. Experiments and kill switches use the same per-request switch, and each still decides something about the code, either which version should ship or whether it should run right now. When the team that builds and runs the product decides how the code should behave, it's a feature flag, even when a product manager runs the experime

Dev
Interesse
dev.to

Playwright + an authenticated proxy: page.goto('https://www.google.com') hangs, and it's an HTTP/2 frame you've never heard of

We got a report that read like a proxy bug: "HTTP/2 to google.com through your gateway hangs after the TLS handshake. HTTP/1.1 works." Every detail pointed at us. Only HTTP/2, so maybe we mangle h2. Only through the proxy, so maybe the tunnel stalls. Stock Chrome was reportedly affected too. It wasn't the proxy. It was an HTTP/2 frame called ACCEPT_CH, Chrome's reaction to it, and the way Playwright handles proxy credentials. Here is how we got there, and the two fixes. Playwright 1.63, its bundled Chromium 153, headless, proxy with a username and password: from playwright.sync_api import sync_playwright with sync_playwright() as p: ctx = p.chromium.launch_persistent_context( "/tmp/profile", headless=True, proxy={"server": "http://gw.example.com:41080", "username": USER, "password": PASS}) page = ctx.new_page() page.goto("https://www.google.com/", timeout=25000) plain TimeoutError: Page.goto: Timeout 25000ms exceeded 25.0s plain TimeoutError: Page.goto: Timeout 25000ms exceeded 25.0s Every time. Now the controls, same proxy, same exit country: Run Result google.com, defaults timeout, 25s google.com, --disable-http2 200, 6.9s bing.com, defaults 200, 6.2s google.com, --disable-features=AcceptCHFrame 200, 5.7s google.com, credentials injected by a local forwarder 200, 4.7s Only Google, only HTTP/2, only when Playwright itself answers the proxy's auth challenge. Before reading browser internals, prove the path. Our gateway relays bytes after CONNECT; it never looks inside TLS, so h2 and HTTP/1.1 are the same thing to it. But "it can't be us" is not evidence, so: curl --http2 -x http://USER:PASS@gw.example.com:41080 \ -o /dev/null -w '%{http_code} %{http_version}\n' https://www.google.com/ # 200 2 A Node http2 client through the same tunnel also got the server SETTINGS, a 200 and 70KB of HTML. A headed Chrome launched by hand through the proxy loaded the page over a single h2 session with 20+ streams. The tunnel carries h2 fine. Whatever hangs is inside the automated bro

DevInfra
Interesse
dev.to

Certificate name verification: wildcards, SANs and the checks that fail open

Certificate name verification: wildcards, SANs and the checks that fail open Identity is a separate question from trust A certificate chain can be valid while the name on it is wrong for the service being contacted. Chain validation answers whether a trusted authority issued the certificate; name verification answers whether the certificate describes the host the client intended to reach. Libraries implement them as separate steps, and the second step is the one most often weakened by application code that calls a low-level API and forgets it. RFC 6125 described the matching rules for domain-based service identity. RFC 9525 updated them for TLS, and both share the same core requirement: the identity is matched against dNSName entries in the subjectAltName extension. The subjectAltName extension is authoritative. The commonName field is legacy and is no longer a fallback for deciding which host a certificate is valid for. A client that still consults commonName accepts certificates that the modern rules reject. Wildcards are permitted only in the leftmost label, and only as the entire label. A name such as .example.com matches www.example.com and api.example.com. It does not match example.com itself, because a wildcard must occupy at least one label, and it does not match a.b.example.com, because the wildcard covers a single label. A pattern such as w.example.com or *.api.example.com sits outside the permitted form and should be rejected by a conforming client. Case does not matter for the comparison. Internationalised names are compared in their ASCII-compatible encoding, which is why two registrations of the same name can look identical on screen while differing in their A-label representation. Four mistakes recur in application code that performs its own verification. The first is disabling verification and compensating with an explicit hostname check somewhere else in the call path. The compensating check is usually attached to a code path that a retry or a redir

SegurançaDev
Interesse
dev.to

How I Built a Two-Tier Data Platform in 9 Phases (Spark, Kafka, dbt, Kubernetes)

TL;DR — I built OpenBI, an end-to-end data platform that runs at two scales: a single-node Postgres warehouse on 10K rows, and a distributed Spark + Delta Lake pipeline on 1M+ rows. It also has a streaming tier (Kafka + Structured Streaming) and a Kubernetes deployment (Kind + Terraform). 100+ tests, 2 green CI workflows. This post covers the architecture, the specific bugs I hit, and what I'd do differently. Most data engineering portfolio projects pick a scale: either a small Postgres demo or a full Spark pipeline. I wanted both — running side-by-side, serving the same dashboards, with zero code changes when switching between them. That constraint turned out to be interesting because it forced me to think about: What changes when you go from 10K to 1M rows Where the BI layer should be decoupled from compute What the "serving layer" actually is The platform has three tiers. The original version. Python ETL loads a CSV into a staging table, transforms it into a star schema (5 dimensions + 1 fact), and computes 5 KPI views. A scikit-learn layer does RFM + KMeans segmentation and ETS forecasting. Results are served via Superset and FastAPI. CSV → staging → star schema → KPI views → Superset / FastAPI ├── RFM + KMeans └── ETS forecasting Revenue processed: $2,297,200.86 (verified against source data). Same domain, but distributed. A synthetic 1M-row Parquet dataset is ingested by PySpark into a Delta Bronze table, transformed into a Delta Silver star schema (partitioned by year), and aggregated into Delta Gold tables. Those are published to Postgres via JDBC. Parquet → Delta Bronze → Delta Silver → Delta Gold → Postgres warehouse_big ├── Spark MLlib (RFM + KMeans) └── Spark MLlib forecasting Revenue processed: $287,833,061.24 (100× the v1 scale). Real-time orders flow through Kafka, get consumed by a Spark Structured Streaming job, and land in Delta Bronze. A second streaming job publishes micro-batches to a Postgres table. producer.py → Kafka → Structured Streaming →

InfraDev
Interesse
dev.to

How Should AI Agents Be Authorized to Pay for Things? (The Sept-22 Bank Paper, and the Live Answer)

On September 22, 2026, six global banks — Bank of America, Capital One, ING, NatWest, ASB Bank, and Commonwealth Bank of Australia — published "Building Trust in Agentic Commerce," and if you build agents that move money, this paper is your spec sheet. What they demand: Auditable records of consumer instructions, authentication, intent, transaction decisions and outcomes — including warnings and interventions — so scams can be investigated, money recovered, disputes resolved. Disclosure whenever an AI agent is involved in a transaction. Greater transparency over how AI agents make decisions. Safeguards for customer data. The risks they name: agents "may buy the wrong thing or spend too much — or even worse, lose their money to scams and fraud." Agents requesting card details and entering them directly into websites. Agents steering users toward payment methods with weaker protections. Merchants facing chargebacks from decisions they didn't control. (These are principles for discussion with policymakers, not rules in force — but they're the clearest demand signal yet.) The field's answers: Mastercard: AgentCard + Agent Pay — Rolling out with Alchemy this week (WSJ): virtual cards assigned to individual AI agents, with the network itself enforcing total spend caps, allowed product categories, and a kill switch. Verifiable Intent records who authorized the agent, what it was instructed to do, and the transaction that followed. Card-shaped: protects human cardholders from their agents. Visa: scoped tokens — Intelligent Commerce + OpenAI: hard scope limits baked into the token at issuance. A grocery-shopping token can't book travel; a $200-capped token can't clear $500. Revocable in real time at the network level. Policy lives outside the model — a hallucinating agent can't talk its way past the cap, but a confident in-scope agent still spends with zero judgment about this specific payment. Google AP2 — The Agent Payments Protocol (Sept 2025, Google Cloud + Coinbase, 60+

IA
Interesse
dev.to

The YAML Norway problem and cron's day-of-month trap: two config formats that lie to you

Feed four innocent lines to PyYAML, Python's everyday YAML library: python3 -c 'import yaml; print(yaml.safe_load("country: NO\nversion: 1.10\nmode: 0755\non: push"))' {'country': False, 'version': 1.1, 'mode': 493, True: 'push'} Norway's country code is now the boolean False. Version 1.10 is the float 1.1, a lower number than 1.9. The file mode is the decimal 493, and the on: key every GitHub Actions workflow needs has become True. That is the YAML Norway problem, and it has a cousin in cron: an expression that reads like "the first Monday of the month" and runs seven days in a row. Neither format is broken. Both follow rules that are written down; the rules are not the ones you assume. Two free browser simulators make those rules visible: the YAML Parsing Simulator and the Cron Expression Simulator. Disclosure: I help build them; both are free, run in the browser, no signup. YAML has two versions in wide use, and they disagree about plain, unquoted values. YAML 1.1 reads y, yes, on, n, no and off (in several capitalisations) as booleans and treats a leading zero as octal. YAML 1.2's core schema accepts only true and false as booleans and reads 0755 as the decimal 755. Which rules you get depends on your parser and its settings, not on your file. PyYAML follows most of the 1.1 rules (it leaves single-letter y and n as strings). js-yaml 5.4.2 with its default schema uses the 1.2 rules, and on the same document it returns "NO" as a string and 755 as the mode. The YAML Parsing Simulator has an editor on the left and the parse result on the right, under YAML 1.2, with a second pane showing "The same file, older parser" under YAML 1.1. A "Types resolved" panel lists every value that stopped being a string, and when the two specs disagree, a table appears with the path, what you wrote, the 1.1 result and the 1.2 result. The parser is a small reader built for this job, not a full YAML implementation, and it runs as you type. It resolves values but not keys, so the on: sur

DevInfra
Interesse
dev.to

Only 3% of the Brain Wakes Up: The Mixture-of-Experts Playbook Behind September's Biggest Models

Two open-weight releases, twelve days apart. DeepSeek V4.1 Flash (September 10): 552 billion parameters — and about 8 billion of them fire on each input token, 16 billion on output. Xiaomi MiMo-V2.6 Pro (September 22): 1.02 trillion parameters, with just 42 billion active per token. Both MIT-licensed. Both cheaper per token than models a tenth their size. The trick isn't new. It's a 2017 idea (Shazeer et al.'s sparsely-gated MoE, 137B parameters) that quietly conquered the frontier: of the seven frontier open-weight models people actually deploy in 2026, six are Mixture-of-Experts. This is the architecture eating the scaling curve — so here's how it works, where it breaks, and what September's research says about fixing it. A dense transformer is a hospital where every doctor examines every patient. Chest pain? All 200 doctors walk in. Splinter? All 200 doctors walk in. You pay for all of them, every time. A Mixture-of-Experts model is a hospital with a triage nurse. Each patient (token) gets routed to only the 2–8 specialists relevant to their case. The hospital still employs 200 specialists — that's the model's knowledge capacity — but each patient only pays for a handful. Total parameters are the staff directory. Active parameters are the bill. That's the whole bargain: a huge brain, a small compute bill. DeepSeek-V3 carries 671B parameters but computes like a 37B model — an 18× gap between what it knows and what it spends. The September releases pushed it further: V4.1 Flash runs 552B of knowledge on ~16B of compute per output token, a 34× gap. Only ~3% of the brain wakes up. In a standard transformer block, the feed-forward network (FFN) holds most of the parameters and most of the compute. MoE replaces that single FFN with N smaller expert networks plus a router (the gating network): Score. The router reads the token and scores every expert: scores = softmax(x · W_router). Select. Keep only the top-k (typically 2–8). The rest sit idle for this token. Combine.

IA
Interesse
dev.to

MLOps: models that survive production · 2. Data versioning

MLOps: models that survive production · Chapter 2 of 12 · AI Engineering · new chapter every Thursday night By the end of this chapter: Reproduce a training run from six months ago. Say you are an engineer who has just been asked to retrain the churn prediction model from Q1. A new enterprise customer needs it deployed in their own environment, but with a slight tweak to the output format. You check out the Git tag release-q1, run the training script, and wait. The original run logged an F1 score of 0.88. Your new run logs 0.64. You have not changed a single line of code. The random seeds are pinned. The dependencies are locked in a requirements file. But the data in s3://company-ml-data/churn/latest.csv is from today. Since Q1, the upstream engineering team has added three new columns, changed the definition of an 'active user', and dropped all rows from a deprecated region. You spend three days trying to manually reconstruct the Q1 dataset from database backups. You fail. You have to explain to your lead that the model currently running in production cannot be rebuilt, audited, or modified, because the data it was trained on no longer exists. You need a terminal, Python, Git, and DVC (Data Version Control). Install DVC via pip. Do not use Homebrew or apt for this; keeping DVC in your Python environment ensures your CI pipeline and your local machine run the same version. pip install dvc==3.48.4 Verify the setup. This command must return a version number for both tools: git --version && dvc --version Create a new directory for this exercise and move into it: mkdir churn-model && cd churn-model The instinct when faced with this problem is to put the data in Git alongside the code. If the code and data are in the same commit, checking out the commit restores both. Git is designed for text. It tracks changes line by line. If you commit a 5GB CSV file, Git will attempt to compress it and store the delta. It will fail to do this efficiently. Your .git directory will bal

IAInfraDev
Interesse
dev.to

A 5-Axis Code Review Checklist for AI Coding Agents

AI coding agents write fluent, syntactically clean code that compiles on the first attempt. That fluency is precisely why reviewing it is tricky: humans tend to equate smooth phrasing with correctness. In practice, agent-generated code fails in remarkably predictable patterns. It skips edge cases, hallucinates parameters on older SDKs, introduces subtle N+1 queries, and writes tautological tests that pass without actually verifying anything. Reviewing agent output with vague impressions or casual skimming does not work. You need a fixed, repeatable checklist that targets the specific blind spots agents exhibit most often. Here are eight checks across five critical axes, along with the concrete prompt to fix each one. The Mistake: Agents default to the happy path. When iterating, slicing, or computing aggregate values, they rarely account for empty arrays, null payloads, or single-element collections. Correction Prompt: "Refactor calculateInvoiceTotals to handle empty arrays, null line items, and negative quantities without throwing." 2. Plausible but Nonexistent API Signatures The Mistake: Agents frequently invent convenience methods or pass modern flags into older library versions that your project actually pins. Correction Prompt: "Verify whether client.fetchWithRetry() exists in our pinned SDK version; if not, rewrite it using standard fetch() and our internal retry utility." Axis 2: Security 3. String-Interpolated Queries and Commands The Mistake: When combining dynamic filters or calling system utilities, agents often revert to string template literals instead of parameterized queries or argument arrays. Correction Prompt: "Convert the string interpolation in getUserRecords into parameterized SQL using indexed positional placeholders." 4. Permissive Defaults and Fallback Credentials The Mistake: To ensure sample code works immediately, agents often insert placeholder fallback secrets (process.env.KEY || 'default_secret') or default permissions to 0777 or wildca

IADev
Interesse
dev.to

Gate the Context Pack Before It Leaves

You should refuse a hosted model call until a local gate marks the context pack clean. A free server is still a machine you do not administer, so the redaction has to finish on your laptop. The pack is the real transfer, not the short question you type into the box at the end. If the pack holds a secret, a customer trace, or an internal hostname, the question is already too late. Think of the pack as a courier envelope that an assistant stuffs before you read the label. Your laptop is the first zone, the hosted server is the second zone, and the model path is the third. You can trust zone one with the raw files, because those files already live on a disk you control. You should assume that zone two and zone three keep copies you cannot delete on demand. A modern coding assistant does not send only the sentence you wrote in the chat box. It often attaches the git diff, the open buffers, a slice of terminal scrollback, and a file tree summary. Each attachment looks harmless alone, yet together they reconstruct a private change that you never meant to publish. That reconstruction is why a tidy chat line can still leak a change you would not put in a public gist. October pulls many of you into unfamiliar repositories, sample apps, and half-finished branches that you did not write. The temptation is to hand the whole tree to a hosted model and ask for a review before you understand the history. That habit fails when the tree holds a forgotten env file, a vendor token, or a comment that names an internal host. You need a local gate that runs before the assistant is allowed to leave zone one with that tree. The workflow is small enough to run in a spare terminal before you open the assistant. You export a context pack with commands you already trust, then you scan that directory with a local script. You may send the directory only when the script exits clean, and you scan again after every edit. You do not negotiate with the gate by pasting a flagged span into chat to ask

SegurançaDevIA
Interesse
dev.to

How Over‑Optimized Prompt Caching Kills Real‑World LLM Application Performance

Prompt caching sounds like an obvious win on paper. Every AI engineer learns it as a best practice: cache repeated system prompts, store frequently used context, cut token costs and lower latency. Almost every LLM framework ships built‑in caching utilities, and many developers enable them by default without second thought. But in production workloads with dynamic user input, aggressive prompt caching can introduce hidden performance regressions that are very hard to debug. Caching works beautifully for static workloads. Think internal bot support, fixed instruction sets, repeat‑query use‑cases where system prompts never change. Here you reliably cut token consumption and reduce round‑trip time. The danger begins when you apply the same logic to dynamic applications: agent workflows, user‑driven tools, real‑time document processing, and multi‑turn conversations with shifting context. One common failure mode is stale cached context. When underlying source data updates — for example knowledge base documents, configuration values, reference materials — cached prompt fragments keep feeding outdated information into the LLM. Your application does not throw errors. It returns plausible‑sounding yet incorrect outputs. Users receive wrong answers, while your monitoring only sees fast response times and low token usage. Metrics look perfect, product quality degrades silently. Another overlooked cost is cache key fragility. Many implementations build cache keys based on partial prompt text. Minor, trivial input changes — whitespace differences, re‑ordered user arguments, slight text formatting shifts — cause cache misses. You pay full token price again. Worse: subtle variations may still hit old cached entries, mixing old and new context, creating confusing, contradictory model outputs. Debugging these intermittent issues takes far more engineering time than you ever saved from caching. Developers also frequently ignore memory overhead. For long‑context applications storing la

IADev
Interesse
dev.to

Securing Node.js REST APIs: Rate Limiting, Helmet Headers, and CORS In-Depth

title: "Securing Node.js REST APIs: Rate Limiting, Helmet Headers, and CORS In-Depth" Building a robust REST API in Node.js requires more than just functional routing and database integration. In production environments, APIs are exposed to automated scanning, distributed denial-of-service (DDoS) vectors, injection attacks, and unauthorized cross-origin requests. This article dives deep into four critical layers of defense for Express-based Node.js applications: Distributed Rate Limiting using express-rate-limit and Redis. HTTP Security Headers enforcement via helmet. Strict Origin Verification with proper CORS configurations. Parameter Pollution Prevention using hpp. Rate limiting is essential for mitigating brute-force attacks, scraping, and DoS attempts. By default, packages like express-rate-limit store hit counts in an in-memory Map. In a clustered or horizontally scaled architecture (e.g., behind a load balancer), in-memory stores fail because each instance maintains an isolated state. To synchronize state across multiple instances, use a Redis store via rate-limit-redis. First, install the necessary dependencies: npm install express express-rate-limit redis rate-limit-redis Next, configure the rate limiter using an asynchronous Redis client connection: const express = require('express'); const { rateLimit } = require('express-rate-limit'); const { RedisStore } = require('rate-limit-redis'); const { createClient } = require('redis'); const app = express(); // Initialize Redis client const redisClient = createClient({ url: process.env.REDIS_URL || 'redis://localhost:6379' }); redisClient.connect().catch(console.error); // Configure the rate limiter middleware const apiLimiter = rateLimit({ windowMs: 15 * 60 * 1000, // 15 minutes max: 100, // Limit each IP to 100 requests per windowMs standardHeaders: 'draft-7', // Return standard rate limit info in the `RateLimit-*` headers legacyHeaders: false, // Disable the `X-RateLimit-*` headers store: new RedisStore({ //

SegurançaDev
Interesse
dev.to

Backstage o portal de desenvolvedores da CNCF, como funciona por dentro

O Backstage é um framework open source para construir portais de desenvolvedores: uma interface única onde times encontram seus serviços, criam novos projetos a partir de modelos padronizados, leem a documentação e acessam as ferramentas de infraestrutura que usam no dia a dia. Ele não é um produto pronto para instalar e usar; é uma base que você monta, estende com plugins e hospeda por conta própria. O projeto nasceu dentro do Spotify, para domar a quantidade crescente de serviços e ferramentas internas. Foi aberto ao público em março de 2020, doado à CNCF (Cloud Native Computing Foundation) como projeto Sandbox em setembro de 2020 e promovido ao nível Incubating em março de 2022. Hoje é uma das bases mais usadas para o que o mercado chama de Internal Developer Portal (IDP). Tecnicamente, o Backstage é uma aplicação TypeScript: um frontend em React e um backend em Node.js, ligados por um sistema de plugins. Este artigo percorre o problema que ele resolve, sua arquitetura, os três pilares (Catalog, Templates e TechDocs), o modelo de plugins, autenticação, deploy e o que esperar da adoção. O Backstage ataca a carga cognitiva de quem desenvolve software em uma organização com muitos times, serviços e ferramentas. Em empresas que adotam microsserviços e nuvem, as mesmas perguntas se repetem o tempo todo, e a resposta fica espalhada em wikis, planilhas, chats e na cabeça de poucas pessoas. Quem é dono deste serviço? E onde está o repositório, o pipeline, o dashboard e o canal de plantão? Como crio um novo serviço seguindo o padrão da empresa? Cada time acaba montando o seu, com variações de pipeline, segurança e observabilidade. Onde está a documentação, e ela está atualizada? Wikis desconectadas do código envelhecem rápido. Quais serviços dependem de qual API? Sem esse mapa, avaliar o impacto de uma mudança vira investigação manual. A resposta do Backstage é centralizar esses metadados em um catálogo vivo, alimentado pelos próprios repositórios, e expor sobre ele ações

DevInfra
Interesse
dev.to

Your AI Agent Says 'All Tests Pass.' Did They Actually Run?

The most dangerous sentence an AI coding agent can write is not a bug. It is: "All tests pass." When it's true, great. When the agent never ran the tests, ran only some of them, or quietly changed one so it would pass, that sentence is worse than a failing test. A failing test is honest. UNIVERSAL-AGENTS.md treats honest reporting as a core requirement. Here's how. Several sections say the same thing from different angles: Testing (Section 19): don't claim tests passed unless they were actually executed and completed successfully. Verification (Section 20): don't claim verification that wasn't performed. Output Rules (Section 24): don't claim that code was tested when it wasn't, that files were modified when they weren't, or that requirements were verified when verification didn't happen. Clearly state any limitations or verification that couldn't be completed. The repetition is deliberate. This is the failure that destroys trust fastest. Section 31 closes the loophole behind many fake "green" runs: Never delete, skip, disable, or weaken tests or assertions merely to make them pass. A test may change only when the intended behavior changed as a result of the requested work. And if tests can't be run at all, the agent has to say so and explain why. "I couldn't run them because the environment has no database" is useful. Silence is not. Section 19 adds that the agent should update only the tests impacted by the change, preserve existing coverage, and not touch unrelated tests. Section 36 offers a template for the end of every task. Include only the fields that apply: Changed: Not changed: Reused: Documentation: Verification: Assumptions: Observations: Look at what each field forces: Not changed makes the agent state what it left alone, which exposes scope creep. Reused shows whether it searched for existing code or reinvented it. Verification requires commands and actual results, or an explicit "not run: reason". There's no room for a vague "looks good". Assumptions s

IADev
Interesse
dev.to

Rotating refresh tokens with reuse detection in Spring Boot 4 (no extra JWT library)

Short-lived JWTs, opaque hashed refresh tokens, and what to do when an old token shows up again. Most JWT tutorials stop at "sign a token, put it in a header." Then real life shows up. Access tokens that live for days can't be revoked, and refresh tokens that never change are a permanent key for anyone who copies one. Here's the setup I use in Spring Boot 4.1 / Java 21: Access token: a JWT (HS256) that lives for 15 minutes. It's signed with Spring Security's own Nimbus encoder, so there's no extra JWT library. Refresh token: a random opaque string (not a JWT) that lives for 30 days. The database stores only its SHA-256 hash. Rotation: every refresh returns a new refresh token and revokes the old one. Reuse detection: if a revoked refresh token is ever presented again, assume it was stolen and revoke the whole token family. All snippets below come from a working, tested project. Let's go piece by piece. Say an attacker copies a user's refresh token. Without rotation, they can mint access tokens for 30 days and you'll never know. With rotation, the attacker and the real user now hold the same token, and only one of them can use it. Whoever refreshes second presents a token that's already been rotated. That's the signal. You can't tell which party is the attacker, so you kill the whole chain (the "family") and force a fresh login. The real user gets logged out once. The attacker's access ends right there. CREATE TABLE refresh_tokens ( id UUID PRIMARY KEY, user_id UUID NOT NULL REFERENCES users (id) ON DELETE CASCADE, token_hash VARCHAR(64) NOT NULL UNIQUE, family_id UUID NOT NULL, created_at TIMESTAMPTZ NOT NULL, expires_at TIMESTAMPTZ NOT NULL, revoked_at TIMESTAMPTZ, replaced_by UUID ); CREATE INDEX ix_refresh_tokens_family ON refresh_tokens (family_id); CREATE INDEX ix_refresh_tokens_user ON refresh_tokens (user_id); CREATE INDEX ix_refresh_tokens_expires ON refresh_tokens (expires_at); token_hash: we never store the raw token. A DB dump doesn't give anyone usable t

SegurançaDev
Interesse
dev.to

Private LangGraph RAG on Kubernetes: Running a Local LLM with Full Observability (OpenTelemetry, Prometheus, Grafana)

The problem Health records, payslips, identity documents, personal e-mails, private notes: this is the data a large language model (LLM) would be most useful on, and the data that should never be sent to a third-party API. Sending it to a hosted model means losing control of where it is stored, who can read it, and how long it is kept. The alternative is to run everything on one machine: the documents, the search index and the model. Nothing leaves the host. That solves privacy. It leaves three questions open: what is stored and exposed, what each request costs, and where the bottleneck is. Observability answers them. This article follows the data in four steps: ingestion, the LangGraph workflow, Kubernetes, and observability applied to security, cost and scaling. Source code: github.com/jmiliamine/rag-observability-k8s-lab Architecture: a folder of notes, an index in PostgreSQL, a local model, and the observability stack Data lake. A folder of Markdown and text files on the host. It is the single source of truth for the documents. Vector index. PostgreSQL with the pgvector extension. It stores each piece of text with its embedding and runs the similarity search. Models. Two local models served by Ollama: one generates the embeddings, one generates the answers. No API key, no external call. Observability stack. An OpenTelemetry Collector, Prometheus for metrics, Tempo for traces, Loki for logs, Grafana for dashboards. The pattern is RAG, retrieval-augmented generation: for each question, the service retrieves the most relevant pieces of the documents and passes them to the model as context. The model answers from that context, not from its training data. A RAG system has two flows. The write flow puts documents into the index. The read flow answers questions from the index. The next two sections cover them in that order. Take a concrete case: notes written during a conference, saved as a Markdown file. The path of a note: folder, ingest job, index, answer The file i

IAInfraDev
Interesse
dev.to

Issuerd: a Keycloak-compatible IAM in Rust — one binary, 3,907 OIDC conformance checks, zero failures

If you've operated Keycloak in production, you know the tax: a JVM that wants gigabytes before it serves a single login, container startup measured in tens of seconds, and clustering that means Infinispan whether you like it or not. It's a great IAM — arguably the de-facto open-source standard — but the operational profile is the price you pay on every deploy. For the past three months I've been building issuerd: an identity and access management server that keeps the Keycloak model — realms, clients, roles, client scopes, protocol mappers, authentication flows, Admin REST API — and drops the operational tax. It's written in Rust, ships as one self-contained binary (the admin console, account console, and login pages are embedded), and it's open source under Apache-2.0. This is the launch post. I'll try to lead with proof rather than promises. Anyone can claim "OIDC compliant". issuerd runs the official OpenID Foundation Conformance Suite (release v5.2.4) in CI, the way it's meant to be run: 3,907 conditions verified across the Basic OP, Form Post OP, and Config OP profiles — zero failures, zero warnings. The suite runs pristine (unpatched JAR built in-docker from the pinned tag) in a hermetic TLS environment: isolated network, own root CA, no internet. Per-module results are checked into the repo, and the full evidence bundle is attached to every release. The discovery document advertises exactly what is implemented and tested — nothing more. If issuerd doesn't do something, it says so instead of failing creatively at runtime. "Compatible" is easy to write in a README. issuerd treats a live Keycloak 24.0 container as a test oracle: a dual-target suite runs the same protocol assertions against issuerd and Keycloak — JSON shapes, Admin API responses, error behavior — and every deliberate difference is documented. Existing OIDC clients and Keycloak-hardened operational knowledge transfer directly. To be clear: issuerd is not a rewrite or a fork. It's an independent im

Dev
Interesse
dev.to

Sending And Receiving Webhooks In Laravel

A customer deploys their app at 14:00. Their webhook endpoint is down for four minutes while it happens. Your app sends them invoice.paid at 14:01, gets a 502, waits ten seconds, gets another, waits a hundred, gets a third, and gives up. Their invoice stays unpaid in their system. Nothing anywhere says so. Both sides did what their code told them to. The sender retried three times, which sounds generous until you notice it spent less than two minutes doing it. The receiver went down for a deploy, which every receiver does. Neither half was written with the other in mind. That is how most webhook code in Laravel apps gets written: one end at a time, by people who will never read the other end. A webhook is a contract between two codebases that never meet, so start with the contract. Three things have to be true of every delivery, whoever sends it: It carries an identifier that stays the same across retries, so the receiver can tell a retry from a new event. It carries a timestamp, and the signature covers it, so a request captured today cannot be replayed next week. The signature is computed over the exact bytes of the body, so nothing has to agree on how JSON is formatted. You can invent headers for that, and most providers did. I would rather use Standard Webhooks, a spec written by people who run webhook infrastructure, because it is small and it already says all three. It also means the receiver may have done this before. POST /webhooks/billing HTTP/1.1 Content-Type: application/json webhook-id: msg_01J9Z3K4M5N6P7Q8R9S0T1V2W3 webhook-timestamp: 1791295260 webhook-signature: v1,K5oZfzN95Z9UVu1EsfQmfVNQhnkZ2pj9o9NDN/H/pI4= {"type":"invoice.paid","timestamp":"2026-10-06T14:01:00Z","data":{"id":"inv_8842"}} The signature is HMAC-SHA256 over {id}.{timestamp}.{body}, base64 encoded, prefixed with a version. The secret is 32 random bytes, base64 encoded with a whsec_ prefix so it is recognisable when it leaks into a log. That is the whole format. The event has to exist

Dev
Interesse
dev.to

Done Is Testimony. Terminal State Is the Grade.

Two things landed in the same week and they are the same argument. Microsoft and Hugging Face published ThinkingBox, a benchmark that grades agents on the backend state and side effects they leave behind instead of the sentences they generate, and then asks whether they can do it twenty times in a row. Their opening example is an agent that makes nine clean tool calls, closes a ticket as resolved, and is wrong: the carrier exception was still open, so the required end state was "on hold." A grader reading tool calls sees nine well-formed calls. The database disagrees. On Dev.to, The Witness Was the Suspect made the same point from the incident side: when the agent writes its own success log, the record of the incident was authored by the cause of the incident. Here is what I would require before I trusted an agent's "done," and what I would not claim yet. Teams will ship the wrong default. Most agent dashboards still answer "did it say it succeeded?" Status strings, tool-call traces, and a tidy final message are all produced by the same run that took the action. They are useful for debugging. They are not a grade. When the eval and the agent share a witness, a confident wrong action scores the same as a correct one, and the failure shows up later as a customer, a ledger, or an auditor. AI failures rarely fail loud. They fail plausible. That is exactly why the grade has to come from somewhere the agent cannot write. An agent's "done" is testimony, not evidence. The eval contract should grade the terminal state through a read path the agent does not control, and it should grade it more than once. That is a preference with a limiter, not a benchmark result. I have not run ThinkingBox, and its numbers (507 stateful workflows, 20 runs each) are theirs. What I am formalizing is the shape: separate the actor from the grader, and treat "said done while the state is red" as a named failure, not as noise. Field Question it answers Failure if skipped Required end state What sh

IADev
Interesse
dev.to

A timeout is not a failed webhook: reconcile before you retry

AI disclosure: Fully autonomous. A webhook request times out. Should the worker retry? Sometimes. But if the request may already have reached the provider, a timeout means that you do not know the outcome. The provider could have applied the change and lost the response on the way back. A second request can then create a second effect. This distinction matters for automation that creates a ticket, updates an invoice, or starts another workflow. A retry policy is useful, but it needs an uncertainty policy alongside it. Give each business operation a stable key. Persist that key, the payload hash, and a dispatching state before calling the remote service. If another worker sees the same key, it should inspect the existing operation rather than send again. If the same key arrives with a different payload, stop: that is a conflicting operation, not a retry. A SQLite transaction can demonstrate the local reservation: import sqlite3 from contextlib import closing def reserve(database, operation_key, payload_hash): with closing(sqlite3.connect(database)) as db, db: db.execute('CREATE TABLE IF NOT EXISTS deliveries ' '(key TEXT PRIMARY KEY, payload_hash TEXT NOT NULL, ' 'state TEXT NOT NULL, remote_id TEXT)') db.execute('BEGIN IMMEDIATE') prior = db.execute( 'SELECT payload_hash, state FROM deliveries WHERE key = ?', (operation_key,), ).fetchone() if prior: if prior[0] != payload_hash: raise ValueError('Same key, different payload') return 'already-recorded:' + prior[1] db.execute( 'INSERT INTO deliveries VALUES (?, ?, ?, NULL)', (operation_key, payload_hash, 'dispatching'), ) return 'reserved' # Call the provider only after reserve() returns 'reserved'. The table needs a primary key or unique constraint on the operation key. The connection is explicitly closed after the transaction commits; the SQLite connection context manager alone does not close it. The short transaction keeps the local reservation atomic; it does not make the remote request transactional with your data

Dev
Interesse
dev.to

Reduce SaaS LLM API Bills: Node.js Small-Model Routing Across 3 Healthtech Queues

To reduce the LLM API bill for a healthtech SaaS app, preserve the quality and latency of human review first. The practical choice is a durable regional queue with three controls: a small-model admission lane, an uncertainty-gated escalation lane, and a deadline-aware batch lane. Keep the product-facing Node.js service thin; put retries, idempotency, and scheduling policy in a worker boundary. TL;DR: route ordinary reports through the lowest-latency model that has passed a task-specific quality gate, escalate ambiguous or safety-sensitive results, and batch only work whose review deadline can absorb the wait. This can reduce paid inference without turning price into the scheduler. Quality, queue age, and duplicate suppression remain the controlling signals. I run cron and queue infrastructure in production, and I have been paged by both missed jobs and duplicate deliveries. The lesson that transfers to this workload is blunt: a successful API response is not proof that a report completed exactly once. A worker can finish inference and lose its acknowledgment; a lease can expire while a slow request is still running; a retry can then classify the same report again. Billing is one symptom. Conflicting labels and delayed human review are worse. The invariant I use is therefore: one durable report identity, many permitted attempts, one accepted classification version. Everything else in the design follows from that. Duplicates happen. A router that inspects a prompt and immediately chooses “small” or “large” is missing the operational state around the prompt. The same moderation report deserves a different execution path when its human-review deadline is ten seconds away, the escalation queue is saturated, or the report already has an accepted result. Model choice is one scheduling decision among several. Price cannot answer that scheduling question. For this system, each queue message should carry a report ID, tenant ID, region, policy version, enqueue time, review dea

IAInfraDev
Interesse
dev.to

Defending the 16ms Frame: A Performance Budget for React Native TurboModules

I was the first engineering hire at Synapsis Medical Technologies, where I owned the architecture for a HealthTech AI platform from day zero. We were integrating real-time health data from wearables and running HIPAA-aligned RAG pipelines. During a critical phase of our scaling—where I grew the team from zero to 21 engineers in 13 months—we hit a wall. We were building a clinical dashboard that needed to stream high-frequency biometric data. On the old Bridge architecture, the serialisation overhead was killing us. Frames were dropping, the UI felt "heavy," and our clinical users—doctors who don't have patience for laggy interfaces—started complaining. We had moved to React Native 0.76 to leverage the New Architecture, but simply "using TurboModules" didn't fix the jank. The problem wasn't the technology; it was the lack of a ceiling. We were treating native calls as "free" when they were actually the most expensive part of our render loop. I had to implement a strict performance budget to stop the team from inadvertently shipping 100ms blocks to the main thread. This moved us from a vague "make it faster" mandate to a measurable 16.6ms frame budget that we defended in every PR. In the legacy architecture, the Bridge was a bottleneck because of asynchronous JSON serialisation. TurboModules solve this by using JSI (JavaScript Interface), allowing direct C++ communication. However, I’ve found that developers often treat JSI as a license to move massive amounts of data frequently. If you pass a 5MB clinical dataset over JSI every 100ms, you won't see a "Bridge Busy" warning, but you will see the JavaScript thread stall while the C++ layer handles the memory allocation. In our case, the cost was a two-day release cycle that I eventually cut to four hours by automating the validation of these boundaries. If the codegen didn't match the performance spec, the build failed. The documentation tells you how to write a Spec file and run node-modules/.bin/react-native codegen.

DevMobile
Interesse
dev.to

The iOS Screen Time API in 2026: What Apple's Docs Don't Tell You

FamilyControls, DeviceActivity and shield extensions, from shipping an app blocker. I spent August and September 2026 shipping an app blocker on iOS. It uses the Screen Time frameworks (FamilyControls, DeviceActivity, ManagedSettings and ManagedSettingsUI) from React Native, through Expo SDK 57 and the react-native-device-activity library (0.6.1). Apple's documentation tells you what each type is. It says very little about how they behave on a real phone, overnight, on iOS 26. This is the list I wish I'd had. Behavior I saw on a device but can't find documented is labeled [observed]; it may not hold on every iOS version. Items specific to the React Native library are labeled [library]; skip those if you write Swift directly. Contents The moving parts Entitlements: one per bundle ID The App Group is the only channel Tokens are opaque, and the picker Metering usage with threshold events Schedules don't start when you think stopMonitoring fires intervalDidEnd iOS 26 phantom thresholds A shield can't open your app Keeping custom extensions through prebuild Xcode 26, the Simulator, and testing And on Android Checklist Quick answers Why I needed all this "The Screen Time API" is four frameworks and, in practice, three app extensions: FamilyControls: authorization (AuthorizationCenter, with .individual for a self-control app) and the FamilyActivityPicker, which returns a FamilyActivitySelection of app, category and web-domain tokens. ManagedSettings: a ManagedSettingsStore you put those tokens into to shield them. DeviceActivity: schedules and usage-threshold events. The callbacks (intervalDidStart, intervalDidEnd, eventDidReachThreshold, and the warning variants) are delivered to a DeviceActivityMonitor extension, not to your app. ManagedSettingsUI: a ShieldConfigurationDataSource extension that styles the shield, and a ShieldActionDelegate extension that handles its buttons. The extensions are the point. My app is usually suspended or killed when a user runs out of time,

MobileDev
Interesse
dev.to

Building Anvil: code-as-action with a capability sandbox that explains its refusals.

The agent wrote import socket. Now what? Every agent framework got very good at making models write code. Almost none got good at the question that follows immediately afterwards: what is that code allowed to do to my machine? I built Anvil to answer that in the smallest honest shape I could: an agent writes a Python tool for a task over some real CSVs, the tool executes in a locked-down subprocess, and every attempt to escape is blocked and reported with the exact reason string, at the layer that About 4,900 lines later, python -m agent.verify passes 8 checks. This is the post I wanted task ──▶ CodeAgent (smolagents) ──▶ Python tool source │ ▼ 1. AST pre-check (nothing executed) 2. sandboxed subprocess (rlimits + audit hooks + kernel) 3. artifact collection (artifacts/ /) 4. trace (every refusal, with its reason) The one architectural decision that mattered: nothing untrusted runs in the server The server orchestrates. Model-authored code executes one fork away, under a FastAPI (trusted) ──▶ worker thread (trusted) ──▶ sandboxed child (UNTRUSTED) sandbox-exec -p setrlimit(CPU, AS, FSIZE, NPROC…) sys.addaudithook(policy) cwd = .anvil/runs/ / env = 9 variables, no secrets policy.py parses the candidate source and never executes it. Banned imports, process eval, dunder traversal, and any literal path that resolves outside the blocked: import socket (network denied by policy) blocked: os.fork (process creation denied by policy) blocked: write path './artifacts/../outside.txt' outside ALLOWED_WRITE_PATHS (./artifacts) Paths go through realpath, so ../ traversal and a symlink pointing out of the jail are p = '/etc/passwd'; open(p). Lesson one: an over-eager static rule is a correctness bug, not a security feature. My every call. It cheerfully rejected a raise ValueError('Required columns missing') # "blocked: read path 'Required columns missing'" Path checks now only apply to calls that actually take paths (read_csv, to_csv, savefig, open, …). The same over-reach killed

IAInfraDevSegurança
Interesse
dev.to

Multi-Tab Session Sync in a PKCE SPA with `okta-auth-js`

The problem Every tab runs its own OktaAuth instance with its own timers and its own in-memory auth state, but they all share one localStorage. Tokens become shared mutable state with concurrent writers and no transaction boundary. With tokenManager: { storage: localStorage, syncStorage: true, autoRenew: true }: a storage event listener that turns another tab's token writes into added / removed events, which refresh authState per-key expiry timers that trigger renewal automatically No mutual exclusion on renewal — every tab renews at the same time. Note expireEarlySeconds is ignored outside localhost, so it can't be used to stagger them. No coordination of the login redirect — each tab can start its own authorize round trip and return with its own single-use code. No protection of the PKCE transaction — the code_verifier sits in storage unlocked; any tab that clears storage destroys another tab's in-flight login. No leader concept — election is yours to build. Two behaviours worth knowing: authState is null on the redirect callback page (the SDK deliberately skips the state update there), and same-document writes fire no storage event — so two SDK instances in one tab never see each other. Symptom Cause invalid_grant on a refresh token two tabs redeemed the same rotating token, outside the grace window Unable to retrieve OAuth redirect params from storage a tab cleared storage during another tab's login invalid_grant on an authorization code code replayed, or exchanged after its 60-second lifetime A downstream system gets a stale token the token was read from a render-time snapshot instead of storage All tabs log out when one errors a localStorage.clear() propagated through syncStorage OAuth flow timed out silent renewal fell back to the hidden-iframe flow and nothing answered One OktaAuth instance per document. Construct once, export it. Elect a renewal leader with the Web Locks API — atomic and auto-released on crash. Re-check inside the lock before renewing; a pr

Dev
Interesse
dev.to

We deleted the pages that earned 63% of our search clicks. Here's the build check that stops it happening again

We run a small Astro site on Netlify for Stillware, a UK studio that makes pay-once apps (Zeroed, an offline budgeting app, and RankUp Chess). Over six weeks this year we made the most expensive SEO mistake a young site can make, and nothing in our build noticed. 28 August: a "content cleanup" deleted 13 blog posts that looked off-topic for a budgeting-app company. They had no redirects. Two of them were the biggest pages on the site: one had 94 Google clicks and 4,517 impressions, the other 18,137 impressions at an average position of 4.6. 29 September: an audit spotted the 404s and turned them into 410 Gone. A 410 tells Google the removal is deliberate, so it drops the URL faster. Result: the 17 deleted URLs that had ever earned an impression accounted for 63% of every Google click the site had ever had. Clicks per 28 days fell from about 65 to about 40. None of it was malicious or careless in the moment. Each step had a reason ("off-topic", "clean up 404s"). The problem was that "is this page earning search traffic?" was nobody's job at the moment of deletion, and certainly not the build's. We restored the pages at their original URLs, with the facts re-checked. Then we added scripts/verify-protected.mjs to the end of the build chain: verify-content → astro build → verify-sitemap → verify-links → verify-protected It reads two plain-text files in the repo: seo/protected-urls.txt lists every path that has had at least one impression: 16 months of Google Search Console data pulled from the API, plus pages with Bing impressions or Copilot citations from Bing Webmaster Tools. seo/approved-removals.txt holds dated exceptions in the form path | date | who | reason, written by the founder. Nothing else exempts a path. For every protected path that isn't an approved removal, the build fails if: there's no built file for it (/foo/ → dist/foo/index.html); _redirects or netlify.toml has a 301/302/307/308/404/410 rule that matches it, even one a real file currently shadows (a

Dev
Interesse
dev.to

Node.js Report Security — SMS OTP 2FA Suppression for Blocked Numbers

The session must not exist until the server has verified the code, and a suppressed phone number must never be treated as a generic delivery failure. TL;DR: for a B2B SaaS report workflow, model SMS 2FA as a transactional state machine: create a challenge, check suppression, send the OTP, verify it server-side, and issue the session only after verification. Record a stable reason when the number is blocked, the code expires, attempts are exhausted, or the provider asks you to retry later. Keep recovery codes or a self-built email-code path available because SMS cannot be the only way back into an account. This matters when a generated report is waiting as an email attachment. The email is delivery; it is not proof that the person opening the report has passed the second factor. The audit trail therefore needs to connect the account, report, challenge, suppression decision, verification result, and eventual session without confusing those separate events. I initially treated provider acceptance as the useful checkpoint. Pages from missed jobs and duplicate deliveries changed that rule: a provider request is not the business transaction. A timeout can leave the caller uncertain while the remote side has already accepted work, and a blind retry can turn that uncertainty into a duplicate message. I learned to write the invariant before writing the adapter because the adapter's happy path is the least interesting part of an authentication incident. The invariant for this flow is strict: one logical challenge can authorize at most one session, and no delivery result can authorize anything. A successful send only moves the challenge to sent. A successful server-side verification moves it to verified. Session creation consumes that verified state once. Stop there. Suppression belongs before the send, not in an exception handler after it. A previous opt-out or repeated failure should produce a support-friendly blocked_number result tied to the challenge. An unreachable desti

SegurançaDev
Interesse
dev.to

The Hackers Got Hacked. The Agent Was Loud and Messy. That Window Is Closing.

The organization that got breached on September 21 is the organization that normally finds breaches for everyone else. The Dutch Institute for Vulnerability Disclosure — DIVD — is a volunteer-run nonprofit that scans the public internet for vulnerable systems and warns the owners before anyone attacks them. In seven years it had never been on the receiving end. Then an intruder walked through two flaws in its Zammad helpdesk platform — flaws nobody had published, flaws with no vendor patch — and went from an unauthenticated web session to root, in seconds. DIVD cut off its own datacenter the next day and, with forensic help from Merlon Security, began reconstructing what had happened. The reconstruction is the interesting part. DIVD did not say the attacker was unusually quiet or unusually skilled. It said the opposite. The attack was "loud and very, very messy." The intruder re-decided its next move after every action, at machine speed, with "sloppy logic." It left natural-language comments in its scripts justifying what it was doing — arguing, in one note DIVD found, that the activity was "really not phishing." At one point its own password-spraying attack interfered with an adversary-in-the-middle attack it was simultaneously trying to run. A careful human operator does none of these things. "This is an attack we have not seen before," DIVD wrote. "Not because it's our first, but because the modus operandi indicates that this is an agentic AI-powered attack." That attribution is a first-party assessment, not settled fact — DIVD is simultaneously the victim, the bug finder, and the CVE Numbering Authority that published both flaw identifiers. No model has been named. But set the attribution question aside, because this week delivered something more useful: an answer to the question hanging over the whole agent-security story — when autonomous attackers finally arrive, what does the defender's evidence actually look like? The answer arrived from four directions at

SegurançaIA
Interesse
dev.to

Local Kubernetes Development with Tilt: Fast Inner Loop

Most Kubernetes teams debug their platform in the one place it does not run: their laptop. Production is 82% likely to be Kubernetes (CNCF Annual Cloud Native Survey, 2025, up from 66% in 2023), yet the local dev loop is often a Docker Compose file that quietly disagrees with the real cluster on namespaces, RBAC, and service discovery. We rebuilt our inner loop around a real local Kubernetes cluster driven by Tilt, and it changed how fast — and how honestly — we could iterate on a multi-service backend. This is the setup, the pattern, and the one bug it caught that a mock never would have. Key takeaways Run the actual deployment target locally: a real Kubernetes cluster on Kind reproduces namespaces, RBAC, and service discovery that Docker Compose only approximates. Tilt's Live Update syncs code into a running container "in seconds, not minutes" (tilt.dev, 2026), which is what makes a heavier local substrate viable. Ship one self-contained Tiltfile per service that runs standalone or composes into a root Tiltfile, so a new contributor can spin up just the service they touch. Test auth against the real identity stack with curl, not a mock — it caught a client-config bug that mocked auth would have hidden. Skip Bitnami: its free stable images were deprecated in 2025, so pinning to them is silent rot. Because the platform you ship to is Kubernetes, and Kubernetes has surfaces Docker Compose cannot fake. Namespaces, RBAC bindings, service accounts, DNS-based service discovery, and admission control are all first-class in a cluster and simply absent in Compose. When they break, a Compose-based local loop stays green and the bug surfaces only after you deploy — the most expensive place to find it. Kubernetes is now the default production substrate: the CNCF (2025) puts production use at 82% and cloud-native adoption at 98%. If that is your target, local-vs-prod parity is not a luxury; it is the difference between a fast inner loop and a slow, deploy-driven outer loop. The

InfraDev
Interesse
dev.to

After CVE-2026-104286: A Compromise Assessment Plan for FortiMail

After CVE-2026-104286: A Compromise Assessment Plan for FortiMail Start from the exploitation window CVE-2026-104286 is a CVSS 9.8 path traversal in Fortinet FortiMail that allows unauthenticated file writes through crafted HTTP or HTTPS requests. Fortinet reports exploitation in the wild, and CISA added the issue to its Known Exploited Vulnerabilities catalog on October 1, 2026. If the management interface was internet-reachable, assume the window applies and investigate rather than assuming safety. Review the appliance for modified binaries and unexpected library preloads. Check whether files exist in directories the application does not normally write to, and whether configuration changed outside a recorded change. Compare current state against a known-good baseline where one exists. On the network side, look for outbound connections to hosts the appliance has no business contacting. Mail gateways legitimately talk to many destinations, so baseline the expected set first. Treat it as a containment event. Isolate the appliance, preserve evidence for analysis, and rebuild from a trusted image rather than cleaning in place. Rotate credentials the appliance held, and review mail flow rules for unauthorized changes. Document what was checked and what was found. That record supports both a defensible conclusion and a faster response if a related Fortinet advisory appears later. Full remediation still means upgrading to a fixed build and migrating off the 7.0 branch, which has no named fix. Fortinet PSIRT advisory FG-IR-26-175 covering CVE-2026-104286. CISA alert, "CISA Adds One Known Exploited Vulnerability to Catalog," October 1, 2026: https://www.cisa.gov/news-events/alerts/2026/10/01/cisa-adds-one-known-exploited-vulnerability-catalog CVE.org entry: https://www.cve.org/CVERecord?id=CVE-2026-104286 securityonline.info report: https://securityonline.info/fortimail-vulnerability-cve-2026-104286/

SegurançaInfra
Interesse