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.

2026-11-22 Записи от OpenFest 2026

Post Syndicated from Vasil Kolev original https://vasil.ludost.net/blog/?p=3533

Видео записите от OpenFest 2026 могат да се намерят в нашия архив на https://va.ludost.net/files/of2026 или в youtube на https://www.youtube.com/@openfestbulgaria/playlists.

Писах доста неща за как мина събитието, само че трябва да видя каква част от тях е за публична употреба 🙂 Но се случи, никой не умря, и като цяло въпреки студът в залата и разни други забавни проблеми мисля, че мина добре.

The collective thoughts of the interwebz