Skip to content
Open
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
20 changes: 20 additions & 0 deletions docs/docs/howto/manifest-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,23 @@ for all your application resources.
As described above, a manifest update triggers rotation of the mesh CA certificate, the intermediate CA certificate and the workload certificates.
You can use this to force a certificate rotation or to constrain the certificate validity period.
Setting the current manifest once more causes a certificate rotation, without changing the reference values enforced by the Coordinator.

### Atomic manifest updates

Setting the manifest won't consider the previous state of the Coordinator.
This means that after a manifest update, you may have accidentally overwritten a previous Coordinator state set by another party.
To prevent this, use the `--atomic` flag:

```sh
contrast set -c "${coordinator}:1313" --atomic resources/
```

This will only update the manifest if the manifest history at the Coordinator matches the expected history.
When setting the manifest on an already initialized Coordinator, the latest transition hash has to be obtained by running `contrast verify`.
An atomic manifest update will then automatically read the hash from `verify/latest-transition`.
When setting the manifest for the first time, the expected transition hash is `00...00` (32 zero bytes, hex-encoded) and will be set automatically if the `verify/latest-transition` file doesn't exist.
Optionally, you can specify a transition hash using the `--latest-transition` flag:

```sh
contrast set -c "${coordinator}:1313" --atomic --latest-transition ab...cd resources/
```
20 changes: 0 additions & 20 deletions docs/docs/howto/workload-deployment/set-manifest.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,3 @@ contrast set -c "${coordinator}:1313" resources/
```

This will use the reference values from the manifest file to attest the Coordinator. After this step, the Coordinator will start issuing TLS certificates to the workloads. The init container will fetch a certificate for the workload and the workload is started.

### Atomic manifest updates

Setting the manifest won't consider the previous state of the Coordinator.
This means that after a manifest update, you may have accidentally overwritten a previous Coordinator state set by another party.
To prevent this, use the `--atomic` flag:

```sh
contrast set -c "${coordinator}:1313" --atomic resources/
```

This will only update the manifest if the manifest history at the Coordinator matches the expected history.
When setting the manifest on an already initialized Coordinator, the latest transition hash has to be obtained by running `contrast verify`.
An atomic manifest update will then automatically read the hash from `verify/latest-transition`.
When setting the manifest for the first time, the expected transition hash is `00...00` (32 zero bytes, hex-encoded) and will be set automatically if the `verify/latest-transition` file doesn't exist.
Optionally, you can specify a transition hash using the `--latest-transition` flag:

```sh
contrast set -c "${coordinator}:1313" --atomic --latest-transition ab...cd resources/
```
Loading