diff --git a/design-document.mdx b/design-document.mdx index 206056bb..097de4d4 100644 --- a/design-document.mdx +++ b/design-document.mdx @@ -95,7 +95,7 @@ Let's consider a simple concrete example: using _step certificates_ to issue cer Assume our two services -- `foo.internal` and `bar.internal` -- currently communicate using plain HTTP: -![Foo & Bar speaking HTTP](https://i.imgur.com/A6kXsmo.png 'Foo & Bar speaking HTTP') +![Foo & Bar speaking HTTP](/graphics/design-doc-http.png 'Foo & Bar speaking HTTP') Our goal is to switch to mutually authenticated HTTPS (HTTP over mutual TLS). Most proxies and standard library HTTP stacks support mutual HTTPS. But each service will need three artifacts to speak HTTPS: @@ -107,7 +107,7 @@ The certificate and private key are credentials used for authentication. The roo Once everything is deployed our system will look like: -![Foo & Bar speaking HTTPS](https://i.imgur.com/r2AQPZV.png 'Foo & Bar speaking HTTPS') +![Foo & Bar speaking HTTPS](/graphics/design-doc-https.png 'Foo & Bar speaking HTTPS') Let's use _step certificates_ ( `step` and `step-ca` ) to generate and deploy these artifacts. @@ -240,7 +240,7 @@ To verify the legitimacy of certificate signing requests, we need some entity th In general, once a _provisioner_ authenticates a workload's identity it issues the workload a _bearer token_ to submit to the CA, along with a [certificate signing request](https://smallstep.com/blog/everything-pki.html#certificate-signing-requests 'CSR') (CSR), to obtain a certificate. The _bearer token_ authenticates the workload and authorizes the certificate request. -![Generic Architecture](https://i.imgur.com/zH4RYEj.png 'Generic Architecture') +![Generic Architecture](/graphics/design-doc-generic-architecture.png 'Generic Architecture') The details of how a provisioner interacts with a workload (or device or person) and the CA vary by provisioner type. Smallstep supports a number of provisioner types including, AWS Instance Identity Documents, Google Cloud Instance Identity Tokens, the Azure Instance Metadata Service, OAuth/OIDC Single Sign-on, and JWT for building custom integrations. @@ -248,7 +248,7 @@ The details of how a provisioner interacts with a workload (or device or person) For cloud VMs running on AWS, GCP, or Azure `step-ca` can be configured to use _instance identity documents_ (IIDs) to authorize certificate signing requests. IIDs make integrating `step certificates` even easier: instead of building and integrating a JWK provisioner that issues tokens to workloads, `step` can request tokens directly from your cloud provider's _metadata API_ with no additional infrastructure requirements: -![IID Provisioner Architecture](https://i.imgur.com/pdeFC1g.png 'IID Provisioner Architecture') +![IID Provisioner Architecture](/graphics/design-doc-iid-provisioner.png 'IID Provisioner Architecture') Once you've configured `step-ca` [to use IIDs for authentication](step-ca/provisioners.mdx#cloud-provisioners), `step` will detect the provisioner type, obtain an IID token from your cloud provider, and use it to obtain a certificate from `step-ca` automatically. @@ -274,7 +274,7 @@ foo$ step ca certificate foo.internal foo.crt foo.key --issuer "Google Cloud" Occasionally it's useful to issue certificates to people (for example, for testing and debugging). To facilitate this, `step-ca` can be [configured to use OAuth/OpenID Connect (OIDC)](step-ca/provisioners.mdx#oauthoidc-single-sign-on 'OIDC') _identity tokens_ for authentication. In other words, you can use single sign-on with GSuite, Okta, Active Directory, or any other OAuth OIDC provider to get a certificate: -![SSO Provisioner Architecture](https://i.imgur.com/OIX5Wav.png 'SSO Provisioner Architecture') +![SSO Provisioner Architecture](/graphics/design-doc-sso-provisioner.png 'SSO Provisioner Architecture') Again, `step` detects the provisioner type selected and initiates the OAuth flow automatically: @@ -311,7 +311,7 @@ Because the JWTs issued by JWT provisioners are short-lived and single-use they To create a JWK provisioner you generate a key pair, represented as a JSON Web Key (JWK), and register the public key with the CA. Optionally, the CA can escrow the corresponding private key (symmetrically encrypted with a password). -![JWK Provisioner Architecture](https://i.imgur.com/7a97FrJ.png 'JWK Provisioner Architecture') +![JWK Provisioner Architecture](/graphics/design-doc-jwk-provisioner.png 'JWK Provisioner Architecture') A JWK provisioner was created automatically for us when we ran `step ca init` . We named this provisioner `admin` using the `--provisioner` flag. The private key was encrypted using the password from `--provisioner-password-file` and escrowed with the CA. diff --git a/graphics/design-doc-generic-architecture.png b/graphics/design-doc-generic-architecture.png new file mode 100644 index 00000000..29929b5e Binary files /dev/null and b/graphics/design-doc-generic-architecture.png differ diff --git a/graphics/design-doc-http.png b/graphics/design-doc-http.png new file mode 100644 index 00000000..073bd5be Binary files /dev/null and b/graphics/design-doc-http.png differ diff --git a/graphics/design-doc-https.png b/graphics/design-doc-https.png new file mode 100644 index 00000000..17d2ea77 Binary files /dev/null and b/graphics/design-doc-https.png differ diff --git a/graphics/design-doc-iid-provisioner.png b/graphics/design-doc-iid-provisioner.png new file mode 100644 index 00000000..a8130598 Binary files /dev/null and b/graphics/design-doc-iid-provisioner.png differ diff --git a/graphics/design-doc-jwk-provisioner.png b/graphics/design-doc-jwk-provisioner.png new file mode 100644 index 00000000..63145a57 Binary files /dev/null and b/graphics/design-doc-jwk-provisioner.png differ diff --git a/graphics/design-doc-sso-provisioner.png b/graphics/design-doc-sso-provisioner.png new file mode 100644 index 00000000..a0d00625 Binary files /dev/null and b/graphics/design-doc-sso-provisioner.png differ