Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions design-document.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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.

Expand Down Expand Up @@ -240,15 +240,15 @@ 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.

#### IID provisioner

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.

Expand All @@ -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:

Expand Down Expand Up @@ -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.

Expand Down
Binary file added graphics/design-doc-generic-architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/design-doc-http.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/design-doc-https.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/design-doc-iid-provisioner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/design-doc-jwk-provisioner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/design-doc-sso-provisioner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading