Skip to content

Commit

Permalink
Change tls cert rotation policy to never and rotation docs (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
HaniAlshikh committed Sep 7, 2022
1 parent 6ee6c3f commit 52e5b72
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
- key encipherment
- client auth
privateKey:
rotationPolicy: Always
rotationPolicy: Never
algorithm: RSA
encoding: PKCS1
size: 2048
Expand Down
12 changes: 12 additions & 0 deletions docs/operation/04-k8s-auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,15 @@ Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.7", GitCom
```

You're good to go!

## Certificate rotation

The certificate used by Monoskope to sign and verify k8s tokens has a long expire date by design.

Rotating it can be done easily using the [cert-manager CLI](https://cert-manager.io/docs/reference/cmctl/#renew)

```shell
cmctl renew m8-monoskope-tls-cert
```

For more information see [here](https://cert-manager.io/docs/usage/certificate#actions-triggering-private-key-rotation)

0 comments on commit 52e5b72

Please sign in to comment.