<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ben Burkert on Medium]]></title>
        <description><![CDATA[Stories by Ben Burkert on Medium]]></description>
        <link>https://medium.com/@benburkert?source=rss-be600cd8a010------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*rbgKiojcnObapERu</url>
            <title>Stories by Ben Burkert on Medium</title>
            <link>https://medium.com/@benburkert?source=rss-be600cd8a010------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 22:41:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@benburkert/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Service to Service TLS in Development]]></title>
            <link>https://medium.com/effortless-encryption/service-to-service-tls-in-development-d0df479d67ce?source=rss-be600cd8a010------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0df479d67ce</guid>
            <category><![CDATA[tls]]></category>
            <category><![CDATA[acme]]></category>
            <category><![CDATA[encryption]]></category>
            <category><![CDATA[x509certificate]]></category>
            <category><![CDATA[x509]]></category>
            <dc:creator><![CDATA[Ben Burkert]]></dc:creator>
            <pubDate>Tue, 31 Oct 2023 20:11:14 GMT</pubDate>
            <atom:updated>2023-10-31T20:11:14.423Z</atom:updated>
            <content:encoded><![CDATA[<p>Anchor makes it quick and easy to add TLS encryption between internal services. Running a private X.509 certificate authority (CA) is difficult and tricky, ask any developer who’s had the misfortune of needing one. But Anchor changes that; see how easy it is to secure services with internal TLS using Anchor.</p><p>When you sign up for Anchor, a dedicated private and fully managed CA is automatically provisioned for your development environment (for free!). You can use your CA with any standard ACME client (most languages have one) to provision server certificates for your services in development. For the service’s clients, we build language and OS packages so that clients are configured to trust the server certificates.</p><p>In this article we’ll cover setting up TLS between a Ruby on Rails client application and a RESTful Go API application. At the end, the apps will communicate via encrypted HTTPS instead of unencrypted HTTP requests. All entirely within our local development environment.</p><h3>Getting Started</h3><p>Before diving straight into service-to-service TLS, we recommend working through our <a href="https://blog.anchor.dev/getting-started-with-anchor-for-local-development-6dd2cd605c08">“Getting Started with Anchor for Local Development”</a> article. It only takes a few minutes, and it covers everything you need to use HTTPS/TLS in your local development environment with <a href="https://docs.anchor.dev/getting-started/lcl-host">lcl.host subdomains</a>. <strong>And for simplicity, the </strong><strong>rails-demo app will be re-used as the client for this service-to-service TLS example.</strong></p><blockquote><em>The example services will be a Ruby on Rails frontend app talking to a Go API backend app, but any combination of supported languages work just as well. </em><a href="https://docs.anchor.dev/"><em>Check out our docs for instructions on how to use other languages with Anchor.</em></a></blockquote><h3>Service Setup</h3><p>The first step is to create the new backend service: sign in to the <a href="https://anchor.dev/">Anchor dashboard</a>, then click the <em>New Service</em> button to jump to the service form. Fill in the service name (go-api) and language (Go). In the <em>Clients</em> section, add a new client named rails-demo and set the type as Ruby. Stick with the default values for the rest, and click the <em>Create Service</em> button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yU8AXQ5lTlJG5aIxG33zkw.png" /></figure><h4>Server Step</h4><p>Next up is the <em>Server Setup</em> instructions, but first we need to create the go-api app on our development machine. Start by creating a new Go project:</p><pre>$ mkdir go-api &amp;&amp; cd go-api<br>$ go mod init</pre><p>And add the following main.go program:</p><pre>package main<br><br>import (<br>  &quot;crypto/tls&quot;<br>  &quot;encoding/base64&quot;<br>  &quot;log&quot;<br>  &quot;net/http&quot;<br>  &quot;os&quot;<br>  &quot;time&quot;<br><br>  &quot;golang.org/x/crypto/acme&quot;<br>  &quot;golang.org/x/crypto/acme/autocert&quot;<br>)<br><br>func main() {<br>  // setup the API server<br>  srv := &amp;http.Server{<br>    Handler: http.HandlerFunc(api),<br>  }<br><br>  // load the secret portion of the ACME EAB token<br>  acmeKey, err := base64.RawURLEncoding.DecodeString(os.Getenv(&quot;ACME_HMAC_KEY&quot;))<br>  if err != nil {<br>    log.Fatal(err)<br>  }<br><br>  // configure TLS via ACME provisioned certificates<br>  cfg := &amp;tls.Config{<br>    GetCertificate: (&amp;autocert.Manager{<br>      Prompt:      autocert.AcceptTOS,<br>      HostPolicy:  autocert.HostWhitelist(os.Getenv(&quot;HOST&quot;)),<br>      RenewBefore: 336 * time.Hour, // 14 days<br><br>      Client: &amp;acme.Client{<br>        DirectoryURL: os.Getenv(&quot;ACME_DIRECTORY_URL&quot;),<br>      },<br><br>      ExternalAccountBinding: &amp;acme.ExternalAccountBinding{<br>        KID: os.Getenv(&quot;ACME_KID&quot;),<br>        Key: acmeKey,<br>      },<br>    }).GetCertificate,<br>  }<br><br>  // provision a certificate and create the TLS listener<br>  ln, _ := tls.Listen(&quot;tcp&quot;, os.Getenv(&quot;ADDR&quot;), cfg)<br>  if err != nil {<br>    log.Fatal(err)<br>  }<br><br>   // Start the https server<br>   log.Fatal(srv.Serve(ln))<br>}<br><br>func api(w http.ResponseWriter, r *http.Request) {<br>  w.Write([]byte(&quot;pong!\n&quot;))<br>}</pre><p>Then run go get to install the dependencies:</p><pre>$ go get .</pre><p>Skip to section <em>2: Server Setup</em> of the <em>Setup Guide</em>, generate an EAB token set, export the environment variables, and start the go-api server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X7LSBxNwMarw89Q116egwA.png" /></figure><p>Open the API endpoint in your browser, you should see the pong! message.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aEWM8EvNnPA4DwzAQ1bzxA.png" /></figure><blockquote><em>If you see a </em><strong><em>“Not Secure”</em></strong><em> warning in the browser, most likely your local development machine has not been set up with the Anchor CLI toolchain. Step </em>4: Anchor Toolchain<em> of the </em>Setup Guide<em> has instructions to download and install the toolchain.</em></blockquote><h4>Client Step</h4><p>To configure the rails app as a client, start by downloading the ruby package to the rails-demo directory using the <em>Download Package</em> button. Then use the gem and bundler commands to add it as dependency:</p><pre>$ gem install ./path/to/username-localhost-pki-0.1.0.gem<br>$ bundler add username-localhost-pki --group development</pre><blockquote><em>Be sure to swap </em><em>username with your GitHub handle!</em></blockquote><p>Generate a new controller and /ping endpoint in the rails app:</p><pre>$ rails generate controller ping</pre><p>And add a get ‘/ping’, to: ‘ping#index’ route to config/routes.rb:</p><pre>Rails.application.routes.draw do<br>  get &#39;/ping&#39;, to: &#39;ping#index&#39;<br><br>  # ...<br>end</pre><p>In the new PingController class, add an index action based on section <em>3: Ruby client setup</em> of the <em>Setup Guide</em>:</p><pre>class PingController &lt; ApplicationController<br>  def index<br>    client = Net::HTTP.start(&#39;go-api.lcl.host&#39;, &#39;PORT&#39;, use_ssl: true, cert_store: Anchor.cert_store)<br><br>    render plain: client.get(&#39;/ping&#39;).body<br>  end<br>end</pre><p>Start the rails server, and in the browser load the /ping endpoint. The pong! response has been proxied through the rails app from the go-api app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LkXVHBwKiS4xR0KbtKWaig.png" /></figure><blockquote><em>The </em><em>cert_store: Anchor.cert_store parameter configures the HTTP client to trust the </em><em>go-api.lcl.host server cert. Removing it causes the client to raise a </em><strong><em>“self-signed certificate”</em></strong><em> error.</em></blockquote><h3>Next Steps</h3><p>Your rails app is now connected to the Go API using internal TLS for encryption with your development X.509 CA hosted by Anchor. <strong>Try adding a second API client in a different language, and check out our docs for more info. </strong>Or take an existing application and set up TLS/HTTPS in local development. The best part about switching your app to use internal TLS in development is that your app now ready for internal TLS in your staging &amp; production environments.</p><p>If you have any comments, run into trouble, or are interested in joining our early access program for staging &amp; production environments, please get in touch via <a href="/service/mailto:contact@anchor.dev">email</a> or through our <a href="https://anchor.dev/discord">discord community</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d0df479d67ce" width="1" height="1" alt=""><hr><p><a href="https://medium.com/effortless-encryption/service-to-service-tls-in-development-d0df479d67ce">Service to Service TLS in Development</a> was originally published in <a href="https://medium.com/effortless-encryption">Effortless Encryption</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started with Anchor for Local Development]]></title>
            <link>https://medium.com/effortless-encryption/getting-started-with-anchor-for-local-development-6dd2cd605c08?source=rss-be600cd8a010------2</link>
            <guid isPermaLink="false">https://medium.com/p/6dd2cd605c08</guid>
            <category><![CDATA[tls]]></category>
            <category><![CDATA[pki]]></category>
            <category><![CDATA[acme]]></category>
            <category><![CDATA[encryption]]></category>
            <dc:creator><![CDATA[Ben Burkert]]></dc:creator>
            <pubDate>Tue, 17 Oct 2023 18:51:20 GMT</pubDate>
            <atom:updated>2023-10-17T18:51:20.933Z</atom:updated>
            <content:encoded><![CDATA[<p>Manually setting up HTTPS/TLS on your local machine is really painful. <a href="https://anchor.dev/">Anchor</a> is here to make this process quick and easy. In this post, I’ll show you how to quickly set up TLS certificates for a local application and get it working with HTTPS in your browser.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FxV_47TCtQqw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DxV_47TCtQqw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FxV_47TCtQqw%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/321d39bbb2eaa3bd4f13e02a7b20b33d/href">https://medium.com/media/321d39bbb2eaa3bd4f13e02a7b20b33d/href</a></iframe><h3>Anchor Primer</h3><p>At Anchor, we build &amp; manage dedicated certificate authorities (CAs) with <a href="https://en.wikipedia.org/wiki/Automatic_Certificate_Management_Environment">ACME protocol</a> support. ACME makes it really easy to provision certificates for your application, but we don’t stop there. We also help you set up your application clients and systems so that certificates are trusted in all of your infrastructure.</p><p>You can use Anchor as an organization or as an individual in your development environment, today, for free. If you run TLS already in your staging and production environments, developing with TLS can help catch encryption &amp; TLS related bugs during development. Or, if you want an easy way to develop with HTTPS in the browser, Anchor helps with that too. <strong>Achieve </strong><a href="https://12factor.net/dev-prod-parity"><strong>dev/prod parity</strong></a><strong> for encryption &amp; HTTPS with Anchor.</strong></p><h3>Services, not Cipher Suites</h3><p>There’s no complicated encryption or X.509 decisions to make with Anchor. Using our services form, we collect some basic information about your applications, clients, and infrastructure. Next we automatically provision your CA components Then we provision your PKI and provide setup instructions for your application. In this guide, the example app will be a new Ruby web application, but you can use Python, Node.js, and Go as well.</p><p>Let’s start by <a href="https://guides.rubyonrails.org/getting_started.html#creating-a-new-rails-project-installing-rails">generating a new Ruby on Rails application</a> on our development machine:</p><pre>$ rails new rails-demo</pre><p>While that command is running, sign up or sign into <a href="https://anchor.dev/">https://anchor.dev/</a> via GitHub and click the <strong><em>New Service</em></strong> button to start the service form. Fill in only the name and language of your new service, and leave the default values for the rest.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c_Y10fcJmgMSvDXsFFcNAQ.png" /><figcaption>Fill in the service name and language.</figcaption></figure><p>Click the <strong><em>Create Service</em></strong> button and proceed to the setup instructions.</p><h4>lcl.host</h4><p>You likely noticed the <strong><em>Localhost</em></strong> section had a URL for a lcl.host subdomain based on the name of your service. The lcl.host domain is special: any subdomain will always route to your local machine (127.0.0.1 and ::1). With lcl.host, <strong>you can use certificates in local development without the hassle of setting up DNS records or running a reverse tunnel</strong>.</p><h3>Setup Guide</h3><p>Back in the browser, the setup guide has instructions on how to configure your application to set up an ACME client that provisions certificates from your new Anchor CA. Follow the instructions for the <strong><em>Application Setup</em></strong> section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WfUlAauwWa2LnONRk7Xp6w.png" /><figcaption>Follow the setup instructions.</figcaption></figure><p>Next up in the <strong><em>Server Setup</em></strong> section, generate an EAB token set, export it in your local environment, and start the local server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*btxO6HZ0uwpRNvl5WLFRPA.png" /><figcaption>Export the EAB token environment variables.</figcaption></figure><p>Now your application is serving traffic over HTTPS. Check out the application in your browser. <strong>Expect to see a <em>“Not Secure”</em> browser warning.</strong> Once we’ve used the Anchor CLI toolchain to configure our system, this warning will go away.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kV5vDy-Y1eNe4g6eEm0DCA.png" /><figcaption>“Not Secure” browser warning.</figcaption></figure><h3>Anchor Toolchain</h3><p>Follow the instructions in the third section to install the Anchor CLI command via <a href="https://brew.sh/">homebrew</a>, and install your new root certificates into your system trust store.</p><pre>$ brew install anchordotdev/tap/anchor<br>$ anchor auth signin<br>$ anchor trust</pre><p>Back in your browser, reload the page. The <strong><em>“Not Secure”</em></strong> warning is now gone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CzxerCiOPWM-2nyHUNGbPg.png" /><figcaption>Default Ruby on Rails page served via HTTPS.</figcaption></figure><h3>Next Steps</h3><p>With your application setup with HTTPS in local development, you can easily work on browser features that require HTTPS. Next time, we’ll show you how to extend your service with client package support to quickly set up TLS for multi-service architectures in local development.</p><p>If you have any comments, run into trouble, or are interested in joining our early access program for staging &amp; production environments, please get in touch via <a href="/service/mailto:contact@anchor.dev">email</a> or through our <a href="https://anchor.dev/discord/">discord community</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6dd2cd605c08" width="1" height="1" alt=""><hr><p><a href="https://medium.com/effortless-encryption/getting-started-with-anchor-for-local-development-6dd2cd605c08">Getting Started with Anchor for Local Development</a> was originally published in <a href="https://medium.com/effortless-encryption">Effortless Encryption</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blast Radius & Certificate Constraints]]></title>
            <link>https://medium.com/effortless-encryption/blast-radius-certificate-constraints-6aa8081c66f7?source=rss-be600cd8a010------2</link>
            <guid isPermaLink="false">https://medium.com/p/6aa8081c66f7</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[x509]]></category>
            <category><![CDATA[tls-certificate]]></category>
            <category><![CDATA[key-management]]></category>
            <category><![CDATA[certificate-authority]]></category>
            <dc:creator><![CDATA[Ben Burkert]]></dc:creator>
            <pubDate>Wed, 11 Oct 2023 16:05:05 GMT</pubDate>
            <atom:updated>2023-10-11T16:05:05.194Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7iqwGoaT97u9vEkKuaA6_w.png" /><figcaption>Circling Meteor Crater by <a href="https://flickr.com/photos/jurvetson/">Steve Jurvetson</a></figcaption></figure><h3>Lea Kissner on Twitter: &quot;Crypto is a tool for turning a whole swathe of problems into key management problems. Key management problems are way harder than (virtually all) cryptographers think. https://t.co/RkNQEwwrdw / Twitter&quot;</h3><p>Crypto is a tool for turning a whole swathe of problems into key management problems. Key management problems are way harder than (virtually all) cryptographers think. https://t.co/RkNQEwwrdw</p><p>Experienced security practitioners know that key management is fraught with risk. And systems that build on secure key management, like internal TLS deployments, inherit these risks of key compromise and exploitation. By designing systems with “blast radius” in mind, it is possible to contain these risks. Fortunately, internal certificate authorities have some unique but little-known properties available for shaping the “blast radius” to reduce operational risk.</p><h3>Key Management</h3><p>Key management is hard because it requires both strong technical design and operational expertise, and also carries high risk. These two characteristics (complexity &amp; hazard) together make these systems expensive to operate. For cloud providers, the margins on key management services are enviable, but the value capture is easily justified given the costs &amp; risks of handling key management in-house. And competition between cloud providers and others in the market is driving costs down.</p><p>Systems that build on secure key management, like internal TLS deployments, are cheaper today because of the shift to the cloud, but still carry similar levels of risk. Root key exposure is catastrophic. And lateral movement is assumed. <strong>In today’s operating environment, the risks of compromise &amp; exposure are much greater than the operational cost for internal TLS deployments</strong>. Addressing and reducing the risk in these systems is a more effective way to further reduce their cost.</p><h3>Blast Radius</h3><p>The AWS team has popularized the term “blast radius” as the consideration of impact on a larger system due a failure of a smaller portion of the system. <a href="https://www.youtube.com/watch?v=swQbA4zub20">Embracing failure helps the AWS team deliver industry-leading availability and operational excellence.</a> These same principles work just as well when designing secure systems with failure as a forethought. In the security case, this upfront consideration makes it possible to quantify and reduce risk.</p><p>In recent years, there has been a push for cryptographers to design protocols with key compromise as an inevitability. <a href="https://en.wikipedia.org/wiki/Signal_Protocol">The Signal Protocol</a> is one of the most well-known protocols designed for cryptographic resilience. It introduced the novel <a href="https://signal.org/docs/specifications/doubleratchet/">Double Ratchet Algorithm</a>, which provides recovery from key compromise and forward secrecy. This limits the blast radius of device compromise for Signal users to a portion of their messages instead of their full history, past and present.</p><h3>WebPKI and Public CAs</h3><p>In the world of WebPKI and certificate authorities, the <a href="https://certificate.transparency.dev/">Certificate Transparency</a> (CT) protocol was conceived in an effort to minimize the blast radius of Certificate Authority (CA) compromise. When a CA exposes a signing key, the key can be used to issue publicly trusted end-entity certificates until the corresponding CA certificate is revoked or removed by the root store operators. Likewise, if a CA is fooled into mis-issuing a certificate, the bogus certificate can be used for impersonation until it is detected and revoked. But detecting improperly issued certificates is a difficult problem, since there is no central service involved when setting up TLS connections.</p><p>Certificate Transparency was created with the goal of improving detection of compromised or misbehaving certificate authorities. CAs publish an append-only audit log of all certificates issued by the CA, and these logs are monitored for suspicious certificates. When a certificate authority is fooled into forging a certificate, the certificate will show up in a CT log where it can be detected and quickly revoked. Vice versa, if a browser is presented with a certificate that does not have a corresponding entry in the issuer’s CT log, this is a strong indication that the issuing CA has been compromised. To date, Certificate Transparency has been very effective at scoping the blast radius of CA compromise and certificate mis-issuance.</p><h3>Internal CAs</h3><p>However, behind the firewall, Certificate Transparency isn’t so helpful at detecting CA compromise and certificate mis-issuance. Because internal CAs are typically used by a single organization, other organizations have no incentive (or even ability) to monitor their internal CT logs and certificates used internally by an organization. Compared to regular ways to audit an internal CA, CT logs do not offer anything extra to scope blast radius. However, there are some parts of X.509 &amp; <a href="https://datatracker.ietf.org/doc/html/rfc5280">RFC 5280</a> not available to public CAs, that can be used to scope blast radius for internal TLS deployments.</p><h4>Name Constraints</h4><p><a href="https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.10">Section 4.2.1.10 of RFC 5280</a> defines the name constraints extension for CA certificates. These name constraints allow a CA certificate to encode the set of FQDNs DNS names and CIDR address ranges that are permitted (or excluded). It’s a bit like the <a href="https://man.openbsd.org/pledge.2#DESCRIPTION">pledge syscall in OpenBSD</a>: the CA certificate self-selects the namespace for all certificates it issues.</p><p>If an end entity certificate contains a common name or Subject Alternative Name that does not match one of the issuer’s (or issuer’s issuer, and so on) name constraints, clients will reject the certificate when attempting to validate it. <a href="https://github.com/openssl/openssl/blob/ac0677bd2394c04632f7ad526879a866b6ed149f/crypto/x509/x509_vfy.c#L791-L825">Here is the relevant C code in OpenSSL.</a></p><p>For example, we have a root certificate with a permitted name constraint of .mycorp.it, and two subordinate certificates with the respective name constraints for the staging (.stg.mycorp.it.) and production (.prd.mycorp.it.) environments. If the staging CA were compromised, the attacker could issue certificates for both the staging (mysrv.stg.mycorp.it) and production (mysrv.prd.mycorp.it) environments, but only the staging certificate would be valid since the production dns name would not match the staging CA’s name constraint. <strong>Name constraints used in this way will scope the blast radius of key material compromise to a single environment.</strong></p><p>Name constraints can also eliminate man-in-the-middle certificate attack surface area. In the previous example, if the root certificate had no name constraint and the signing key were compromised, the attacker could issue a certificate for any domain name–even “gmail.com” or “packages.ubuntu.com”. Any internal systems that trusted the root certificate would in turn trust bogus certificates presented by the attacker. But with the name constraint in place, the attacker could only impersonate subdomains under the internal company domain (*.mycorp.it).</p><h4>Path Length Constraint</h4><p><a href="https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.9">RFC 5280 also defines a path length field</a> (pathLenConstraint) as part of the basic constraints. Path length is an optional unsigned integer that indicates the number of CA certificates allowed in the certificate chain. For example, a path length of zero only allows end-entity certificates to be issued, while a path length of one would allow one more level of subordinate CAs.</p><p>The path length constraint can be used to reduce the risk of certificate mis-issuance by a CA certificate. For example, an attacker that manages to fool the CA into issuing a bogus certificate, but is otherwise unable to access the signing key of the CA. If the attacker is able to obtain a CA certificate (with the cA field set), it can in turn issue bogus certificates without needing to fool the CA again for each new certificate. This is effectively the same as compromising the CA’s key material. But a CA with a path length constraint of zero will neutralize these bogus subordinate CA certificates because no client will validate the bogus subordinate (even if its cA field is set).</p><h3>Anchor</h3><p>At Anchor, we build and operate internal TLS deployments on behalf of our customers. All CA certificates we issue (both root &amp; subordinate) always include name constraints and path length basic constraints. This reduces our customer’s risk to key exposure and certificate mis-issuance, and allows them to scope the blast radius of incidents to individual environments.</p><p>You can <a href="https://anchor.dev/">sign up for free</a> and start using Anchor in your local development environment today. And for staging and production environments, <a href="/service/mailto:contact@anchor.dev">please reach out to join our early access program</a>. For more details about what we’re building at Anchor, <a href="https://blog.anchor.dev/">stay tuned to our blog</a> and <a href="https://anchor.dev/discord">join our discord community</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6aa8081c66f7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/effortless-encryption/blast-radius-certificate-constraints-6aa8081c66f7">Blast Radius &amp; Certificate Constraints</a> was originally published in <a href="https://medium.com/effortless-encryption">Effortless Encryption</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond Baseline Requirements: Introducing Anchor, Part 2 of 3]]></title>
            <link>https://medium.com/effortless-encryption/beyond-baseline-requirements-introducing-anchor-part-2-of-3-6b1d513305d9?source=rss-be600cd8a010------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b1d513305d9</guid>
            <category><![CDATA[acme]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[computer-security]]></category>
            <category><![CDATA[encryption]]></category>
            <dc:creator><![CDATA[Ben Burkert]]></dc:creator>
            <pubDate>Fri, 15 Sep 2023 15:30:26 GMT</pubDate>
            <atom:updated>2023-09-15T20:55:03.216Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rsDsJvx7SdA44o7HlpUJCg.png" /></figure><p>For an on-call engineer, there are few things more fear- inducing than an alert with the words <strong>“certificate expired”</strong>. I’ve been woken up countless times by unseen, expiring certificates nested deep in the infrastructure, triggering a flood of connection issues. Sometimes the cause was automation failures, but more often than not the certificate was manually-provisioned without a plan for renewal.</p><p>I don’t believe this is an isolated problem. I’m not exaggerating when I say that every company I have worked for has at least one, often multiple, internal CA deployments. All of them incurred outages that affected customers. One startup had a veteran security engineering team building custom CA tooling, yet we still had an extended outage due to an expired root certificate.</p><p>In our <a href="https://blog.anchor.dev/the-acme-gap-introducing-anchor-part-1-of-3-2466ad7e53f6">previous article</a>, we talked about why we think there is an opportunity for internal TLS with ACME to be the best choice for application encryption. But if your experience with private CAs is anything like mine, the idea of using one is off putting. Why do private CAs conjure strong associations with toil, incidents, outages, and drained productivity? We believe this has little to do with the service they provide, and everything to do with their intended audience.</p><p>All CA products have roughly the same set of baseline requirements: strong security, auditability, role based access, extensibility, and so on. Some tick more boxes, others less, but they are all built for seasoned security teams. This is an audience that already has a strong understanding of CAs, how the underlying protocols (like TLS) work, and how a well run CA should be operated.</p><p>What’s missing is a product built for developers who are not dedicated to security. <strong>These users need a product that meets those baseline requirements while removing the <em>need</em> for them to be security experts.</strong> That is why we are building Anchor with the following properties in mind.</p><h4><strong>Developer Oriented</strong></h4><p>Encryption is too critical in 2023 for developers to completely outsource to operations and security teams. At the same time, developers have to be empowered and benefit from integrating encryption. Mapping encryption problems (traditionally solved with secops solutions) to developer solutions is the best way to achieve this.</p><ul><li>First-class language support through <strong>native APIs</strong> and <strong>language packages</strong>.</li><li>Encryption that leads to simpler architectures, not increased complexity.</li><li>Automation &amp; provisioning based on API tokens, not dealing with keys and certificates directly.</li><li>Bring maintenance &amp; upgrades into <strong>CI/CD pipelines</strong>.</li></ul><h4><strong>Encryption Dev/Prod Parity</strong></h4><p>Encrypting application traffic is often overlooked while talking about <a href="https://12factor.net/dev-prod-parity">Dev/Prod parity</a>. Developers need local access to encryption infrastructure in their development environments to build stable systems in production. Stability in production starts with confidence in the development environment.</p><ul><li>Integrating application encryption must be the same for all environments, <strong>including development</strong>.</li><li>Local access to encryption infrastructure should not be a burden or point of friction.</li></ul><h4><strong>Maintenance as a Forethought</strong></h4><p>Encryption infrastructure typically has high maintenance requirements, but when planned for from the outset, maintenance can follow very normal schedules. When done properly, a well designed maintenance schedule can practically eliminate the toil of operating these systems.</p><ul><li>Regular schedules for credential rotation, artifact generation, and upgrade windows.</li><li>Must be highly automatable for quick incident response.</li><li>Proactive and ongoing maintenance notifications.</li></ul><h4><strong>Beyond Baseline</strong></h4><p><strong>Anchor centers on the service or application being encrypted instead of on the encryption itself.</strong> By focusing on the developer and developer experience, Anchor delivers a very different product than your mental model of a CA. This is a security product built for application developers.</p><p>In our next post we’ll showcase Anchor and how it is able to deliver the desirable properties outlined. If you want to share your thoughts or learn more, come <a href="https://anchor.dev/discord">join the discussion in our discord community</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b1d513305d9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/effortless-encryption/beyond-baseline-requirements-introducing-anchor-part-2-of-3-6b1d513305d9">Beyond Baseline Requirements: Introducing Anchor, Part 2 of 3</a> was originally published in <a href="https://medium.com/effortless-encryption">Effortless Encryption</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>