How we sped up AWS CloudFormation deployments with optimistic stabilization

Post Syndicated from Bhavani Kanneganti original https://aws.amazon.com/blogs/devops/how-we-sped-up-aws-cloudformation-deployments-with-optimistic-stabilization/

Introduction

AWS CloudFormation customers often inquire about the behind-the-scenes process of provisioning resources and why certain resources or stacks take longer to provision compared to the AWS Management Console or AWS Command Line Interface (AWS CLI). In this post, we will delve into the various factors affecting resource provisioning in CloudFormation, specifically focusing on resource stabilization, which allows CloudFormation and other Infrastructure as Code (IaC) tools to ensure resilient deployments. We will also introduce a new optimistic stabilization strategy that improves CloudFormation stack deployment times by up to 40% and provides greater visibility into resource provisioning through the new CONFIGURATION_COMPLETE status.

AWS CloudFormation is an IaC service that allows you to model your AWS and third-party resources in template files. By creating CloudFormation stacks, you can provision and manage the lifecycle of the template-defined resources manually via the AWS CLI, Console, AWS SAM, or automatically through an AWS CodePipeline, where CLI and SAM can also be leveraged or through Git sync. You can also use AWS Cloud Development Kit (AWS CDK) to define cloud infrastructure in familiar programming languages and provision it through CloudFormation, or leverage AWS Application Composer to design your application architecture, visualize dependencies, and generate templates to create CloudFormation stacks.

Deploying a CloudFormation stack

Let’s examine a deployment of a containerized application using AWS CloudFormation to understand CloudFormation’s resource provisioning.

Sample application architecture to deploy an ECS service

Figure 1. Sample application architecture to deploy an ECS service

For deploying a containerized application, you need to create an Amazon ECS service. To set up the ECS service, several key resources must first exist: an ECS cluster, an Amazon ECR repository, a task definition, and associated Amazon VPC infrastructure such as security groups and subnets.
Since you want to manage both the infrastructure and application deployments using AWS CloudFormation, you will first define a CloudFormation template that includes: an ECS cluster resource (AWS::ECS::Cluster), a task definition (AWS::ECS::TaskDefinition), an ECR repository (AWS::ECR::Repository), required VPC resources like subnets (AWS::EC2::Subnet) and security groups (AWS::EC2::SecurityGroup), and finally, the ECS Service (AWS::ECS::Service) itself. When you create the CloudFormation stack using this template, the ECS service (AWS::ECS::Service) is the final resource created, as it waits for the other resources to finish creation. This brings up the concept of Resource Dependencies.

Resource Dependency:

In CloudFormation, resources can have dependencies on other resources being created first. There are two types of resource dependencies:

  • Implicit: CloudFormation automatically infers dependencies when a resource uses intrinsic functions to reference another resource. These implicit dependencies ensure the resources are created in the proper order.
  • Explicit: Dependencies can be directly defined in the template using the DependsOn attribute. This allows you to customize the creation order of resources.

The following template snippet shows the ECS service’s dependencies visualized in a dependency graph:

Template snippet:

ECSService:
    DependsOn: [PublicRoute] #Explicit Dependency
    Type: 'AWS::ECS::Service'
    Properties:
      ServiceName: cfn-service
      Cluster: !Ref ECSCluster #Implicit Dependency
      DesiredCount: 2
      LaunchType: FARGATE
      NetworkConfiguration:
        AwsvpcConfiguration:
          AssignPublicIp: ENABLED
          SecurityGroups:
            - !Ref SecurityGroup #Implicit Dependency
          Subnets:
            - !Ref PublicSubnet #Implicit Dependency
      TaskDefinition: !Ref TaskDefinition #Implicit Dependency

Dependency Graph:

CloudFormation’s dependency graph for a containerized application

Figure 2. CloudFormation’s dependency graph for a containerized application

Note: VPC Resources in the above graph include PublicSubnet (AWS::EC2::Subnet), SecurityGroup (AWS::EC2::SecurityGroup), PublicRoute (AWS::EC2::Route)

In the above template snippet, the ECS Service (AWS::ECS::Service) resource has an explicit dependency on the PublicRoute resource, specified using the DependsOn attribute. The ECS service also has implicit dependencies on the ECSCluster, SecurityGroup, PublicSubnet, and TaskDefinition resources. Even without an explicit DependsOn, CloudFormation understands that these resources must be created before the ECS service, since the service references them using the Ref intrinsic function. Now that you understand how CloudFormation creates resources in a specific order based on their definition in the template file, let’s look at the time taken to provision these resources.

Resource Provisioning Time:

The total time for CloudFormation to provision the stack depends on the time required to create each individual resource defined in the template. The provisioning duration per resource is determined by several time factors:

  • Engine Time: CloudFormation Engine Time refers to the duration spent by the service reading and persisting data related to a resource. This includes the time taken for operations like parsing and interpreting the CloudFormation template, and for the resolution of intrinsic functions like Fn::GetAtt and Ref.
  • Resource Creation Time: The actual time an AWS service requires to create and configure the resource. This can vary across resource types provisioned by the service.
  • Resource Stabilization Time: The duration required for a resource to reach a usable state after creation.

What is Resource Stabilization?

When provisioning AWS resources, CloudFormation makes the necessary API calls to the underlying services to create the resources. After creation, CloudFormation then performs eventual consistency checks to ensure the resources are ready to process the intended traffic, a process known as resource stabilization. For example, when creating an ECS service in the application, the service is not readily accessible immediately after creation completes (after creation time). To ensure the ECS service is available to use, CloudFormation performs additional verification checks defined specifically for ECS service resources. Resource stabilization is not unique to CloudFormation and must be handled to some degree by all IaC tools.

Stabilization Criteria and Stabilization Timeout

For CloudFormation to mark a resource as CREATE_COMPLETE, the resource must meet specific stabilization criteria called stabilization parameters. These checks validate that the resource is not only created but also ready for use.

If a resource fails to meet its stabilization parameters within the allowed stabilization timeout period, CloudFormation will mark the resource status as CREATE_FAILED and roll back the operation. Stabilization criteria and timeouts are defined uniquely for each AWS resource supported in CloudFormation by the service, and are applied during both resource create and update workflows.

AWS CloudFormation vs AWS CLI to provision resources

Now, you will create a similar ECS service using the AWS CLI. You can use the following AWS CLI command to deploy an ECS service using the same task definition, ECS cluster and VPC resources created earlier using CloudFormation.

Command:

aws ecs create-service \
    --cluster CFNCluster \
    --service-name service-cli \
    --task-definition task-definition-cfn:1 \
    --desired-count 2 \
    --launch-type FARGATE \
    --network-configuration "awsvpcConfiguration={subnets=[subnet-xxx],securityGroups=[sg-yyy],assignPublicIp=ENABLED}" \
    --region us-east-1

The following snippet from the output of the above command shows that the ECS Service has been successfully created and its status is ACTIVE.

Snapshot of the ECS service API call's response

Figure 3. Snapshot of the ECS service API call

However, when you navigate to the ECS console and review the service, tasks are still in the Pending state, and you are unable to access the application.

ECS tasks status in the AWS console

Figure 4. ECS console view

You have to wait for the service to reach a steady state before you can successfully access the application.

ECS service events from the AWS console

Figure 5. ECS service events from the AWS console

When you create the same ECS service using AWS CloudFormation, the service is accessible immediately after the resource reaches a status of CREATE_COMPLETE in the stack. This reliable availability is due to CloudFormation’s resource stabilization process. After initially creating the ECS service, CloudFormation waits and continues calling the ECS DescribeServices API action until the service reaches a steady state. Once the ECS service passes its consistency checks and is fully ready for use, only then will CloudFormation mark the resource status as CREATE_COMPLETE in the stack. This creation and stabilization orchestration allows you to access the service right away without any further delays.

The following is an AWS CloudTrail snippet of CloudFormation performing DescribeServices API calls during Stabilization:

Snapshot of AWS CloudTrail event for DescribeServices API call

Figure 6. Snapshot of AWS CloudTrail event

By handling resource stabilization natively, CloudFormation saves you the extra coding effort and complexity of having to implement custom status checks and availability polling logic after resource creation. You would have to develop this additional logic using tools like the AWS CLI or API across all the infrastructure and application resources. With CloudFormation’s built-in stabilization orchestration, you can deploy the template once and trust that the services will be fully ready after creation, allowing you to focus on developing your application functionality.

Evolution of Stabilization Strategy

CloudFormation’s stabilization strategy couples resource creation with stabilization such that the provisioning of a resource is not considered COMPLETE until stabilization is complete.

Historic Stabilization Strategy

For resources that have no interdependencies, CloudFormation starts the provisioning process in parallel. However, if a resource depends on another resource, CloudFormation will wait for the entire resource provisioning operation of the dependency resource to complete before starting the provisioning of the dependent resource.

CloudFormation’s historic stabilization strategy

Figure 7. CloudFormation’s historic stabilization strategy

The diagram above shows a deployment of some of the ECS application resources that you deploy using AWS CloudFormation. The Task Definition (AWS::ECS::TaskDefinition) resource depends on the ECR Repository (AWS::ECR::Repository) resource, and the ECS Service (AWS::ECS:Service) resource depends on both the Task Definition and ECS Cluster (AWS::ECS::Cluster) resources. The ECS Cluster resource has no dependencies defined. CloudFormation initiates creation of the ECR Repository and ECS Cluster resources in parallel. It then waits for the ECR Repository to complete consistency checks before starting provisioning of the Task Definition resource. Similarly, creation of the ECS Service resource begins only when the Task Definition and ECS Cluster resources have been created and are ready. This sequential approach ensures safety and stability but causes delays. CloudFormation strictly deploys dependent resources one after the other, slowing down deployment of the entire stack. As the number of interdependent resources grows, the overall stack deployment time increases, creating a bottleneck that prolongs the whole stack operation.

New Optimistic Stabilization Strategy

To improve stack provisioning times and deployment performance, AWS CloudFormation recently launched a new optimistic stabilization strategy. The optimistic strategy can reduce customer stack deployment duration by up to 40%. It allows dependent resources to be created in parallel. This concurrent resource creation helps significantly improve deployment speed.

CloudFormation’s new optimistic stabilizationstrategy

Figure 8. CloudFormation’s new optimistic stabilization strategy

The diagram above shows deployment of the same 4 resources discussed in the historic strategy. The Task Definition (AWS::ECS::TaskDefinition) resource depends on the ECR Repository (AWS::ECR::Repository) resource, and the ECS Service (AWS::ECS:Service) resource depends on both the Task Definition and ECS Cluster (AWS::ECS::Cluster) resources. The ECS Cluster resource has no dependencies defined. CloudFormation initiates creation of the ECR Repository and ECS Cluster resources in parallel. Then, instead of waiting for the ECR Repository to complete consistency checks, it starts creating the Task Definition when the ECR Repository completes creation, but before stabilization is complete. Similarly, creation of the ECS Service resource begins after Task Definition and ECS Cluster creation. The change was made because not all resources require their dependent resources to complete consistency checks before starting creation. If the ECS Service fails to provision because the Task Definition or ECS Cluster resources are still undergoing consistency checks, CloudFormation will wait for those dependencies to complete their consistency checks before attempting to create the ECS Service again.

CloudFormation’s new stabilization strategy with the retry capability

Figure 9. CloudFormation’s new stabilization strategy with the retry capability

This parallel creation of dependent resources with automatic retry capabilities results in faster deployment times compared to the historical linear resource provisioning strategy. The Optimistic stabilization strategy currently applies only to create workflows with resources that have implicit dependencies. For resources with an explicit dependency, CloudFormation leverages the historic strategy in deploying resources.

Improved Visibility into Resource Provisioning

When creating a CloudFormation stack, a resource can sometimes take longer to provision, making it appear as if it’s stuck in an IN_PROGRESS state. This can be because CloudFormation is waiting for the resource to complete consistency checks during its resource stabilization step. To improve visibility into resource provisioning status, CloudFormation has introduced a new “CONFIGURATION_COMPLETE” event. This event is emitted at both the individual resource level and the overall stack level during create workflow when resource(s) creation or configuration is complete, but stabilization is still in progress.

CloudFormation stack events of the ECS Application

Figure 10. CloudFormation stack events of the ECS Application

The above diagram shows the snapshot of stack events of the ECS application’s CloudFormation stack named ECSApplication. Observe the events from the bottom to top:

  • At 10:46:08 UTC-0600, ECSService (AWS::ECS::Service) resource creation was initiated.
  • At 10:46:09 UTC-0600, the ECSService has CREATE_IN_PROGRESS status in the Status tab and CONFIGURATION_COMPLETE status in the Detailed status tab, meaning the resource was successfully created and the consistency check was initiated.
  • At 10:46:09 UTC-0600, the stack ECSApplication has CREATE_IN_PROGRESS status in the Status tab and CONFIGURATION_COMPLETE status in the Detailed status tab, meaning all the resources in the ECSApplication stack are successfully created and are going through stabilization. This stack level CONFIGURATION_COMPLETE status can also be viewed in the stack’s Overview tab.
CloudFormation Overview tab for the ECSApplication stack

Figure 11. CloudFormation Overview tab for the ECSApplication stack

  • At 10:47:09 UTC-0600, the ECSService has CREATE_COMPLETE status in the Status tab, meaning the service is created and completed consistency checks.
  • At 10:47:10 UTC-0600, ECSApplication has CREATE_COMPLETE status in the Status tab, meaning all the resources are successfully created and completed consistency checks.

Conclusion:

In this post, I hope you gained some insights into how CloudFormation deploys resources and the various time factors that contribute to the creation of a stack and its resources. You also took a deeper look into what CloudFormation does under the hood with resource stabilization and how it ensures the safe, consistent, and reliable provisioning of resources in critical, high-availability production infrastructure deployments. Finally, you learned about the new optimistic stabilization strategy to shorten stack deployment times and improve visibility into resource provisioning.

About the authors:

Picture of author Bhavani Kanneganti

Bhavani Kanneganti

Bhavani is a Principal Engineer at AWS Support. She has over 7 years of experience solving complex customer issues on the AWS Cloud pertaining to infrastructure-as-code and container orchestration services such as CloudFormation, ECS, and EKS. She also works closely with teams across AWS to design solutions that improve customer experience. Outside of work, Bhavani enjoys cooking and traveling.

Picture of author Idriss Laouali Abdou

Idriss Laouali Abdou

Idriss is a Senior Product Manager AWS, working on delivering the best experience for AWS IaC customers. Outside of work, you can either find him creating educational content helping thousands of students, cooking, or dancing.

AWS Weekly Roundup — Claude 3 Sonnet support in Bedrock, new instances, and more — March 11, 2024

Post Syndicated from Marcia Villalba original https://aws.amazon.com/blogs/aws/aws-weekly-roundup-claude-3-sonnet-support-in-bedrock-new-instances-and-more-march-11-2024/

Last Friday was International Women’s Day (IWD), and I want to take a moment to appreciate the amazing ladies in the cloud computing space that are breaking the glass ceiling by reaching technical leadership positions and inspiring others to go and build, as our CTO Werner Vogels says.Now go build

Last week’s launches
Here are some launches that got my attention during the previous week.

Amazon Bedrock – Now supports Anthropic’s Claude 3 Sonnet foundational model. Claude 3 Sonnet is two times faster and has the same level of intelligence as Anthropic’s highest-performing models, Claude 2 and Claude 2.1. My favorite characteristic is that Sonnet is better at producing JSON outputs, making it simpler for developers to build applications. It also offers vision capabilities. You can learn more about this foundation model (FM) in the post that Channy wrote early last week.

AWS re:Post – Launched last week! AWS re:Post Live is a weekly Twitch livestream show that provides a way for the community to reach out to experts, ask questions, and improve their skills. The show livestreams every Monday at 11 AM PT.

Amazon CloudWatchNow streams daily metrics on CloudWatch metric streams. You can use metric streams to send a stream of near real-time metrics to a destination of your choice.

Amazon Elastic Compute Cloud (Amazon EC2)Announced the general availability of new metal instances, C7gd, M7gd, and R7gd. These instances have up to 3.8 TB of local NVMe-based SSD block-level storage and are built on top of the AWS Nitro System.

AWS WAFNow supports configurable evaluation time windows for request aggregation with rate-based rules. Previously, AWS WAF was fixed to a 5-minute window when aggregating and evaluating the rules. Now you can select windows of 1, 2, 5 or 10 minutes, depending on your application use case.

AWS Partners – Last week, we announced the AWS Generative AI Competency Partners. This new specialization features AWS Partners that have shown technical proficiency and a track record of successful projects with generative artificial intelligence (AI) powered by AWS.

For a full list of AWS announcements, be sure to keep an eye on the What’s New at AWS page.

Other AWS news
Some other updates and news that you may have missed:

One of the articles that caught my attention recently compares different design approaches for building serverless microservices. This article, written by Luca Mezzalira and Matt Diamond, compares the three most common designs for serverless workloads and explains the benefits and challenges of using one over the other.

And if you are interested in the serverless space, you shouldn’t miss the Serverless Office Hours, which airs live every Tuesday at 10 AM PT. Join the AWS Serverless Developer Advocates for a weekly chat on the latest from the serverless space.

Serverless office hours

The Official AWS Podcast – Listen each week for updates on the latest AWS news and deep dives into exciting use cases. There are also official AWS podcasts in several languages. Check out the ones in FrenchGermanItalian, and Spanish.

AWS Open Source News and Updates – This is a newsletter curated by my colleague Ricardo to bring you the latest open source projects, posts, events, and more.

Upcoming AWS events
Check your calendars and sign up for these AWS events:

AWS Summit season is about to start. The first ones are Paris (April 3), Amsterdam (April 9), and London (April 24). AWS Summits are free events that you can attend in person and learn about the latest in AWS technology.

GOTO x AWS EDA Day London 2024 – On May 14, AWS partners with GOTO bring to you the event-driven architecture (EDA) day conference. At this conference, you will get to meet experts in the EDA space and listen to very interesting talks from customers, experts, and AWS.

GOTO EDA Day 2022

You can browse all upcoming in-person and virtual events here.

That’s all for this week. Check back next Monday for another Week in Review!

— Marcia

This post is part of our Weekly Roundup series. Check back each week for a quick roundup of interesting news and announcements from AWS!

[$] Development statistics for 6.8

Post Syndicated from corbet original https://lwn.net/Articles/964106/

The 6.8 kernel was released on March 10
after a typical, nine-week development cycle. Over this time, 1,938
developers contributed 14,405 non-merge changesets, making 6.8 into a
slower cycle than 6.7 (but busier than 6.6), with the lowest number of
developers participating since the 6.5 release. Still, there was
a lot going on during this cycle; read on for some of the details.

Security Week 2024 wrap up

Post Syndicated from Daniele Molteni original https://blog.cloudflare.com/security-week-2024-wrap-up


The next 12 months have the potential to reshape the global political landscape with elections occurring in more than 80 nations, in 2024, while new technologies, such as AI, capture our imagination and pose new security challenges.

Against this backdrop, the role of CISOs has never been more important. Grant Bourzikas, Cloudflare’s Chief Security Officer, shared his views on what the biggest challenges currently facing the security industry are in the Security Week opening blog.

Over the past week, we announced a number of new products and features that align with what we believe are the most crucial challenges for CISOs around the globe. We released features that span Cloudflare’s product portfolio, ranging from application security to securing employees and cloud infrastructure. We have also published a few stories on how we take a Customer Zero approach to using Cloudflare services to manage security at Cloudflare.

We hope you find these stories interesting and are excited by the new Cloudflare products. In case you missed any of these announcements, here is a recap of Security Week:

Responding to opportunity and risk from AI

Title Excerpt
Cloudflare announces Firewall for AI Cloudflare announced the development of Firewall for AI, a protection layer that can be deployed in front of Large Language Models (LLMs) to identify abuses and attacks.
Defensive AI: Cloudflare’s framework for defending against next-gen threats Defensive AI is the framework Cloudflare uses when integrating intelligent systems into its solutions. Cloudflare’s AI models look at customer traffic patterns, providing that organization with a tailored defense strategy unique to their environment.
Cloudflare launches AI Assistant for Security Analytics We released a natural language assistant as part of Security Analytics. Now it is easier than ever to get powerful insights about your applications by exploring log and security events using the new natural language query interface.
Dispelling the Generative AI fear: how Cloudflare secures inboxes against AI-enhanced phishing Generative AI is being used by malicious actors to make phishing attacks much more convincing. Learn how Cloudflare’s email security systems are able to see past the deception using advanced machine learning models.

Maintaining visibility and control as applications and clouds change

Title Excerpt
Magic Cloud Networking simplifies security, connectivity, and management of public clouds Introducing Magic Cloud Networking, a new set of capabilities to visualize and automate cloud networks to give our customers easy, secure, and seamless connection to public cloud environments.
Secure your unprotected assets with Security Center: quick view for CISOs Security Center now includes new tools to address a common challenge: ensuring comprehensive deployment of Cloudflare products across your infrastructure. Gain precise insights into where and how to optimize your security posture.
Announcing two highly requested DLP enhancements: Optical Character Recognition (OCR) and Source Code Detections Cloudflare One now supports Optical Character Recognition and detects source code as part of its Data Loss Prevention service. These two features make it easier for organizations to protect their sensitive data and reduce the risks of breaches.
Introducing behavior-based user risk scoring in Cloudflare One We are introducing user risk scoring as part of Cloudflare One, a new set of capabilities to detect risk based on user behavior, so that you can improve security posture across your organization.
Eliminate VPN vulnerabilities with Cloudflare One The Cybersecurity & Infrastructure Security Agency issued an Emergency Directive due to the Ivanti Connect Secure and Policy Secure vulnerabilities. In this post, we discuss the threat actor tactics exploiting these vulnerabilities and how Cloudflare One can mitigate these risks.
Zero Trust WARP: tunneling with a MASQUE This blog discusses the introduction of MASQUE to Zero Trust WARP and how Cloudflare One customers will benefit from this modern protocol.
Collect all your cookies in one jar with Page Shield Cookie Monitor Protecting online privacy starts with knowing what cookies are used by your websites. Our client-side security solution, Page Shield, extends transparent monitoring to HTTP cookies.
Protocol detection with Cloudflare Gateway Cloudflare Secure Web Gateway now supports the detection, logging, and filtering of network protocols using packet payloads without the need for inspection.
Introducing Requests for Information (RFIs) and Priority Intelligence Requirements (PIRs) for threat intelligence teams Our Security Center now houses Requests for Information and Priority Intelligence Requirements. These features are available via API as well and Cloudforce One customers can start leveraging them today for enhanced security analysis.

Consolidating to drive down costs

Title Excerpt
Log Explorer: monitor security events without third-party storage With the combined power of Security Analytics and Log Explorer, security teams can analyze, investigate, and monitor logs natively within Cloudflare, reducing time to resolution and overall cost of ownership by eliminating the need of third-party logging systems.
Simpler migration from Netskope and Zscaler to Cloudflare: introducing Deskope and a Descaler partner update Cloudflare expands the Descaler program to Authorized Service Delivery Partners (ASDPs). Cloudflare is also launching Deskope, a new set of tooling to help migrate existing Netskope customers to Cloudflare One.
Protecting APIs with JWT Validation Cloudflare customers can now protect their APIs from broken authentication attacks by validating incoming JSON Web Tokens with API Gateway.
Simplifying how enterprises connect to Cloudflare with Express Cloudflare Network Interconnect Express Cloudflare Network Interconnect makes it fast and easy to connect your network to Cloudflare. Customers can now order Express CNIs directly from the Cloudflare dashboard.
Cloudflare treats SASE anxiety for VeloCloud customers The turbulence in the SASE market is driving many customers to seek help. We’re doing our part to help VeloCloud customers who are caught in the crosshairs of shifting strategies.
Free network flow monitoring for all enterprise customers Announcing a free version of Cloudflare’s network flow monitoring product, Magic Network Monitoring. Now available to all Enterprise customers.
Building secure websites: a guide to Cloudflare Pages and Turnstile Plugin Learn how to use Cloudflare Pages and Turnstile to deploy your website quickly and easily while protecting it from bots, without compromising user experience.
General availability for WAF Content Scanning for file malware protection Announcing the General Availability of WAF Content Scanning, protecting your web applications and APIs from malware by scanning files in-transit.

How can we help make the Internet better?

Title Excerpt
Cloudflare protects global democracy against threats from emerging technology during the 2024 voting season At Cloudflare, we’re actively supporting a range of players in the election space by providing security, performance, and reliability tools to help facilitate the democratic process.
Navigating the maze of Magecart: a cautionary tale of a Magecart impacted website Learn how a sophisticated Magecart attack was behind a campaign against e-commerce websites. This incident underscores the critical need for a strong client side security posture.
Cloudflare’s URL Scanner, new features, and the story of how we built it Discover the enhanced URL Scanner API, now integrated with the Security Center Investigate Portal. Enjoy unlisted scans, multi-device screenshots, and seamless integration with the Cloudflare ecosystem.
Changing the industry with CISA’s Secure by Design principles Security considerations should be an integral part of software’s design, not an afterthought. Explore how Cloudflare adheres to Cybersecurity & Infrastructure Security Agency’s Secure by Design principles to shift the industry.
The state of the post-quantum Internet Nearly two percent of all TLS 1.3 connections established with Cloudflare are secured with post-quantum cryptography. In this blog post we discuss where we are now in early 2024, what to expect for the coming years, and what you can do today.
Advanced DNS Protection: mitigating sophisticated DNS DDoS attacks Introducing the Advanced DNS Protection system, a robust defense mechanism designed to protect against the most sophisticated DNS-based DDoS attacks.

Sharing the Cloudflare way

Title Excerpt
Linux kernel security tunables everyone should consider adopting This post illustrates some of the Linux kernel features that are helping Cloudflare keep its production systems more secure. We do a deep dive into how they work and why you should consider enabling them.
Securing Cloudflare with Cloudflare: a Zero Trust journey A deep dive into how we have deployed Zero Trust at Cloudflare while maintaining user privacy.
Network performance update: Security Week 2024 Cloudflare is the fastest provider for 95th percentile connection time in 44% of networks around the world. We dig into the data and talk about how we do it.
Harnessing chaos in Cloudflare offices This blog discusses the new sources of “chaos” that have been added to LavaRand and how you can make use of that harnessed chaos in your next application.
Launching email security insights on Cloudflare Radar The new Email Security section on Cloudflare Radar provides insights into the latest trends around threats found in malicious email, sources of spam and malicious email, and the adoption of technologies designed to prevent abuse of email.

A final word

Thanks for joining us this week, and stay tuned for our next Innovation Week in early April, focused on the developer community.

„Между чука на корупцията и наковалнята на бюрокрацията“. Защо България иска да експулсира саудитския дисидент Абдулрахман ал-Халиди

Post Syndicated from Светла Енчева original https://www.toest.bg/mezhdu-chuka-na-koruptsiyata-i-nakovalnyata-na-byurokratsiyata/

„Между чука на корупцията и наковалнята на бюрокрацията“. Защо България иска да експулсира саудитския дисидент Абдулрахман ал-Халиди

Той е 30-годишен баща на две деца, който иска да осигури приличен живот на семейството си и лечение на ослепяващия си син, да учи готварство и да рисува. Вместо това повече от две години е затворен в центъра за задържане в Бусманци (с официалното име Специален дом за временно настаняване на чужденци). От 7 февруари има издадена заповед за депортирането му в Саудитска Арабия, където най-малкото, което го заплашва, е затвор. А може и да го сполети съдбата на друг саудитски дисидент – Джамал Хашоги, който беше убит.

Отказът на Държавната агенция за бежанците (ДАБ) да предостави убежище на Ал-Халиди е споменат в годишния доклад на Държавния департамент на САЩ за човешките права в Саудитска Арабия през 2022 г.

Принудителното задържане на Абдулрахман ал-Халиди за толкова дълъг период е в нарушение не само на ратифицирани от България международни документи, между които Женевската конвенция за статута на бежанците и Европейската конвенция за правата на човека, а дори и на българския Закон за убежището и бежанците, по силата на който търсещите закрила може да бъдат настанени в център от затворен тип „за възможно най-кратък срок“. В края на 2009 г. Съдът на ЕС в Люксембург постановява максималният срок за принудително задържане на бежанци да е 18 месеца. Повод за решението е друг случай на задържан с години чужденец в България – Саид Кадзоев.

С призив да се спре депортирането на Абдулрахман ал-Халиди излязоха множество личности и организации, между които Българският хелзинкски комитет, правозащитната организации „Хюман Райтс Уоч“ и „Амнести Интернешънъл“, Комисията за международни отношения на Сената на САЩ, специалният докладчик за защитниците на човешки права на ООН, генералният секретар на Световната организация против изтезанията и др. На 7 март в София се проведе демонстрация в негова подкрепа.

„Тоест“ разполага с решението на ДАБ за отказ за предоставяне на закрила на Ал-Халиди и може да потвърди, че в него действително пише това, което той казва. Разполагаме и с копия на онлайн публикации на лоялни към властта саудитци, призоваващи той да бъде убит, и с множество снимки, разкриващи нечовешките условия в центъра за задържане в Бусманци.

Интервюто с Абдулрахман ал-Халиди беше проведено в писмена форма онлайн. Превод от английски: Светла Енчева.


Вие сте саудитски дисидент. В какво се състоеше опозиционната Ви дейност?

Занимавахме се [с останалите опозиционери] с два основни въпроса. Първият беше преход към конституционна монархия – вместо [настоящата] абсолютна монархия. В Саудитска Арабия не можем да избираме парламент, а вместо това кралят назначава Съвет (Шура) и не може да се избира правителство. Няколко години беше позволено да се провеждат местни избори, но те бяха прекратени след възкачването на крал Салман на престола.

Вторият въпрос е освобождаването на политическите затворници, даването на право на справедлив процес и пускането на свобода на онези, чиито присъди са изтекли. Процедурите в Кралство Саудитска Арабия са много несправедливи към политическите затворници.

После, в новия етап на управлението, към случаите, с които се занимавахме, се прибави и широката употреба на смъртното наказание срещу задържаните по политически причини, които не са извършили престъпления, класифицирани като насилствени. Всъщност повечето от осъдените на смърт са политически активисти и членове на шиитското малцинство, които абсолютно се нуждаят от защита. Например Мухамад ал-Гамди, който беше осъден на смърт. Той трябва да бъде екзекутиран като „наказание“ за няколко критични към властта туита, публикувани в профил в платформата Х, следван от 9 акаунта.

Защо избягахте в Турция?

Заминах за Турция, защото Саудитска Арабия започна кампанийни арести в края на 2012-та и началото на 2013 г. Преди това, между 2011-та и края на 2012 г., страната не задържаше никого заради страха от влиянието на Арабската пролет. По онова време можехме да провеждаме демонстрации пред Министерството на вътрешните работи с искане за освобождаване на политическите затворници и да обсъждаме публично – в съвети и на събрания – позиции за човешките права. Но после вече не беше възможно да правим тези неща.

Първоначално отидох в Египет, но го напуснах след подкрепения от Саудитска Арабия военен преврат и местните избори през 2013 г., защото се страхувах да не ме екстрадират.

Много хора в България биха казали, че в Турция нищо не Ви заплашва и не е било нужно да търсите убежище в България. Ще обясните ли защо го направихте?

В Турция бежанците от Персийския залив изобщо не са признати. Стотици от тях живеят без легален статут. За съжаление, останах там с години, надявайки се да получа легален статут, но това, изглежда, не е възможно. Освен това саудитските посолства и консулства не са оторизирани да регистрират бракове или деца, нито да подновяват документи. Трябва да се върнеш в Саудитска Арабия, да уредиш правния си статус и после да се върнеш. Това определено би било самоубийство в случай като моя – точно както се случи с г-н Джамал Хашоги.

На децата ми им трябва легален статут, защото се нуждаят от образование и лечение. И аз имам нужда от легален статут. Оставането в Турция без такъв можеше да застраши живота ми и да ме депортират всеки момент. Затова заминах – за да имам достъп до европейската система за убежище.

Не знаех, че имате деца. Колко са, къде са сега?

Две са – син и дъщеря. В Турция са. Синът ми скоро ще загуби зрението си. Той се нуждае от медицински грижи и това е основната причина за заминаването ми от Турция. През последните месеци се учи да чете на брайл. Боя се, че състоянието му ще стане необратимо, ако скоро не успея да му осигуря медицински грижи.

Горкото дете!

А горкото дете принадлежи на горкия си баща, живеещ между чука на корупцията и наковалнята на бюрокрацията в България. За съжаление. Все си припомням думите на китайския посланик в САЩ Сие Фън: „Ако националната сигурност се използва като чук, то всичко ще прилича на пирон.“

Бихте ли разказал повече за опита си да получите бежански статут в България? На какво основание получихте отказ?

ДАБ отхвърли молбата ми за убежище по неоснователни причини. Те казват, че „официалните власти на Саудитска Арабия са предприели редица мерки за демократизиране на обществото“, като се позовават на местните избори, които всъщност бяха прекратени, след като крал Салман взе властта.

Твърдят и че съм напуснал страната по икономически причини, въпреки че икономическото състояние на семейството ми е добро. Разумно ли е да прекарам повече от две години и половина задържан в лоши условия, ако търся по-добри икономически възможности? Докато страната ми е една от най-силните икономики в света и брутният ѝ вътрешен продукт на глава от населението е висок? Тези аргументи не изглеждат логични.

Освен това много части от решението за отказ, изглежда, са копирани от други решения! Говорят за мен като за човек, роден през 2003 г., докато аз съм регистриран в ДАБ с правилната си рождена дата – 1993 г.! Също така отричат, че съм женен и имам деца, въпреки че съм предоставил тази информация, когато се регистрирах в ДАБ. Там съм регистриран като женен, а те пишат, че не съм.

ДАБ знае и че съм диагностициран с посттравматично стресово разстройство, разполага с официален доклад от Центъра за подпомагане на хора, преживели изтезание.

В решението се говори за условията в Саудитска Арабия, но на някои места пише, че сирийският бежанец може да се върне в страната си – Сирия – защото е сигурна страна! Това е копи-пейст от други решения. Нямало ли е кой да го провери преди подписването? Как решението е минало през различните отдели на ДАБ с тези грешки?

За мен това е некомпетентност. И е подигравка с моя случай, че прекарах три години в опити да отменя това решение, на което му липсва азбучна компетентност.

Откога сте затворен в центъра за задържане в Бусманци?

В Бусманци съм от октомври 2021 г. досега, без определен срок и конкретни обвинения. Може би щеше да е по-добре, ако бях престъпник – щях да имам правото да знам кога изтича присъдата и какви са обвиненията срещу мен!

Как се живее на такова място?

Този център за задържане си е затвор със строг режим, с камери за наблюдение и подслушвателни устройства в стаите, железни врати и униформени полицаи, охраняващи стаите. Това изобщо не е бежански лагер.

Що се отнася до моето положение в Бусманци, върху мен беше упражнено директно насилие веднъж, докато чаках на опашка за храна, а полицейски служител ме ритна без причина.

Подлаган съм на различни видове натиск, да ме държат гладен например. А в отделението на ДАБ се случваше цялата вечеря да бъде отменена и да имаме само едно хранене на ден, като повечето храна беше такава, че и прасетата не биха посмели да я помиришат.

Освен това се неглижираха здравните грижи, което беше много лошо. Организирахме няколко гладни стачки, защото искахме да се изясни положението ни, да разберем обвиненията и основанията за задържането ни и да се подобрят качеството на храната и здравните грижи, но служителите ни казваха: „Вървете по дяволите!“ Единственото, което правеха, беше напълно да ни игнорират със седмици и да ни крещят: „Върни се в твоята страна!“; „Който не ни се подчинява, ще го върнем в страната му!“ Трябва да изпълняваш заповеди от служители на различни равнища, без да ги поставяш под въпрос, без да ги оспорваш и без да имаш никакви права. Това се случва най-вече от страна на служители на ДАБ, не само на полицията.

Отделението на ДАБ, за което говорите, в Бусманци ли е? Доколкото знам, центърът в Бусманци е към Дирекция „Миграция“ на МВР.

Да. Тук има две отделения. Едното е на „Миграция“, а другото, по-малкото, е на ДАБ.

Ако получите бежански статут в България, с какво ще се занимавате?

Мисля, че ще започна да работя за семейството си, ще осигуря на децата си подходящо образование и подходящ живот. Ще живея живота си и ще практикувам хобитата си – рисуване и готвене. Винаги съм мечтаел да изучавам готварското изкуство във водещо училище. Ще продължа дейността си в името на моята страна и на лишените от свобода в нея, както и за повече политически и социални свободи и гражданско участие. 

Как си представяте един свой ден на свобода в България?

Ако изляза на свобода дори само за един ден… Имам много приятели българи, мисля, че ще започна да опознавам страната и обществото заедно с тях. И може би ще мога да науча повече за културата, може би ще мога да хапна храна, подходяща за хора, за разлика от тази в Бусманци.

The 6.8 kernel has been released

Post Syndicated from corbet original https://lwn.net/Articles/964784/

Linus has released the 6.8 kernel.

So it took a bit longer for the commit counts to come down this
release than I tend to prefer, but a lot of that seemed to be about
various selftest updates (networking in particular) rather than any
actual real sign of problems. And the last two weeks have been
pretty quiet, so I feel there’s no real reason to delay 6.8.

Significant changes in this release include
the deadline servers scheduling feature,
support for memory-management
auto-tuning
in DAMON,
the large anonymous folios feature,
the kernel
samepage merging advisor
,
the ability to prevent writes to block
devices containing mounted filesystems,
the listmount() and
statmount() system calls
,
the first
device driver written in Rust
,
the removal
of the (never finished) bpfilter
packet-filtering system,
three new system calls for managing Linux
security modules,
the BPF token mechanism for fine-grained
control over BPF permissions,
support for data-type profiling in the
perf tool,
guest-first memory for KVM virtualization,
the Intel Xe graphics driver,
and a lot more. See the LWN merge-window summaries
(part 1,
part 2) for more information.

Huang: IRIS (Infra-Red, in situ) Project Updates

Post Syndicated from corbet original https://lwn.net/Articles/964956/

Andrew ‘bunnie’ Huang provides an update on
his IRIS infrared chip-scanning project as the starting point for a
detailed summary on how chip customers can detect forgeries and
modifications in general.

The technique works because although silicon looks opaque at
visible light, it is transparent starting at near-infrared
wavelengths (roughly 1000 nm and longer). Today’s commodity optics
and CMOS cameras are actually capable of working with lights at
this wavelength; thus, IRIS is a low-cost and effective technique
for confirming the construction of chips down to block level. For
example, IRIS can readily help determine if a chip has the correct
amount of RAM, number of CPU cores, peripherals, bond pads,
etc. This level of verification would be sufficient to deter most
counterfeits or substitutions.

The collective thoughts of the interwebz