Best of Cloudflare2024

  1. 1
    Article
    Avatar of cloudflareCloudflare·2y

    The story of web framework Hono, from the creator of Hono

    Hono is a fast, lightweight web framework that works across various JavaScript environments, including Cloudflare Workers, Deno, Bun, and Node.js. It uses a Trie tree-based router and adheres to Web Standards, ensuring a 'write once, run anywhere' experience. Hono simplifies development with concise syntax, built-in middleware, strong type system, and server-side JSX support. It also has features for authentication, context model for state management, and robust testing capabilities. Recent updates include static site generation, client components, and file-based routing, allowing full-stack application development.

  2. 2
    Article
    Avatar of cloudflareCloudflare·1y

    Hi Claude, build an MCP server on Cloudflare Workers

    Anthropic announced a new way for AI applications to interact with services using Model Context Protocol (MCP). The post provides a guide on how to build an MCP server using Cloudflare Workers, making it easy to deploy services and applications that AI assistants like Claude can interact with. By leveraging Cloudflare Workers, developers can quickly set up MCP servers without dealing with complex configurations and schemas. The provided examples illustrate functionalities like generating images and sending messages seamlessly through AI integrations.

  3. 3
    Article
    Avatar of cloudflareCloudflare·2y

    Introducing Access for Infrastructure: SSH

    Cloudflare has introduced Access for Infrastructure, integrating BastionZero's features to enhance secure SSH access through Zero Trust principles. This solution uses short-lived SSH certificates to eliminate the risks associated with long-lived credentials, simplifies key management, and provides comprehensive auditing capabilities. It's designed to integrate seamlessly with existing Cloudflare One deployments and ensures that SSH connections are secure without compromising usability.

  4. 4
    Article
    Avatar of cloudflareCloudflare·2y

    Protecting APIs with JWT Validation

    Cloudflare customers can now protect their APIs from broken authentication attacks by validating incoming JSON Web Tokens (JWTs) with API Gateway's JWT Validation. The release addresses feature requests for supporting the Bearer token format, creating multiple JWKS configs, validating JWTs sent in cookies, and excluding managed endpoints in a JWT validation rule. Broken authentication is a major threat in API security, and JWT validation helps enforce a positive security model for authenticated API users. JWTs provide short-lived sessions and enhanced security compared to other authentication methods. API attacks like missing or broken authentication, expired token reuse, and Broken Function Level Authorization attacks can be prevented with proper authentication and authorization. API Gateway's JWT Validation checks JWT signatures, expiration times, and the presence of authentication tokens to protect against these attacks. Cloudflare Access and custom Cloudflare Workers are other options for JWT validation, but API Gateway provides an easier and more manageable experience. Future releases will expand the capabilities of API Gateway, including generating and enforcing authorization policies and enhancing API management with Cloudflare.

  5. 5
    Article
    Avatar of cloudflareCloudflare·2y

    Cloudflare’s 12th Generation servers — 145% more performant and 63% more efficient

    Cloudflare's new Gen 12 servers, powered by AMD EPYC 9684X processors, offer 145% more performance and 63% higher efficiency compared to the previous Gen 11 servers. Key improvements include support for AI/ML workloads, optimized memory and storage configurations, enhanced security measures with hardware root of trust, and dual-sourcing network interface cards to ensure supply chain resilience. The servers also feature a dual 800W power supply for redundancy and drop-in GPU support to meet growing AI demand.

  6. 6
    Article
    Avatar of cloudflareCloudflare·2y

    Migrating billions of records: moving our active DNS database while it’s in use

    Cloudflare undertook the complex task of migrating billions of DNS records from their main database cluster (**cfdb**) to a new cluster (**dnsdb**) to alleviate strain and improve scalability. The migration was meticulously planned to ensure no data loss and minimal downtime. Key steps included creating a change logging system, using triggers to capture updates, and implementing a replication process. The final migration resulted in improved database performance and reduced incident rates, setting the stage for future scalability.