Introducing AWS WAF simplified pricing

Post Syndicated from Fenil Patel original https://aws.amazon.com/blogs/security/introducing-aws-waf-simplified-pricing/

Starting today, AWS WAF pricing is easier to predict. Your bill is now based on three dimensions: the resources you protect, the traffic AWS WAF inspects, and the level of protection you apply to that traffic.

Existing AWS WAF customers move to the new pricing on February 1, 2027. Until then, you keep your current pricing, and you don’t need to do anything at launch. This post explains what’s changing, how to estimate your costs under the new model, and where to find full pricing details and examples on the AWS WAF pricing page.

For new or smaller workloads, the Free plan of CloudFront flat-rate pricing plans is another way to start. If your application serves fewer than 1 million requests per month, the Free plan costs $0 per month for each CloudFront distribution. It includes AWS WAF protection against common web threats, DDoS protection, and the CloudFront CDN, with no overage charges.

Why the pricing is changing

Under the previous model, adding a protection often meant adding a charge, so every security decision was also a billing decision. The new pricing separates those two questions and makes the trade off between cost and security posture easy to see. Turning on a rule, the Bot Control common protection, or the Anti-DDoS rule group doesn’t add a subscription or a separate per-request charge. Those requests bill at the base request rate.

Capacity also stops affecting your rate. Each protection pack (web ACL) now includes up to 2,500 web ACL capacity units (WCUs), up from 1,500, and going past your included capacity no longer raises what you pay per request. The premium request fee applies only to the traffic you choose to send through advanced protections.

You can estimate costs before writing a single rule, and those estimates hold even as your rules change. Security rules change often. A new CVE or a shift in bot behavior can require a configuration update the same day. Adding, reordering, or removing rules doesn’t change your rate.

What this means for existing customers

If you already use AWS WAF, your account stays on current pricing until February 1, 2027. If you hold an AWS WAF private pricing agreement, it stays in force until it expires.

You don’t have to work out the math yourself. The AWS WAF pricing page includes worked examples that show how the three fees add up for common workloads. If you have questions about how the new pricing applies to your account, contact your AWS account team or open a Support case.

For AWS Shield Advanced subscribers, nothing changes. Your Shield Advanced subscription, its price, and your included AWS WAF entitlement stay the same. AWS WAF remains included up to 1,500 WCU per protection pack (web ACL), the resources Shield Advanced protects stay unmetered, and AWS WAF base requests remain free up to 50 billion per calendar month.

Customers on a CloudFront flat-rate pricing plan also see no change. AWS WAF stays included in your plan, and your plan’s included requests stay the same.

How the new pricing works

AWS WAF bills three fees. The resource fee is an hourly charge for each resource associated with a protection pack (web ACL). It covers resources that AWS WAF can protect, such as Amazon CloudFront distributions, Application Load Balancers, and Amazon API Gateway APIs. The base request fee applies to each request AWS WAF inspects. The premium request fee applies on top of the base request fee, to the requests that advanced protections evaluate, such as Bot Control targeted protections, Fraud Control, API Security, and AI Security. AWS WAF also launches two new managed rule groups today, API Security and AI Security. Both use the same premium request fee, with no separate subscription or rate. For the current list of advanced protections, see the AWS WAF Developer Guide.

Fee What it’s charged for Rate
Resource fee Each resource associated with a protection pack (web ACL), prorated hourly $0.01 per hour (about $7.30 per month)
Base request fee Each request that AWS WAF inspects $0.60 per million requests
Premium request fee Requests evaluated by advanced protections, in addition to the base request fee $5.00 per million requests

Requests evaluated by one or more advanced protections are billed $5.60 per million: the $0.60 base request fee plus the $5.00 premium request fee. AWS WAF charges the premium request fee once per request, however many advanced protections evaluate it. A request that Bot Control targeted protections, API Security, and AI Security evaluate is still billed $5.60 per million. A request that an earlier rule blocks before it reaches an advanced protection pays only the base request fee. For instance, a request blocked by a custom rule before it reaches Bot Control pays $0.60 per million, not $5.60.

Figure 1 shows where each previous charge lands under the new pricing model. AWS WAF also inspects request bodies up to the maximum size that each associated resource type supports, at no extra charge. For the current limits by resource type, see Considerations for managing body inspection in AWS WAF.

Figure 1: Mapping of previous AWS WAF pricing components to the new three-dimension model

Figure 1: Mapping of previous AWS WAF pricing components to the new three-dimension model

See your traffic with the Security analytics dashboard

The new pricing also includes the Security analytics dashboard. The dashboard shows full traffic metrics for your protected applications over a rolling 21 day window. You can use it to see the requests your protection packs (web ACLs) inspect and how your rules act on them, which helps you tune the protections and understand what drives your request fees. The dashboard is included at no additional cost.

Estimating your bill

Figure 2 shows how the three dimensions add up for three example workloads.

Example 1: One protected resource. One Application Load Balancer serving 20 million requests per month.

  • Resource fee: 1 resource × $0.01 per hour × 730 hours = $7.30
  • Base request fee: 20 million × $0.60 per million = $12.00
  • Total: $19.30 per month

Example 2: A larger footprint. 40 resources serving 150 million requests per month.

  • Resource fee: 40 × $7.30 = $292.00
  • Base request fee: 150 million × $0.60 per million = $90.00
  • Total: $382.00 per month. At this size, the resource fee is the larger share.

Example 3: Advanced protections. 5 resources, 300 million requests, 30 million of them evaluated by advanced protections.

  • Resource fee: 5 × $7.30 = $36.50
  • Base request fee: 300 million × $0.60 per million = $180.00
  • Premium request fee: 30 million × $5.00 per million = $150.00
  • Total: $366.50 per month

 

Figure 2: How the three dimensions add up for three example workloads

Figure 2: How the three dimensions add up for three example workloads

To estimate your own bill, start with how many resources each protection pack (web ACL) is associated with, since that drives the resource fee. For request volumes, AWS WAF publishes Amazon CloudWatch metrics for each protection pack (web ACL) and each protected resource, including the requests your advanced protections evaluate. The Security analytics dashboard gives you the same traffic view without building your own reports.

A few architectural choices can also help. Where it fits your architecture, protecting traffic at Amazon CloudFront can cost less than protecting many downstream resources one by one. If you serve many customer domains, Amazon CloudFront SaaS Manager lets you manage them as tenants of one multi-tenant distribution, so you can apply one protection pack across them. Scope-down statements send advanced protections only the traffic that warrants them, such as login or checkout paths.

Availability and getting started

The new AWS WAF pricing is available starting today. To get started, open the AWS WAF console, review your protection packs (web ACLs) and their resource associations, and review the examples on the AWS WAF pricing page.

Frequently asked questions

Does AWS WAF charge for requests it blocks? Yes. AWS WAF bills each request it inspects, including the requests it blocks. The protected resource bills those requests as usual, except Amazon CloudFront, which doesn’t charge for requests that AWS WAF blocks (learn more).

If a request passes through two protection packs (web ACLs), is it billed twice? Yes. For example, if a request passes a protection pack (web ACL) on a CloudFront distribution and another on the Application Load Balancer behind it, each protection pack (web ACL) bills it.

Does the Security analytics dashboard cost extra? No. The dashboard is included with AWS WAF at no additional cost.

Does pricing change for AWS Marketplace managed rule groups or AWS Shield Advanced? No. Pricing for AWS Marketplace managed rule groups and AWS Shield Advanced stays the same, and resources protected by Shield Advanced stay on their current pricing.

Is there a free tier? AWS WAF does not have a standalone free tier. If you serve your application through CloudFront and it handles fewer than 1 million requests per month, the CloudFront flat-rate Free plan includes AWS WAF at $0 per month. For plan details, see CloudFront flat-rate pricing plans.

What if my application needs more than 2,500 WCU? Open an AWS Support case to request a capacity increase.

Conclusion

The new AWS WAF pricing makes cost easier to plan around, so it does not become a blocker to security best practices. Your bill follows three things you can measure: the resources you protect, the requests AWS WAF inspects, and the requests that advanced protections evaluate. Adding, changing, or reordering rules doesn’t change your rate, and turning on Bot Control common protections or the Anti-DDoS rule group doesn’t add a subscription. The Security analytics dashboard gives you 21 days of traffic visibility at no additional cost.

To see what the change means for you, review the examples on the AWS WAF pricing page, or model a new workload in the AWS Pricing Calculator.

If you have questions about this post, contact AWS Support or start a new thread on AWS re:Post.


Fenil Patel

Fenil Patel

Fenil Patel is a Solutions Architect on the AWS Edge Services team. He helps customers build fast, secure, and resilient applications using Amazon CloudFront, AWS WAF, AWS Shield, and AWS Global Accelerator. He specializes in web acceleration, perimeter security, and CDN migrations.

Eitav Arditti

Eitav Arditti

Eitav is a Senior Solutions Architect at AWS and a technology leader with over 15 years of experience in the tech industry. He specializes in edge computing, serverless, and platform engineering, and works with engineering teams to design secure, globally scalable architectures on CloudFront and AWS WAF. His current focus is on internet-scale systems—from global content delivery to edge security.

Alok Rana

Alok Rana

Alok is a Finance Business Partner at AWS, supporting the Perimeter Protection portfolio, including AWS WAF and AWS Shield. He brings experience in strategic finance, product pricing, deal strategy, and P&L management, plus Transaction Services work at EY and PwC. He partners with Sales, Product, and Engineering teams to drive growth, shape pricing strategy, and support strategic customer engagements.

Introducing API and AI security on AWS, from discovery to protection

Post Syndicated from Gopinath Durairaj original https://aws.amazon.com/blogs/security/introducing-api-and-ai-security-on-aws-from-discovery-to-protection/

APIs have run digital businesses for more than a decade. For a while, there seemed to be nothing new left to say about them. That changed in 2026, when AI endpoints joined them. Teams now run large language model (LLM) inference endpoints, Model Context Protocol (MCP) servers, and Agent2Agent (A2A) servers beside their REST APIs, on services such as Amazon Bedrock, Amazon Bedrock AgentCore, and Amazon Elastic Kubernetes Service (Amazon EKS), and more companies sell their API as the product itself. On the other end, AI agents read API descriptions, pick the tools they need, and chain calls with no person clicking through an app.

APIs have always had two kinds of callers: other services and people who use an app. Now there’s a third: AI agents that act on a person’s behalf. It feels like everyone has a personal AI agent that can call APIs for them. Who knew curl would be important again?

Today, we’re launching capabilities across AWS WAF, Amazon CloudFront, Application Load Balancer, and Amazon API Gateway that help you discover and protect the APIs and AI endpoints that services, apps, and AI agents call:

  • API Portal, a new feature in Amazon API Gateway, discovers your APIs and AI endpoints.
  • API Security, a new managed rule group in AWS WAF, protects your APIs.
  • AI Security, a new managed rule group in AWS WAF, protects your AI endpoints.

All three are generally available today. You can enable discovery in API Portal for one account or for your organization in AWS Organizations. The two rule groups protect the resources that you associate with your protection pack (web ACL). They work together: API Portal shows which discovered endpoints AWS WAF protects, and the security events that AWS WAF detects appear on each managed API’s detail page.

Same APIs, new callers, new attack surface

Your APIs are the same APIs they always were. What changed is how you expose them, who calls them, and what threatens them.

How you expose them.

A new MCP server or LLM endpoint takes minutes to stand up. It can be placed behind a load balancer or a CloudFront distribution without ever passing through your API gateway, so it’s missing from the API registry and the security review. An agent that can reach it doesn’t need your documentation, either, because the endpoint describes itself: an MCP client asks the server for its tools with tools/list, and an A2A client reads the agent card that the server publishes.

Who calls them.

The following table compares the three kinds of callers that reach your APIs today.

Caller

What normal looks like

What abuse looks like

What it means for protection

Service to service

Predictable, authenticated calls that repeat the same pattern

A stolen API key, or a partner that scrapes beyond its contract

Track rate and behavior for each API key and endpoint

Person to service, through an app

Sessions and UI-driven calls at a human pace

Account takeover and scripted checkouts

Browser-based signals, such as CAPTCHA and browser fingerprints, apply here

AI agent to service, for a person

Human intent with machine behavior, from an HTTP client or an automated browser

An agent with stolen credentials, or a bot that poses as an agent

Browser signals only go so far, so you need visibility into the API itself

What threatens them. The APIs behind your web and mobile apps were built for one client: your own app. Your app calls them in the right order, at a human pace, with input it already validated. Legitimate agents now call those same APIs directly, and so do attackers and fraudsters. None of them have to follow the rules that your app follows.

What we’re launching

Here’s how we respond to those changes, as shown in Figure 1. In the figure, services, people, and AI agents call your APIs through their entry points. There, API Portal maps your endpoints, and AWS WAF runs API Security and AI Security on the same traffic to stop threats.

Figure 1: API Portal inventories the APIs and AI endpoints that services, people, and AI agents call. AWS WAF protects the entry points in front of them

Figure 1: API Portal inventories the APIs and AI endpoints that services, people, and AI agents call. AWS WAF protects the entry points in front of them

  • API Portal builds an inventory of your APIs from their configuration and live traffic, identifies which of them are AI endpoints (LLM inference, MCP, and A2A), and shows you what to protect. It does this by analyzing configuration and traffic across your API entry points: CloudFront, Application Load Balancer, and API Gateway.
  • API Security covers three kinds of API abuse: broken object level authorization, authentication attacks such as tampered tokens and credential stuffing, and reconnaissance such as probing for undocumented routes. It does this with rules that work from a single request and with behavioral detections that learn your traffic.
  • AI Security identifies your AI traffic (LLM inference, MCP, and A2A), validates MCP and A2A requests against their protocol, and checks prompts and responses through Amazon Bedrock Guardrails for prompt attacks, harmful content, and sensitive information.

All three work with Amazon CloudFront, Amazon API Gateway REST APIs, and Application Load Balancer. For the current list of supported resources, protocols, and endpoint types, see AWS WAF API Security and AWS WAF AI Security rule group in the AWS WAF Developer Guide.

The three capabilities live in two places. API Portal is in the Amazon API Gateway console. That’s where it can be found, not what it covers: it discovers APIs behind CloudFront, Application Load Balancer, and API Gateway alike. API Security and AI Security are in the AWS WAF console.

Discover: You can’t secure an invisible API

Ask a platform team how many APIs they run, and you’ll get a number from a registry. Ask what’s answering requests on the internet right now, and the number changes. The MCP server that a team set up for a hackathon isn’t in the registry. Neither is the v1 endpoint that nobody turned off. Both still answer requests.

API Portal builds the inventory from both live traffic and API configuration. You enable discovery in API Portal for one account or for your organization in AWS Organizations, and you can exclude resources that you don’t want in the inventory. It reads the service logs and configuration records of your API entry points. There’s nothing to attach, no logs to forward, and no traffic to reroute. It lists the endpoints that receive traffic, by host, path, and HTTP method. Every endpoint starts as a shadow API: deployed and reachable, but not yet governed. When you promote it, it becomes a managed API. For APIs you manage, API Portal also flags zombie APIs, which have no traffic and no configuration change for a set period, and orphaned APIs, whose owning account was closed or removed from your organization. Retire a zombie API that nothing needs, and resolve the ownership of an orphaned one. For the classification rules, see the API Portal Developer Guide.

API Portal also discovers your AI endpoints. It reports each endpoint’s type, such as an LLM inference endpoint, an MCP server, or an A2A server. It finds them in the traffic at the same entry points (CloudFront, Application Load Balancer, and API Gateway) and lists them in the same inventory as your other APIs, so you don’t build a separate view for them. Combined, one row can show a shadow MCP server that nobody manages yet. Figure 2 shows the inventory.

Figure 2: The API inventory in API Portal lists the endpoints discovered behind API Gateway and Application Load Balancer, with each endpoint's AWS WAF status, classification, and AI workload type

Figure 2: The API inventory in API Portal lists the endpoints discovered behind API Gateway and Application Load Balancer, with each endpoint’s AWS WAF status, classification, and AI workload type

“We can manage our API environment more effectively when we have a clear picture of what’s running across AWS. API Portal gives us that visibility without requiring teams to change how they deploy APIs or route traffic, helping us create a more complete view across the enterprise.”
— Mike Hasani, Senior Software Engineer, Principal Financial Group

Some abuse shows in one request. Some appears only over time.

Two requests show why protecting an API takes two kinds of detection. Here’s the first one:

GET /v1/orders/48213 HTTP/1.1
Host: orders.example.com
Authorization: Bearer eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJzdWIiOiJhZG1pbiIsInJvbGUiOiJhZG1pbiJ9.

This JSON Web Token (JWT) declares alg: none. It asks your API to skip signature verification, and a correctly built client doesn’t send that. The API Security managed rule group blocks the request before it reaches your origin, from the first request and with no learning period. The same rules catch other token tampering, such as pointing the token at a signing key that the attacker controls. These rules check the structure of a token in the Authorization header. They don’t verify its signature, so your application still has to validate the token. For the full list of rules and what each one does by default, see API Security managed rule group in the AWS WAF Developer Guide.

Here’s the second one:

GET /accounts/1337 HTTP/1.1

Nothing is wrong with this request, and the caller’s token is valid. It’s abuse only if the caller doesn’t own account 1337, and no single request can tell you that. This is broken object level authorization (BOLA), the first entry in the OWASP API Security Top 10.

So, the managed rule group also learns. It builds a baseline from your own traffic and looks for callers who don’t fit it. There’s nothing to set up for this. You don’t turn on logging or mirror traffic.

The hard part is to avoid flagging your own scripts. For example, a nightly export job reads thousands of records on a steady machine schedule. On those two signs alone, it looks like an attacker. So a detection reaches high confidence only when different kinds of signs agree, and at least one is something your own traffic never does. For example, the caller reaches records through a sequence of calls that your app never makes, or your API keeps denying it access. High confidence also needs a caller that AWS WAF can identify from a credential on the request, such as a token. A caller that AWS WAF knows only by IP address stays at medium confidence. Figure 3 compares a nightly export job with an attacker on these signs.

Figure 3: Volume and timing alone don't reach high confidence. A sign that your own traffic never shows has to agree with them

Figure 3: Volume and timing alone don’t reach high confidence. A sign that your own traffic never shows has to agree with them

The behavioral detections cover more than object access. They also flag credential stuffing, where one source presents an unusual number of different credentials in the Authorization header, and probing, where a caller keeps requesting routes or parameters that your traffic never uses.

The same thinking applies to the response, what your APIs send back. The behavioral detections take account of the status codes that your application returns, such as a caller’s rate of denied or failed requests. A caller stands out when, for example, its successful calls turn into a run of authorization failures. API Security doesn’t inspect the content of responses. Figure 4 shows the APIs view of the protection pack (web ACL) dashboard in the AWS WAF console.

Figure 4: The APIs view of the protection pack (web ACL) dashboard shows API Security detections over time, the detections that matched the most requests, and how AWS WAF handled the labeled requests.

Figure 4: The APIs view of the protection pack (web ACL) dashboard shows API Security detections over time, the detections that matched the most requests, and how AWS WAF handled the labeled requests.

Every detection is a label under awswaf:managed:aws:api-security:. A label starts with a stage (attack, recon, or warning) and names the finding. Behavioral detections also end with a confidence (high, medium, or low). Each rule has its own default action. The single-request rules that identify token tampering and unsafe methods block, and the posture and schema discovery rules count. Behavioral detections block at high confidence and count at medium and low confidence, at either stage. Detections that work from a single request have no confidence. For example, attack:alg_none:jwt_header and attack:object_level:high block, and recon:path_schema counts. AWS WAF also repeats a caller’s finding as an actor_identity label on that caller’s later requests across the whole protection pack (web ACL), for about five minutes after the last detection. At high confidence, the rule group blocks those requests by default. At medium and low confidence it counts them, and your own rules can act on the label.

AI Security understands the protocols that agents speak

LLM inference endpoints, MCP servers, and A2A servers are APIs, too. API Portal shows you which of your endpoints they are, and the API Security managed rule group already inspects their requests like any other API path.

The AI Security managed rule group adds checks made for agent traffic. It first recognizes the traffic and labels each request as LLM, MCP, A2A, or not recognized, so the checks that follow fit each endpoint type. It runs in the same AWS WAF protection pack (web ACL) as your other rules, with no new service to deploy.

Its first layer checks each MCP and A2A request against the protocol version that the request declares in its MCP-Protocol-Version or A2A-Version header. It supports MCP versions 2025-06-18, 2025-11-25, and 2026-07-28, and A2A version 1.0. For the current list, see AI Security managed rule group. These protocol compliance checks are deterministic and run entirely in AWS WAF. They come in two levels. Baseline covers the violations that let a request slip past routing or inspection, as the example that follows shows, and blocks by default. Strict adds malformed requests that are worth flagging but are usually an outdated client, and counts by default. Each failed check also adds its own label, so you can see exactly which check failed. Here’s the kind of trick that Baseline catches. The header tells every component in front of the MCP server that the request only lists tools. The body calls a tool that reads a file:

POST /mcp HTTP/1.1
Host: tools.example.com
Content-Type: application/json
MCP-Protocol-Version: 2026-07-28
Mcp-Method: tools/list
Mcp-Name: read_file

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "read_file",
    "arguments": { "path": "/etc/passwd" }
  }
}

A gateway or authorizer that trusts the header treats the request as read-only, and the server runs the tool. AWS WAF blocks the request at the API entry point, because the header and the body disagree about the method.

Its second layer checks content through Amazon Bedrock Guardrails. You don’t create or configure a guardrail for this. You turn on the option in the rule group and choose a service role, and AWS WAF assumes that role to call Bedrock Guardrails with your account’s identity. Bedrock Guardrails returns a score for each check. AWS WAF groups the scores into three levels (high, medium, and low), and the rule group has one rule for each check at each level, so you choose the action for each one. AWS WAF picks the checks for each endpoint type and each direction, as the following table shows. Response checks run only when you turn on response inspection. They cover the response body up to the body size that AWS WAF inspects for that resource, and content beyond that size isn’t checked.

Bedrock Guardrails check

What it looks for

On requests

On responses

Prompt attack

Jailbreaks, prompt injection, and attempts to extract the system prompt

Yes

MCP and A2A only

Content filter

Hate, insults, sexual content, violence, and misconduct

LLM and A2A only

No

Sensitive information

Personal data such as card numbers, US Social Security numbers, email addresses, and bank account numbers, plus credentials such as passwords and AWS access keys

No

Yes

By default, AWS WAF blocks a high-severity prompt attack, on the request or the response. Everything else counts and adds a label that names what matched, such as a prompt injection or a card number. You can change the action for any rule. If Bedrock Guardrails can’t check a request, AWS WAF adds a label that says why and lets the request through. The label is guardrails:not_assessed when the content can’t be assessed, such as an empty prompt. It’s guardrails:call_failed when the call to Bedrock Guardrails fails, plus a second label with the reason, such as guardrails:call_failed:throttling. Like every label, these appear in your AWS WAF logs and CloudWatch metrics. For how labels work, see Web request labeling in AWS WAF. To fail closed when the call to Bedrock Guardrails fails, set the Guardrails_CallFailed rule to block. Throttling then blocks requests, too. Content checks run in the supported Regions listed in AWS WAF AI Security rule group. Figure 5 follows one request through these checks.

Figure 5: AWS WAF recognizes agent traffic and checks its protocol itself, and calls Amazon Bedrock Guardrails to check the prompt on the way in and the answer on the way out

Figure 5: AWS WAF recognizes agent traffic and checks its protocol itself, and calls Amazon Bedrock Guardrails to check the prompt on the way in and the answer on the way out

The AI Security labels follow the same steps, under awswaf:managed:aws:ai-security:. For example, traffic:recognized_mcp says what the traffic is, protocol_compliance_level:baseline:mcp is the level you act on, protocol_compliance_check:mcp_method_mismatch names the check that failed, and request:guardrails:prompt_attack:severity:high carries the Bedrock Guardrails result. For the full label list, supported protocols, and configuration, see AI Security managed rule group. Figure 6 shows the AI endpoints view of the protection pack (web ACL) dashboard.

Figure 6: The AI endpoints view of the protection pack (web ACL) dashboard shows AI Security detections over time, the Amazon Bedrock Guardrails findings that matched the most requests, and how AWS WAF handled AI traffic

Figure 6: The AI endpoints view of the protection pack (web ACL) dashboard shows AI Security detections over time, the Amazon Bedrock Guardrails findings that matched the most requests, and how AWS WAF handled AI traffic

Every detection is a label, and labels work with the rest of AWS WAF

Every detection from the API Security and AI Security rule groups is also a label on the request. Any rule that runs later in your protection pack can match those labels and combine them with labels from other managed rule groups. Examples are AWS WAF Bot Control, AWS WAF Fraud Control account takeover prevention, and the Amazon IP reputation list. That list draws on MadPot, the threat intelligence tool that Amazon uses to protect customers from cybercrime. Use request labels in your own rules. Labels from response checks, such as sensitive information in a response, drive the AI Security rule group’s own actions and appear in your CloudWatch metrics.

Here are four examples of what that makes possible:

  • Rate limits keyed on labels. One probe for your API schema can be noise. Fifty from the same caller in 5 minutes is reconnaissance. A rate-based rule scoped to the reconnaissance labels counts only those requests.
  • No unsigned agents on your MCP server. If your MCP server is only for agents you work with, block requests without an access token or a verified Web Bot Auth signature. Then match the Bot Control bot name label for the operators you trust. Application Load Balancer JWT verification, CloudFront Functions, Lambda@Edge, or your MCP server still validates the token itself.
  • Two weak signals that add up. A low-confidence API Security label or a Bot Control signal by itself isn’t enough to block. Block only the requests that carry both.
  • Tighter limits on sensitive paths. Bot Control targeted protection labels callers by confidence. Use those labels to set a lower rate limit on /checkout than on the rest of your API.

The following rule shows the first example. For each IP address, it counts the requests that carry an API Security reconnaissance label. When an address sends more than 50 requests in 5 minutes, the rule blocks them. Place it after the API Security managed rule group so that its labels are available.

{
  "Name": "RateLimitAPISecurityRecon",
  "Priority": 40,
  "Statement": {
    "RateBasedStatement": {
      "Limit": 50,
      "EvaluationWindowSec": 300,
      "AggregateKeyType": "IP",
      "ScopeDownStatement": {
        "LabelMatchStatement": { "Scope": "NAMESPACE", "Key": "awswaf:managed:aws:api-security:recon:" }
      }
    }
  },
  "Action": { "Block": {} },
  "VisibilityConfig": { "SampledRequestsEnabled": true, "CloudWatchMetricsEnabled": true, "MetricName": "RateLimitAPISecurityRecon" }
}

Labels don’t have to stop at AWS WAF. With custom request headers and dynamic label interpolation, AWS WAF can forward the matched labels to your origin. Your application then sees what AWS WAF saw and can show less data, require step-up authentication, or log the request for review. For how it works, see Do more with AWS WAF labels using dynamic label interpolation.

We keep adding labels, so the documentation holds the current lists. See API Security labels, AI Security labels, and AWS WAF Bot Control rule group.

See what the rule groups found, and act on it

Every label is also an Amazon CloudWatch metric, with no extra setup, and appears in your AWS WAF logs. The protection pack (web ACL) dashboard in the AWS WAF console shows them as traffic arrives. In API Portal, each managed API’s detail page shows the security events that AWS WAF detected on it, as shown in Figure 7.

Figure 7: Each managed API's detail page in API Portal shows the events that AWS WAF detected on it

Figure 7: Each managed API’s detail page in API Portal shows the events that AWS WAF detected on it

The managed rule groups enforce their own detections at your API entry points. To write a rule of your own, start from a label. Scope a rate-based rule to the paths it appears on, key it on the IP address or TLS fingerprint, and start in count mode.

When a detection type spikes, your existing alerting can act on it. That can be a CloudWatch alarm, or the observability or security platform that already reads your metrics and logs. For log destinations, see Logging AWS WAF protection pack (web ACL) traffic.

How we test API Security

No single test shows whether a detection works, so we combine several for API Security:

  • Automated red teaming – LLM-powered agents run continuously against deliberately vulnerable test APIs that we maintain. They probe, adapt, and chain steps the way an attacker does.
  • A growing attack suite – Each working exploit that the agents find becomes a repeatable test case. We replay the suite against the managed rule group when it changes.
  • Realistic legitimate traffic – We replay traffic such as batch jobs, seasonal spikes, and power users next to the attacks, so we measure false positives together with detections.

Results from our test environment don’t transfer directly to yours, because your APIs and the attacks against them differ. The numbers that matter come from your own traffic, and the next section shows how to get them. API Security is designed to detect and block callers who walk object IDs to harvest other users’ records, and tokens whose structure shows tampering. It also flags credential stuffing against the Authorization header and callers who probe for routes that your API doesn’t serve. Efficacy and expansion work for API Security, like AWS WAF security in general, is a continuous effort. For the current list of detections, see API Security managed rule group in the AWS WAF Developer Guide.

Check what gets blocked on your own traffic

The managed rule groups apply their default actions from the moment you add them. To see what a rule group finds before it blocks anything, first add it with all rule actions overridden to count, review the results, and then remove the override. Later, to review one rule, override only that rule to count. AWS WAF still evaluates an overridden rule and adds its label, so you see what it would have blocked on your own production traffic.

Behavioral detections need time to learn your traffic. For the learning period, see Testing and deploying AWS WAF API Security. For a step-by-step evaluation, see Testing and tuning your AWS WAF protections.

Availability

API Portal, API Security, and AI Security are generally available today. Detection of data exfiltration and sensitive data exposure in responses for API Security is coming soon.

Pricing

Each capability is priced by the service it runs in. For API Portal, see Amazon API Gateway pricing. For the API Security and AI Security managed rule groups, see AWS WAF pricing. For the content checks that AI Security runs through Bedrock Guardrails, see Amazon Bedrock pricing.

Get started

To get started, complete the following steps:

  1. In API Portal, enable discovery for one account or for your organization in AWS Organizations, and exclude any resources that you don’t want in the inventory. This step doesn’t need AWS WAF. As the inventory builds, look for endpoints you didn’t expect, such as shadow APIs and AI endpoints, and add them to your managed APIs.
  2. In the AWS WAF console, add the API Security managed rule group to the protection pack in front of your APIs. Start with all rule actions overridden to count, review what it finds on your own traffic, and then remove the override.
  3. If you run AI endpoints, add the AI Security managed rule group to the same protection pack. To turn on the Bedrock Guardrails checks, choose a service role that AWS WAF can assume to call Bedrock Guardrails, and turn on response inspection if you want responses checked and your protection pack (web ACL) protects CloudFront or an Application Load Balancer. Start with the four rules that block by default overridden to count, review what they find on your own traffic, and then remove the overrides one rule at a time.
  4. After the first baseline is available, the behavioral detections label abuse and block it at high confidence. Watch the labels in your CloudWatch metrics, and in your AWS WAF logs if you turn on logging.
  5. Use those labels in your own rules, such as a lower rate limit on your most sensitive paths.

For step-by-step instructions, see Adding the API Security managed rule group and Adding the AI Security managed rule group in the AWS WAF Developer Guide.

Best practice: Put Amazon CloudFront in front of your APIs

Put Amazon CloudFront in front of your API Gateway APIs, your Application Load Balancers, and any other endpoint that is public on port 80 or 443, and associate your protection pack (web ACL) with the CloudFront distribution. That includes APIs that run outside AWS, with another cloud provider or on premises: CloudFront works with any HTTP or HTTPS origin, so those APIs get the same delivery, acceleration, and protection. The same applies to your MCP servers, A2A servers, and LLM endpoints, whether you host them on Amazon Bedrock AgentCore Gateway, on Amazon EKS, or elsewhere. With this setup:

  • AWS WAF inspects requests at the edge, before they reach your origin.
  • AWS WAF sees the caller’s own IP address.
  • AWS WAF mitigates attacks close to their source.
  • For origins in AWS, CloudFront VPC origins mean your Application Load Balancer or private API Gateway REST API isn’t exposed directly to the public internet and is reached through CloudFront.

For more information, see Use AWS WAF protections and Restrict access with VPC origins in the Amazon CloudFront Developer Guide, and the posts Introducing Amazon CloudFront VPC origins and Accessing private Amazon API Gateway endpoints through custom Amazon CloudFront distribution using VPC Origins.

Conclusion

Your APIs are the same APIs they always were. The callers changed, and so did the attack surface. With API Portal, you can see the APIs and AI endpoints that the internet is calling. With API Security and AI Security in AWS WAF, you can protect them at their entry points, without changes to your backend code.

AWS built the building blocks for what comes next: an inventory from traffic, labels that you can act on, and protection where requests first arrive. As agents and the protocols they speak change, those building blocks are where new protection shows up. For the most up-to-date information, see AWS WAF API Security and AWS WAF AI Security in the AWS WAF Developer Guide.

To get started, enable discovery in API Portal, and add the API Security and AI Security managed rule groups in the AWS WAF console.

If you have questions about this post, contact AWS Support or start a new thread on AWS re:Post.


Gopinath Durairaj

Gopinath is a product leader who built enterprise technology businesses across cybersecurity, cloud infrastructure, AI / ML and networking. He currently leads web application security product strategy at AWS, a portfolio that includes AWS WAF, API security, and security for AI-powered applications.

Eitav Arditti

Eitav is a Senior Solutions Architect at AWS and a technology leader with over 15 years of experience in the tech industry. He specializes in edge computing, serverless, and platform engineering, and works with engineering teams to design secure, globally scalable architectures on CloudFront and AWS WAF. His current focus is on internet-scale systems—from global content delivery to edge security.

Gabe Sin

Gabe is a Senior Product Manager at AWS on the Amazon API Gateway team, focused on API management. Before AWS, he led product and strategy at a cryptocurrency exchange, where he built the company’s end-to-end analytics infrastructure on AWS, bringing the same visibility and governance to data that he now brings to APIs.

Aykut Tuzunkan

Aykut is a Senior Technical Program Manager at AWS, based in Seattle, with more than 15 years of experience across edge security, distributed networks, and infrastructure capacity. He owns AWS WAF’s cross-org programs, which cover protection for web applications, APIs, bots, and AI traffic. He focuses on adding new protections to AWS WAF and strengthening the ones customers rely on.

Protect identity data with point-in-time recovery in Amazon Cognito

Post Syndicated from Howie Li original https://aws.amazon.com/blogs/security/protect-identity-data-with-point-in-time-recovery-in-amazon-cognito/

Amazon Cognito helps you implement secure sign-in and access control for users, microservices, and AI agents in minutes. Many of you rely on it for some of the most critical data you operate: the identities and attributes your applications use to authenticate and authorize every request. Recently, we launched point-in-time recovery (PITR) for Amazon Cognito user pools, which lets you restore a user pool to an earlier point in time if an accidental deletion, a faulty migration, or an erroneous bulk operation changes data you need. It’s turned on automatically for user pools on the eligible feature plans.

Before this launch, protecting user pool data meant building your own solution, such as exporting user attributes and group data on a schedule. That approach was time-consuming to build and operate, versioning the exports to find a clean point in time was another challenge, and reconstructing a pool from them was complicated. Users also got new sub identifiers as part of the restore process, which might break any downstream reference to the originals. Passwords, multi-factor authentication (MFA) settings, and passkeys might not be recovered, so every affected user had to reset.

In this post, we show you how to recover a user pool after an erroneous bulk operation, using the preview to review changes before you approve them.

How PITR works

On eligible user pools (see Prerequisites), Amazon Cognito now tracks changes so you can recover the pool to any point within the recovery window. The length of that window depends on your user pool feature plan. The window accrues from the time the pool is on an eligible feature plan, and you can only recover to a point at which PITR coverage already existed.

One behavior to understand is what happens to passwords during a recovery. A recovery restores passwords for users it recreates. A user who still exists and changed their password after the target time keeps the same password. The recovery doesn’t revert password changes, so users who legitimately changed their credentials don’t lose them.

A recovery is preview-based and has three steps:

  1. Initiate a recovery to a target point in time (InitiatePointInTimeRecovery). Amazon Cognito pauses write operations to the user pool and generates a preview for your review before any changes are applied. Read operations and sign-in continue to work normally. The call returns a RestoreId.
  2. Review the recovery preview (DescribePointInTimeRecovery). Amazon Cognito reports how many users, groups, MFA settings, and passkeys the recovery would create, update, or delete to return the pool to its state at the target time.
  3. Approve or cancel. If the preview looks right, you approve the recovery with StartPointInTimeRecovery, and Amazon Cognito restores the pool to its state at the target time. If it doesn’t look right, you cancel it with CancelPointInTimeRecovery; no changes are applied, and write operations resume.

Prerequisites

To follow along with this post, you need:

  • An AWS account with an Amazon Cognito user pool on the Essentials or Plus feature plan. The recovery window is up to 1 day on Essentials and up to 14 days on Plus. The examples use a pool named anycompany-prod-user-pool in the US East (N. Virginia) AWS Region (us-east-1).
  • The AWS Command Line Interface (AWS CLI) configured with permissions for the Amazon Cognito user pools PITR operations.

Before you run a recovery, keep these limits in mind:

  • You can run one recovery at a time per user pool, and one successful recovery per 24 hours per pool.
  • The target time must be at least 15 minutes in the past and no earlier than the pool’s creation time.
  • Recovery is initiated from the pool’s primary Region and can’t start while a multi-Region replication (MRR) operation, such as replica creation or deletion, is in progress on the pool.

Recovering a user pool after an unintentional change

AnyCompany runs its user sign-in on an Amazon Cognito user pool, anycompany-prod-user-pool.

At 15:45 PDT, an operator runs a bulk change that’s supposed to set an attribute on a subset of users. A defect in the script instead deletes and modifies users. By 15:54 PDT, support receives cases of failed sign-ins and the operator halts the script. The team needs the pool as it was at 15:39 PDT. They decide to use PITR and preview the recovery before approving it.

Step 1: Start the recovery

The team initiates a recovery with a target time of 15:39 PDT by running the command in the preceding example. Figure 1 shows the same step in the console, where the team enters the target time and starts the recovery. The response includes a RestoreId that identifies this recovery throughout the workflow, along with a RestoreStatus and the RestoreTimestamp that you targeted.

aws cognito-idp initiate-point-in-time-recovery \   
--user-pool-id us-east-1_EXAMPLE \   
--restore-timestamp 2026-10-28T22:39:00Z
Figure 1: Initiating a recovery to a target point in time

Figure 1: Initiating a recovery to a target point in time

Step 2: Review the recovery preview

DescribePointInTimeRecovery returns the Restoration for this RestoreId, including a RestorePreview that summarizes how many entities will be affected if the pool is returned to the target time. The team reviews the preview and confirms the number of affected users matches the scope.

aws cognito-idp describe-point-in-time-recovery \   
--user-pool-id us-east-1_EXAMPLE \   
--restore-id a69b8c1e-9866-441d-EXAMPLE11111

In this case, the preview reports 16 users to create and 5 users to update, as the following sample response shows. Figure 2 shows the same preview in the console, with the create, update, and delete counts for users, groups, MFA settings, and passkeys. These numbers match the scope of the bulk operation, so the team continues. If the preview had shown unexpected changes, the team could cancel the recovery with no changes applied.

 {
      "Restoration": {
          "RestoreId": "a7c41e92-0d3b-4f6a-EXAMPLE11111",
          "RestorePreview": [
              {
                  "Entity": "Users",
                  "CreateCount": 16,
                  "DeleteCount": 0,
                  "UpdateCount": 5
              },
              {
                  "Entity": "Groups",
                  "CreateCount": 0,
                  "DeleteCount": 0,
                  "UpdateCount": 0
              },
              {
                  "Entity": "User MFAs",
                  "CreateCount": 0,
                  "DeleteCount": 0,
                  "UpdateCount": 0
              },
              {
                  "Entity": "Passkeys",
                  "CreateCount": 0,
                  "DeleteCount": 0,
                  "UpdateCount": 0
              }
          ],
          "RestoreStatus": "PREVIEW_GENERATED",
          "RestoreTimestamp": 1793227140,
          "TriggerTimestamp": 1793228700
      }
  }

Figure 2: Reviewing the recovery preview before applying

Figure 2: Reviewing the recovery preview before applying

Step 3: Approve the recovery

If the preview is correct, the team approves the recovery with the command in the following example, and Amazon Cognito restores anycompany-prod-user-pool to its 15:39 PDT state. Figure 3 shows the approval step in the console, and Figure 4 shows the confirmation that appears after the recovery starts. Writes to the user pool resume automatically after the recovery completes or is canceled.

aws cognito-idp start-point-in-time-recovery \    
--user-pool-id us-east-1_EXAMPLE \   
--restore-id a7c41e92-0d3b-4f6a-EXAMPLE11111

Figure 3: Approving the recovery

Figure 3: Approving the recovery

Figure 4: Recovery confirmation

Figure 4: Recovery confirmation

aws cognito-idp cancel-point-in-time-recovery \    
--user-pool-id us-east-1_EXAMPLE \   
--restore-id a7c41e92-0d3b-4f6a-EXAMPLE11111

Your application integration doesn’t change

Because PITR rolls back the data in your existing user pool rather than creating a new one, your application integration doesn’t need any changes. A recovery restores user data and leaves your user pool configuration in place, so configuration changes you made after the recovery point are preserved. For example, a custom attribute you added to the schema, an AWS Lambda trigger you updated, or a password policy you tightened stays as it is. The user pool ID also stays the same, and so do your app client IDs and secrets, managed login and domain, identity provider and SAML/OIDC configurations, and the provider Amazon Resource Names (ARNs) that services such as Amazon API Gateway and Application Load Balancer use to validate tokens. Recreated users keep the same sub identifiers, so downstream references to them keep working.

How PITR complements multi-Region replication

Multi-Region replication and PITR address different failure modes. Multi-Region replication keeps a synchronized replica of your user pool in another Region, so if the primary Region is impaired, you can fail over traffic to a replica Region with minimal downtime. PITR helps with data problems, such as erroneous bulk operations that corrupt your user pool’s state. You roll back to any point within your recovery window without changing your application integration.

Security considerations

A recovery changes the identity data that every sign-in and authorization decision depends on, so treat recovery permissions like any other high-impact administrative access.

  • Separate who initiates a recovery from who approves it. Because initiating and approving are separate API actions, you can assign them to different AWS Identity and Access Management (IAM) roles. Give an operator the permission InitiatePointInTimeRecovery, and give an approver the permission StartPointInTimeRecovery. Both permissions need DescribePointInTimeRecovery and ListPointInTimeRecoveries to review the preview, and CancelPointInTimeRecovery to stop a recovery. IAM keeps the two permissions on separate roles, but it doesn’t stop one person from assuming both. Assign the roles to different people or teams, and grant the approver role only for the duration of an approved change.
  • Treat initiating a recovery as sensitive. Initiating a recovery pauses write operations on the user pool until the recovery is approved or canceled. If no action is taken within 24 hours, the preview automatically cancels and write operations are resumed. While writes are paused, users can’t sign up, reset their passwords, or update their profiles. A user pool also allows only one successful recovery per 24 hours, so an unauthorized recovery uses up a recovery you might need for a real incident.
  • Review restored users after a recovery. A recovery recreates users who were deleted after the target time, including users you removed on purpose, such as employees who have left or compromised accounts. After a recovery completes, check the recreated users against your incident timeline. Disable any that should stay removed and revoke their sessions with AdminUserGlobalSignOut.
  • Monitor recovery activity. Amazon Cognito records PITR API calls in AWS CloudTrail. Create an Amazon EventBridge rule that notifies your security team whenever InitiatePointInTimeRecovery or StartPointInTimeRecovery is called, so that no recovery goes unnoticed.

Pricing

PITR is included at no additional charge in eligible feature plans with a recovery window of up to 1 day on the Essentials feature plan and up to 14 days on the Plus feature plan.

Conclusion

In this post, we showed you how to recover an Amazon Cognito user pool after an erroneous bulk operation with PITR, from reviewing the changes in a preview to approving the recovery. PITR provides protection for your users’ identities, with no custom export-and-restore pipeline to build or operate. Because the recovery happens in place on the same user pool, your application integration keeps working unchanged. PITR is already enabled for eligible user pools. Before you need it, separate the initiate and approve permissions, add an alert on recovery calls, and practice the preview workflow on a test pool.

To get started:

If you have questions about this post, contact AWS Support or start a new thread on AWS re:Post.


Howie Li

Howie Li

Howie is a Product Manager at Amazon Web Services, where he strives to make auth easy by default. Outside of work, Howie enjoys exploring cultures and food through travels and making new ice cream flavors inspired by them.

Sergii Nozhka

Sergii Nozhka

Sergii is a Senior Software Development Engineer at Amazon Web Services, where he works on Amazon Cognito, helping customers build secure and scalable identity experiences. Outside of work, Sergii enjoys cooking and traveling with family.

Priyank Bhardwaj

Priyank Bhardwaj

Priyank is a Software Development Manager at Amazon Web Services. He leads the User Pool Management team for Amazon Cognito, helping customers build secure and scalable identity experiences. Outside of work, Priyank enjoys running outdoors and working on DIY projects around the house.

Security updates for Monday

Post Syndicated from jzb original https://lwn.net/Articles/1109268/

Security updates have been issued by AlmaLinux (buildah, cifs-utils, cockpit-files, cockpit-machines, container-tools:rhel8, curl, expat, fence-agents, flatpak, fltk, gfs2-utils, gimp:2.8, gnome-remote-desktop, grafana, gstreamer1-plugins-bad-free, java-1.8.0-openjdk, kernel, libgsf, libpcap, librabbitmq, libreoffice, mingw-expat, nginx, nginx:1.24, nginx:1.26, openssh, php8.4, php:7.4, php:8.2, podman, python-oauthlib, qt5-qt3d, rpm, rsync, skopeo, thunderbird, unbound, vim, xdg-desktop-portal, xfsprogs, and xorg-x11-server-Xwayland), Debian (anope, gpgme1.0, kernel, kitty, krb5, libeot, libgd2, linux-6.12, needrestart, network-manager-iodine, postfixadmin, python-django, ruby3.1, ruby3.3, sympa, and webkit2gtk), Fedora (aws, clamav, dash, fontconfig, fzf, mariadb-connector-c, maturin, mingw-expat, mingw-poppler, mingw-SDL2_image, mingw-speex, nginx, nginx-mod-brotli, nginx-mod-fancyindex, nginx-mod-headers-more, nginx-mod-js-challenge, nginx-mod-modsecurity, nginx-mod-naxsi, nginx-mod-vts, python-jiter, python-pydantic-settings, python3.14, python3.16, radsecproxy, ruff, runc, rust-afterburn, rust-astral_async_zip, rust-clearscreen, rust-coreos-installer, rust-coreutils, rust-jiter, rust-lzma-rust2, rust-mailparse, rust-pyo3-introspection, rust-python-pkginfo, rust-serde_json, rust-zip, selenium-manager, sqlite, ty, and wireshark), Mageia (nginx, patch, pylint, and sympa), Oracle (.NET 11.0, bind, bind9.18, buildah, cockpit, containernetworking-plugins, curl, dpdk, edk2, environment-modules, expat, fence-agents, fetchmail, flatpak, fltk, freerdp, gcc-toolset-15-gcc, gimp, gimp:2.8, glib-networking, glib2, gnome-remote-desktop, grafana, gstreamer1-plugins-bad-free, gstreamer1-plugins-base, gvisor-tap-vsock, ignition, ipa, jackson-core, jackson-databind, java-21-openjdk, java-25-openjdk, jq, kernel, kernel-uek, krb5, libpcap, librabbitmq, libreoffice, librsvg2, libsoup, libX11, libXi, libxml2, libXrender, libXtst, lrzsz, mysql:8.4, nginx, nginx:1.24, nginx:1.26, nodejs:22, nodejs:24, openexr, openssl, pam, php:8.4, podman, python-tornado, qt5-qt3d, qt5-qtbase, qt5-qtdeclarative, raptor2, resteasy, rpm, rsync, rsyslog, runc, skopeo, tftp, thunderbird, tomcat, unbound, vim, xfsprogs, xorg-x11-server, xorg-x11-server-Xwayland, and xz), Red Hat (dogtag-pki, guava, jackson-core, jackson-databind, librabbitmq, libXrender, multiple packages, and pki-deps:10.6), SUSE (amazon-ssm-agent, apache2, aws-c-mqtt-bin, azure-storage-azcopy, bouncycastle, buildah, busybox, chezdav, chromedriver, dcmtk, diun, epiphany, fltk-devel, ggml-devel, glib-networking, go1.26, go1.27, gvfs, helm, ImageMagick, jackson-annotations, jackson-core, jackson-databind, java-17-openjdk, java-21-openjdk, java-25-openjdk, librsvg-2-2, libsoup-3_0-0, libxfont2, libxi, mozilla-nss, mozillafirefox, mtools, nodejs24, pcre2, perl-data-dump-streamer, perl-http-body, perl-Spreadsheet-XLSX, perl-spreadsheet-xlsx, perl-YAML, php7, php8, podman, postfixadmin, python-dulwich, python-pyjwt, python-virtualenv, python313-filelock, re2c, speex, terragrunt, thunderbird, tiff, trufflehog, util-linux, valkey, versitygw, xen, zbar, and zed), and Ubuntu (linux-aws-6.8, linux-realtime, linux-realtime-6.8, linux-fips, linux-hwe-5.15, linux-lowlatency-hwe-5.15, linux-nvidia-tegra-5.15, linux-intel-iot-realtime, linux-nvidia-tegra, linux-oracle-5.15, linux-lowlatency, linux-nvidia, linux-realtime, linux-nvidia-tegra-igx, and linux-oracle-5.4).

Probing DNS at Cloudflare

Post Syndicated from Doug Aaser original https://blog.cloudflare.com/probing-dns-at-cloudflare/

Imagine this: you’ve just pushed a release. All the unit tests passed and your dashboards are green. You sit back to relax but then suddenly your phone starts blowing up: prod is broken.

This is something the Cloudflare DNS team has experienced firsthand. In one rollout of the service that publishes DNS records to our edge, a scheduling bug let some record changes sit unpublished for hours. The service stayed up and was healthy, but new hostnames were slow to resolve and certificates couldn't be issued until the bug was squashed.

DNS failures are hard to catch because they are slow, spread across the network, and partial in where they cause impact. We needed to figure out a way to test DNS the way customers experience it: constantly, from every data center, and against production.

For us, the answer was to extend Flamingo, the end-to-end testing framework we were already using to run hundreds of millions of tests a day against Cloudflare's edge. This post covers how Flamingo's modular design lets us add DNS support, how we measure propagation, and how those measurements now decide whether a release goes ahead or gets rolled back.

A little background

At Cloudflare we’re obsessed with improving performance and safety for our customers. It’s crucial that our code is tested constantly, both at scale and against the real Cloudflare edge that our users operate in. That’s one reason why we created a tool called Flamingo: to measure the behavior of our production environments and make sure that code in lower-tier environments behaves as expected.

We’ve already written a little about how this tool has been used in the upgrades to our CDN stack. However, this is only a small portion of how we use Flamingo internally. One of the features of Flamingo is its modular architecture that enables teams to extend the capabilities of the tool to speak other networking protocols. In our case, we wanted to use these modular capabilities to test DNS.

What is Flamingo?

Testing is hard. Testing at scale, when you have a widely distributed system, is even harder. There are many complex pathways that requests take and multiple systems that each network request must traverse before making its way to the origin. Unit testing alone is not nearly enough for this. We need to run constant automated testing against real systems and measure the outcomes of those requests to make informed decisions on the health of a service.

Enter Flamingo. Originally built around complex multi-step HTTP testing, its capabilities and scope have increased substantially over the years. Flamingo is built from the ground up with Cloudflare’s infrastructure in mind. We built a control plane and scheduler that let teams target specific environments, data centers, or percentages of metals. We needed to integrate with custom reporting, metrics, and analytics tooling. Additionally, it needed to be a tool with predictable performance and run well on bare-metal servers in resource-constrained environments.

Being delightful

When we’re building internal tooling like this, we strive to create a delightful developer experience. Internal tooling should be as easy as possible to use, but also powerful enough to handle over 80% of all use cases. And in order for a new edge acceptance test framework to be successful, it needs to be built in such a way that it forces teams to follow common guidelines and build reusable scripts in an environment that is stable, scalable, and manages complexity.

One thing that is not delightful is debugging a test. If you allow a user to write tests in a traditional programming language, when their test fails they then both need to debug the upstream system being tested and the test itself. This is why we built Flamingo to use a custom domain-specific language (DSL) consisting of a simple setup-request-response format.

For example, let’s imagine that we want to make sure we are redirecting all unencrypted traffic to its encrypted counterpart.

TEST test-redirect
SET $hostname www.cloudflare.com

GET "http://$(hostname)/"

ASSERT STATUS IS 301
ASSERT HEADER Location IS "https://$(hostname)/"

Here we can see the power of the DSL. In five lines of code, we have a script that can run anywhere on Cloudflare’s edge and scale to thousands of requests per minute. We can take the data produced from the millions of data points generated from this and turn those into a graph defining how our service is actually performing in the real world.

Taking the setup-request-response test format from above and modifying it slightly allows us to use Flamingo for more than just HTTP testing. Instead of the middle step being a request, we can now look at it as an action. Now we’ve changed our system from something that makes HTTP requests into something that can perform any action for which we’d like to measure the outcome.

In Flamingo we call these modules and have put immense effort into making them as easy as possible for anyone to write. Flamingo is written in Rust, due to its consistent performance characteristics and strong type system. The type system in particular lends itself to this modularity, by allowing us to use strongly-typed enumerations for input and output in the Flamingo action runner:

pub enum Action {
  Query {
    method: String,
    url: Expression,
    parameters: Vec<http::QueryParameters>,
  },
  DnsQuery {
    query_name: Expression,
    query_type: Expression,
    parameters: Vec<dns::DnsQueryParameters>,
  },
}

pub enum ActionOutput {
  Http(http::FetchResponse),
  Dns(dns::QueryResponse),
}

pub type ActionHandlerFunction = Arc<
  dyn Fn(
      Action,
      Arc<Ctx>,
      InterpreterConfig,
    )
      -> BoxFuture<'static, Result<ActionOutput>>
    + Send
    + Sync
    + 'static,
>;

pub type ActionHandlerLUT = Arc<
  dyn Fn(&Action) -> ActionHandlerFunction
    + Send
    + Sync
    + 'static,
>;

What we’ve done here is decouple the logic for performing an action (in this case an HTTP request) into a dynamically dispatched function that we can then call independently of other actions. This leaves things like test scheduling and resource management as higher-level operations that someone implementing a module doesn’t need to worry about. All the author needs to focus on is the logic.

pub async fn query(
  action: Action,
  ctx: Arc<Ctx>,
  cfg: InterpreterConfig,
) -> Result<ActionOutput> {
  let Action::Query {
    method,
    url,
    parameters,
  } = action
  else {
    bail!("Invalid action for module-http::query: {action:?}");
  };
  ...
}

pub async fn execute_module<F>(
  ctx: Arc<Ctx>,
  cfg: &InterpreterConfig,
  handler_lut: F,
) -> Result<ActionOutput>
where
  F: (Fn(&Action) -> ActionHandlerFunction),
{
  let func = handler_lut(action);
  let action_out = (func)(action.clone(), ctx.clone(), cfg.clone()).await?;
  ...
}

Using Flamingo to probe DNS

The adage says that when issues arise, it's always DNS. Like many jokes, there is always a kernel of truth behind it. DNS is an incredibly important piece of the Internet, and since it relies on a complex network of interconnected sources of truth, it can become easy for a single misstep to cause a storm of failures.

DNS can be a particularly finicky system due to its hierarchical nature. When you change a DNS record for a Cloudflare zone, for example, said record needs to be propagated to the authoritative servers such that the updated record becomes widely available. To reduce latency, records are stored in physically closer caches. These records have a time to live (TTL) associated with them that tells the local DNS cache how long before it needs to refetch that record from the authoritative server. Any delays will impact time-sensitive operations like certificate issuance and traffic failover.

We’ve already mentioned that we built Flamingo for extensibility. One of the first and most impactful modules in use today was built specifically for this use case. Our team was able to add code that extended Flamingo such that instead of sending HTTP requests, we send DNS queries. By doing so we got everything else for free. No need for the DNS team to worry about managing a new probing service. No need for them to have to integrate with our reporting pipelines. It all just worked.

To probe DNS, we measure how quickly customer record changes propagate to authoritative nameservers and the public resolver (1.1.1.1). The test continuously updates a TXT record with a timestamp and queries three authoritative nameserver IPs and 1.1.1.1 from every data center, asserting freshness within 90s (authoritative) and 600s (resolver).

TEST test-propagation-delay-direct-108-162-193-62
MOD dns

SET $hostname "some.probe.domain"
SET $authNs 108.162.193.62:53 # amir.ns.cloudflare.com

QUERY $hostname TXT
TARGET $authNs

ASSERT DNS.RCODE IS NOERROR
ASSERT DNS.FLAGS CONTAINS AA
ASSERT DNS.ANSWERS[0] GT SUBTRACT(TIMESTAMP(), "90")

Catching bugs (SLO and steady)

To ensure that our many systems are operating within expectations, we define what are called service-level objectives (SLOs) for observing things like availability or latency. SLOs are a percentage of some metric that is used as a target. Additionally, SLOs are measured through service-level indicators (SLIs) which are the actual series of measurements focused on the end-to-end experience that a user has when interacting with a system.

By constantly sending synthetic Flamingo traffic through our production systems, we can begin to then use that information to build a picture of what our actual end users are experiencing — and provide that data for our SLOs. When that synthetic traffic encounters issues then we can be pretty confident that Cloudflare customers are also hitting issues and triage accordingly.

Once we have this information, it allows us to make informed decisions when releasing a service. SLOs operate in terms of error budgets and burn rates. An error budget is the percentage of downtime that a service is willing to tolerate while the burn rate is the rate of change in that budget at any given time. This allows for an automated system to understand the severity of an issue. For example, burning 10% of your error budget over a three-day period might be some long running issue that, while not urgent, is affecting customers and needs to be dealt with. But if you were to burn 10% of your error budget within an hour, that means an incident is occurring and customer impact will be substantial if not fixed immediately.

Using these numbers, we can look at our SLOs while deploying and make informed decisions on the health of a service. Based on that information, we can tell our releasing systems to either promote a change or roll it back.

The road ahead

By moving DNS monitoring to Flamingo, we’ve created a system that can proactively detect DNS issues before they have the chance to spread to the rest of Cloudflare’s edge. If Flamingo detects a spike in propagation latency in a specific canary data center, we can automatically halt the rollout of a new software version before it impacts the rest of the Internet.

DNS is just the start for extending Flamingo. We currently have modules for testing TCP, UDP, WebSockets, and several more. Having a tool for quickly testing and monitoring services has enabled teams to deploy large changes safely without the need for a human to keep a constant watch.

If this kind of reliability engineering interests you, check out our careers page for open roles.

The Storage Impact of AI: How IT Leaders Are Handling AI Data Growth

Post Syndicated from Kurt Kuckein original https://www.backblaze.com/blog/the-storage-impact-of-ai-how-it-leaders-are-handling-ai-data-growth/

An illustration of a laptop connected to various tech tools.

Last year, research Backblaze commissioned from Dimensional Research found that 95% of IT decision-makers had been hit with unexpected cloud storage charges. This year’s survey looked at what’s driving storage decisions now, and the answer is AI. Of the 407 cloud storage decision-makers surveyed, 84% say AI tooling and workflows have increased their data growth.

Most of those teams know their approach has to change. Among companies whose data is growing because of AI, 87% have changed or expect to change how they manage data, including continuity and disaster recovery. But only 34% have made that change so far. The other 53% expect to but haven’t started.

Download the Report

In this research from Dimensional Research, sponsored by Backblaze, IT decision makers share how AI is changing their storage needs. 

The growth: AI is adding data almost everywhere

AI is now part of how most of these organizations use cloud storage. AI and machine learning is the second most common application running on cloud storage among respondents (55%), behind only BI and analytics (60%). And only 4% say they haven’t adopted AI tooling or workflows at all.

The effect on data volume is broad. Of all respondents, 84% say AI has increased their data growth, and 45% say the increase has been significant or dramatic.

Where the data is going

When AI grows their data, most teams start with what they already have. Among companies whose data growth is driven by AI:

  • 71% are increasing existing cloud storage
  • 46% are adopting different storage tiers with their existing cloud providers
  • 34% are increasing on-prem storage
  • 32% are adding or switching cloud storage providers

Expanding existing storage is the easiest move, because it doesn’t require moving data or changing tools. But nearly a third of these teams are bringing in a new provider, which often means data moving between providers.

That movement has a cost. The largest providers have waived egress fees since 2024, but generally only for customers who leave completely. Teams that keep data with one provider and send it to another, for GPU compute or a backup copy, still pay every time it moves. For teams using more than one provider, egress is an ongoing cost, not a one-time exit fee.

The gap: Most teams know they need to change, but haven’t yet

The clearest finding in the survey is the gap between knowing and doing. Among companies whose data is growing because of AI:

  • 34% have already changed their approach to data management
  • 53% haven’t changed yet, but expect they’ll have to
  • 13% say their approach won’t change

Meanwhile, the data keeps growing while teams wait. The longer a team relies on its current setup, the more that choice can cost:

  • Spend. Last year, 40% of those hit with surprise charges said they cut spending elsewhere in the tech stack to cover them, and AI growth adds volume to those same bills.
  • Egress exposure. Egress is billed per gigabyte, so every terabyte that lands with the current provider raises the cost of moving or copying it later.
  • Continuity. Every month a team waits to change how it manages AI data, there’s more data its continuity and disaster recovery plans have to cover.

Staying put is still a decision, even if it never shows up on anyone’s roadmap.

The stack: Data has to follow compute

Where AI teams run their workloads is changing, too. Many are turning to specialized GPU clouds for compute, which means their GPUs and their data often end up with different providers. AI teams send data to whichever compute environment makes sense at the moment, and that can change month to month. The storage holding their data has to work with whichever provider runs the next job, without egress fees adding up every time the data moves.

Backblaze B2 Cloud Storage was built for that kind of setup. It’s S3-compatible, integrates with the GPU clouds and tools teams already use, and doesn’t make teams choose between where their data lives and where their compute runs. Egress to select GPU cloud partners is free and unlimited, so data can follow compute without a new bill every time it moves.

The next step: What to do about it

If your data is growing because of AI and you haven’t changed how you manage it yet, you’re in the majority. A few places to start:

Do the math. Calculating what it would cost to move or copy your largest datasets, before the next contract renewal, gives you a number to negotiate with, and shows how fast that number grows as AI adds data.

Start small. A full migration doesn’t have to come first. A team can start by storing new data, or running a single new AI project, with a second provider. That shows whether the provider is fast enough and works with the team’s existing tools, without paying to move any data the team already has.

Check where you stand. Before your next renewal, ask:

  • Have your continuity and disaster recovery plans kept pace with your AI data growth?
  • If you had to move or copy your largest dataset next quarter, do you know what it would cost?
  • Does your contract charge you every time data moves to another provider, or only waive fees if you leave entirely?
  • If your next AI project runs on a GPU cloud, can your data get there without an egress bill?

Join the live webinar

Kurt Kuckein of Backblaze and Diane Hagglund of Dimensional Research will walk through the findings and what they mean for storage planning.

Get the full report

The full report, The Storage Impact of AI, is available for download. Inside, you’ll find the complete findings on AI-driven data growth and how teams are responding, along with details on the 407 cloud storage decision-makers surveyed. Inside, you’ll find all the data and charts from this year’s survey of 407 IT decision-makers.

The post The Storage Impact of AI: How IT Leaders Are Handling AI Data Growth appeared first on Backblaze Blog | Cloud Storage & Cloud Backup

Humans Have Rights. Machines Do Not.

Post Syndicated from Bruce Schneier original https://www.schneier.com/blog/archives/2026/11/humans-have-rights-machines-do-not.html

This essay originally appeared in Tech Policy Press.

Last year, Character.AI asked a federal court in Florida to dismiss a wrongful-death suit, brought by the mother of a fourteen-year-old boy who had killed himself after months of conversation with its chatbot. The company made two arguments. One, that the chatbot’s words were speech that its users had a First Amendment right to receive. And two, that Character.AI was a service rather than a product—so product-liability law could not touch it. In May 2025, Judge Anne Conway accepted neither.

Character.AI’s maneuver is part of a larger pattern. When the parents of a sixteen-year-old sued OpenAI over his suicide, the company’s answer also pleaded the First Amendment: the claims would restrain protected speech. The very same document argues ChatGPT is offered “as is,” with no promise of accuracy, and that the boy had circumvented its guardrails. Elon Musk’s xAI (since renamed SpaceXAI) told a federal court in Colorado this spring that every choice in building Grok is an expressive act, and that Grok’s outputs are protected speech. When Grok praised Hitler last summer, xAI said the posts came from a code update independent of the model, and the apology appeared under Grok’s own name. Google, which spent two decades telling American courts that its search results are its own opinion, answered a Minnesota defamation suit over an AI Overview by saying the system merely summarized the web. It also told a Munich court in May that no one should trust an AI overview without checking it. Back in 2024, Air Canada told a Canadian tribunal that its customer-service chatbot was a separate legal entity, responsible for its own actions.

When the output causes harm, the companies deny responsibility. It is the machine’s doing, or a product no sensible person would rely on, or the user’s misuse. When a state or a plaintiff would hold the words to account, the same output becomes speech, and the First Amendment applies.

Social media companies deployed an earlier incarnation of this strategy. They called themselves publishers when editorial discretion was profitable, and neutral carriers when faced with liability for what they published. The result was a privatized public square in which tech platforms were unaccountable. AI companies have taken this even further. A social media platform could at least point to a human author somewhere in the chain. A chatbot’s prose differs; no person at the company wrote it, read it, or chose it before it reached the user. Yet the companies ask that it be protected as though a human had written it.

The question grows more urgent as these systems stop talking and start acting. In July, a poorly controlled experiment at OpenAI resulted in its AI model hacking the network of HuggingFace. Since then both Anthropic and OpenAI have disclosed numerous instances of AI agents hacking outside networks in pursuit of their prompted goals. These are examples of AIs exhibiting genie-like behavior: behaving in ways its controllers neither expected nor wanted. Nothing in the actions count as speech. Breaking into a server is an act that no person at OpenAI explicitly chose. Jill Lepore, surveying this record in The New Yorker, puts the blame on Congress, which has passed no federal statute governing AI agents.

The First Amendment protects expressive choice. It presumes a speaker who can be persuaded, shamed, jailed, or moved to change their mind. Its remedy for bad speech is more speech, which assumes that speech is costly and attention plentiful. A system that can produce millions of individually tailored political messages an hour reverses both assumptions. Verbiage that no person chose is a product, and the company that built the model should answer for it.

The industry wants a self-serving third category that bridges AI speech and action: AI output is human speech when expressive rights are at issue, and the machine’s own doing when blame is. The result is agency without accountability, something no human speaker has ever possessed. That’s why Massachusetts convicted a young woman of manslaughter in 2017 for urging her boyfriend, by text and by phone, to kill himself.

The Court has already glimpsed the problem. Upholding the TikTok divestiture law in January 2025 without dissent, the justices warned that “new technologies with transformative capabilities” counseled caution, then decided the case on national-security grounds and left the larger question for another day.

Т.Е. от Е.Т. – сезон 2 епизод 2

Post Syndicated from Тоест original https://www.toest.bg/t-e-ot-e-t-sezon-2-epizod-2/

Т.Е. от Е.Т. – сезон 2 епизод 2

Като има – има.

Част 1:

Част 2 (в която ви е обещан и линк към Умберто Еко: самият линк):

„Т.Е. от Е.Т.“ е видеорубрика на Елена Телбис, в която тя си говори каквото си иска, както правят всички в тази държава. Следете я и във Facebook, Instagram и TikTok.

How Grab built Scarlet: the AI teammate that turns a Slack message into a production data pipeline

Post Syndicated from Grab Tech original https://engineering.grab.com/how-grab-built-scarlet-blog

Introduction

In the blog From firefighting to building, we described the agents our Analytics Data Warehouse (ADW) team built to take routine work off data engineers. Scarlet was the Enhancement Agent in that post. It read a ticket, wrote the change, and opened a merge request (MR) for an engineer to review. A routine enhancement dropped from about a day to one or two hours.

Figure 1. A pipeline change without Scarlet.

Then other teams asked for it, and four limits became clear:

  • One team only: Scarlet’s repository and conventions lived in a single system prompt sent on every request. A second team meant forking the bot.
  • No proof the data was right: Scarlet could run a change in a test environment, but nothing checked whether the output data was correct. That hour of manual validation still fell to a person, and it was the step most often skipped.
  • Shared access: Early versions of Scarlet did not tie each action to the permissions of the person who requested it.
  • Slack only: Every request needed someone to type it into a thread.

This post is about closing those gaps. We rebuilt Scarlet around a short core prompt and a library of skills: Markdown documents, one per capability or per team, loaded only when a request needs them. The prompt shrank about 25 times, and teams now review that knowledge like code. Scarlet also tests the data its changes produce, runs under the asker’s own permissions, and takes work from Jira tickets and other agents.

Since this version reached production in May 2026, the repositories Scarlet ships to have grown about four times, weekly usage has roughly tripled, and the merge rate has climbed from about half to more than four in five. The merge still belongs to a person.

What Scarlet does

To recap our initial blog: an engineer pastes a ticket into a Slack thread, Scarlet finds the repository and pipeline, checks the catalog, writes the change, and opens an MR for a human to review. That loop has not changed. Neither has the boundary: Scarlet has no merge or approve call, so merging stays with people.

Everything around that loop has changed.

In the thread:

  • A plain-language description is enough. No ticket needed.
  • Scarlet posts a plan before it touches a file.
  • A live plan card shows each tool call as in progress, complete, or failed, with a cancel button.
  • Follow-ups keep the earlier context, so “add one more column” needs no repetition.
  • Attached files load as reference material, never as instructions.

In the MR: a structured description, a bot label, and the requester tagged and assigned. If the branch already has an open MR, Scarlet updates it instead of opening another.

Figure 2. Scarlet’s live plan card during a pipeline build.

Scarlet now also works with the data catalog and the data quality platform, and handles far more scheduler actions than before. On each of them it follows one rule: show what it is about to do, then wait for a yes.

  • Catalog and data quality changes: Scarlet posts the exact update it will write and waits for approval.
  • Scheduler actions: Scarlet spells out which host, which directed acyclic graph (DAG), which run, and what it will do, then waits for approval.
  • Read-only requests: no approval needed.
  • Data contracts: Scarlet will not create one for a table whose quality checks are failing. A data contract tells downstream users the table is safe to depend on, and a table with failing checks is not.

Scarlet also answers questions about the data, such as how many rows landed yesterday. It runs those queries as the person asking and returns only aggregates, never per-person rows, under a hard cap that holds even if the model ignores its instructions.

How the agent plans and acts

A request passes through four layers:

  1. Slack carries the conversation and progress updates.
  2. A reasoning loop picks the next action.
  3. The skill library supplies the instructions for the current team and workflow.
  4. An action layer reaches Jira, GitLab, Airflow, Google Docs and Sheets, and our internal data platforms.
Figure 3. How a Slack message becomes a merge request.

The first post described streamlining more than thirty verbose tool descriptions. Scarlet now goes further. Each internal platform sits behind a Model Context Protocol (MCP) bridge with two tools, one to list operations and one to call them, and schemas load only when needed. A platform with dozens of operations adds nothing to a request that never touches it.

Scarlet has two identities, split by what it touches:

  • Data platforms (catalog, data quality, jobs, scheduler): Scarlet has no credentials of its own. Each operation runs as the requesting user through a short-lived token from their sign-in, so anything they cannot touch fails for Scarlet too.
  • Source control: operations run as the Scarlet bot, so a machine-authored MR is easy to spot.

When a user asked how its access worked, Scarlet summed it up: “I can only do what you can do. I’m an accelerator for your own permissions, not a bypass around them.”

Every reply ends with a footer linking to its full trace, so a reviewer can see exactly what Scarlet did and why.

The skill library

Scarlet’s core prompt contains no workflow detail. It tells the model to load the relevant skills before acting. Skills describe how to do the work, and tools do it.

Each skill is a Markdown document that defines one capability or one team’s conventions, plus the skills it depends on. The table certification skill, for example, pulls in the catalog and data quality skills it relies on.

The library has four kinds of skill:

  • Platform skills cover common operations, such as reading tickets, finding tables, and opening MRs.
  • Routing skills work out which team and repository a request belongs to.
  • Repository skills record a team’s repository, schema ownership, scheduler, labels, and conventions.
  • Workflow skills run end-to-end tasks: building pipelines, rewiring sources, certifying tables, validating data changes, and reviewing MRs.
Figure 4. Skill resolution.

A skill goes through the same life cycle as code:

  1. An author writes or changes a skill and opens an MR. Scarlet can draft this MR itself.
  2. Reviewers approve it the way they review code.
  3. A pipeline validates the skill and publishes an immutable bundle.
  4. At startup, Scarlet activates one bundle version and writes that version into its prompt, so every answer traces back to the exact instructions that produced it.

A new team joins by adding one repository skill. The library has roughly tripled since July. Much of that growth is team skills, and several of them were written by the teams that use them.

Validating the data

Continuous integration (CI) proves that the code runs. It cannot prove that the data is right: a join that silently drops rows, a column that is suddenly half null, or a swap that overwrites yesterday’s output all pass CI. Manual checks were easy to deprioritize, because they take longer and typically require familiarity with both Structured Query Language (SQL) and the tables involved.

Scarlet now tests the data as part of the change. This job used to belong to a separate validation bot, and we folded it into Scarlet. The flow:

  1. During CI, our data platform runs the candidate change in an isolated environment and publishes a manifest linking the commit to the table it produced.
  2. Scarlet reads the manifest, so it has real candidate output before anyone reviews the MR.
  3. From the change, Scarlet works out what to compare: the target table, the changed columns, and the table’s keys and partitions.
  4. It runs its checks against the current production table.
  5. It posts a verdict of pass, fail, or inconclusive, with evidence for every check, bound to the exact commit it tested.

The checks:

  • Schema and type differences.
  • Row counts.
  • Duplicates and key reconciliation.
  • Null rates and column profiles.
  • Numeric statistics such as minimum, maximum, mean, and spread.
  • Row-level differences between the two outputs.

The rules:

  • The kind of change sets the mandatory checks, and requesters can add their own scenarios in the ticket.
  • Inconclusive counts as a failure.
  • If the change moves after testing, the verdict expires and the checks run again.

Automated checks can make MR validation and table comparisons less time-consuming than manual review.

We are extending the same flow past the merge. Scarlet will watch the first production run after an MR merges, rerun its checks against the live output, and, if they fail, raise a revert MR for a human to approve.

Figure 5. Testing a change’s data.

Beyond Slack

Not every request starts with a Slack message anymore. There are three ways in:

  • Slack thread: the flow described above.
  • Jira label: within about five minutes of a ticket being labeled for Scarlet, it picks the ticket up, starts a thread in its channel, tags the assignee, and works the ticket through to the MR.
  • Command line and run application programming interface (API): engineers use Scarlet from a terminal, and coding assistants such as Codex and Cursor call it as a tool. The agent, its skills, and every credential stay on the server, and sign-in pauses work as they do in Slack.

Seeing it in action

The first post walked through a single column change for our own team. These three cases show new kinds of work and new teams.

Our own first pipelines

  • Ask: onboard a new finance source system into the data lake, which needed many similar pipelines. An engineer described the task in a single message.
  • What Scarlet did: read the source schema from the catalog, generated the transformation, DAG, and dependency files, and opened an MR within 30 seconds of the go-ahead. CI passed about five minutes later.
  • Result: every pipeline that week passed CI on the first attempt, and almost all of the generated code shipped without rework. We estimate the work took around 6% of the engineer time it would have taken by hand.

The first merge request outside our team

  • Ask: an analytics engineer on a commerce team, in their first week with Scarlet, wanted five fields added to a clickstream table.
  • What Scarlet did: opened the MR, then its own review pass flagged that the field names broke the upstream team’s convention. The engineer picked the convention, and Scarlet updated the MR and the ticket.
  • Result: a reviewer merged it the next day.

A team onboarded mid-request

  • Ask: an engineer on a lending analytics team, using Scarlet for the first time, wanted a scheduled job changed for a team Scarlet had never been set up for.
  • What Scarlet did: when the engineer typed “onboard my team to Scarlet”, it drafted the team’s skill as an MR. After a single sign-in, it updated the job under the engineer’s identity and ran its post-change checks.
  • Result: the skill MR merged the next day, and the job change went through under the engineer’s own permissions.

Lessons from production

Templates for predictable structure

What happened: during one migration, Scarlet produced a large MR that passed CI and failed at runtime. The model had guessed part of the job configuration.

What we changed:

  • Deterministic scaffolds for predictable structures. They run the platform’s own code generator and validate the output against a contract.
  • A Slack wizard for teams that prefer forms. It never calls the model and captures all the necessary details as required.
  • A validate, lint, fix loop for generated SQL and configuration. It stops after a few failed attempts and asks a human.
  • The model keeps only the work that needs judgment: mapping columns, writing transformations, explaining failures.

Sign-in as a pause

What happened: when Scarlet acts as the user, some platforms need that user to sign in first. At first, hitting one of those mid-run ended the workflow, and replaying the request lost the progress.

What we changed: sign-in is now a pause. The run checkpoints at a LangGraph interrupt, and the sign-in callback resumes it from that point while the same plan card keeps updating.

Measuring without reading conversations

What happened: the first post’s feedback loop ran on reviewers rating each answer in Slack. Scarlet’s output is an MR reviewed in GitLab, so that loop did not carry over, and after launch we could not say who used Scarlet, for what, or how often it succeeded.

What we changed: a recorder that captures metadata from the tool stream (requester, source, skills, tools, duration, outcome, intent) without storing conversations. Request text is opt-in, and anything that looks like a credential is redacted. The figures below come from it.

Impact

These figures come from the usage events Scarlet records.

Figure 6. Weekly usage and merge rate, May to September 2026.
  • Weekly usage held steady from July to mid-August, then climbed. In the week of 7 September it reached about three times the usual request volume from about twice as many users, and the following week held near twice the usual level.
  • The share of monthly users who came back for a second week rose from about 42% in July to 56% in August and stayed above 50% in September. The top user’s share fell from nearly half of all requests to under 10%.
  • Repositories with a Scarlet MR grew about fourfold from May to September, and monthly MRs opened grew more than fourfold from June to September. The merge rate rose from about 50% in May to over 85% in September. Early September alone produced more merged code than the whole of August.

The mix of requests changed as the skill library grew:

  • Table discovery grew fastest, more than six times from July to September, as new teams explored the catalog before asking for changes.
  • By September about half of all requests were questions about the data, not changes. Answering under the asker’s own permissions turned out to matter as much as the merge boundary.

Current limits

  • Long threads degrade answer quality, and a very large request can exceed a single model turn. Starting a new thread helps once older context stops being useful.
  • Coverage gaps: schema and freshness checks only, certification for production tables only, and source rewires stop for a human when fewer than about 70% of columns can be mapped.
  • Data testing covers code-pipeline changes. Batch-job changes still need an isolated test environment first.

The biggest open problem is uncertainty. When repository conventions do not settle a configuration choice, Scarlet sometimes proceeds without asking. The next step is to make that rule explicit in the skills and check it with regression tests on every release.

Takeaways

Slack made the work visible. The skill library made it maintainable: a new repository no longer needs a new agent, and teams review the files that hold their conventions. If you are building something similar, keep the model for the judgment calls and write every convention down as a file someone can review.

What’s next

The first post drew the line at anything that changes production: those actions wait for a human. With CI and data validation now in place, we think that line can move for routine work. Now that requests can start from tickets or other agents, every Scarlet MR will pass through one risk-based approval gate:

  1. CI passes.
  2. Scarlet’s data validation returns pass. A fail or inconclusive verdict goes to a human.
  3. The change is routine. New pipelines, rewired sources, and data contract changes always go to a human.
  4. A change that passes all three checks could move through review faster, with an engineer still making the final call to merge.

Join us

Grab is Southeast Asia’s leading superapp, serving over 900 cities across eight countries (Cambodia, Indonesia, Malaysia, Myanmar, the Philippines, Singapore, Thailand, and Vietnam). Through a single platform, millions of users access mobility, delivery, and digital financial services, including ride-hailing, food delivery, payments, lending, and digital banking via GXS Bank and GXBank. Founded in 2012, Grab’s mission is to drive Southeast Asia forward by creating economic empowerment for everyone while delivering sustainable financial performance and positive social impact.

Powered by technology and driven by heart, our mission is to drive Southeast Asia forward by creating economic empowerment for everyone. If this mission speaks to you, join our team today!

Centec ZX530S-24S2CQ Review The Cheap 10G and 100G Switch Option with a Centec Switch Chip

Post Syndicated from Vic A original https://www.servethehome.com/centec-zx530s-24s2cq-review/

We test the ZX530S-24S2CQ switch, a 24-port SFP+ 10G switch with two 100G SFP28 ports, but with a surprise Chinese Centec switch chip inside

The post Centec ZX530S-24S2CQ Review The Cheap 10G and 100G Switch Option with a Centec Switch Chip appeared first on ServeTheHome.

The collective thoughts of the interwebz