Skip to content

Commit

Permalink
Updates for KES release 2024-06-17T15-47-05Z
Browse files Browse the repository at this point in the history
Closes #58

Changes for deprecating several `ls` commands
Updates to the kes identity command
Fix for kes identity new example
  • Loading branch information
djwfyi committed Jul 15, 2024
1 parent b453d5a commit e7e879e
Show file tree
Hide file tree
Showing 9 changed files with 142 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ draft: false
tableOfContents: true
---

{{< admonition title="Command deprecated" type="important" >}}
The `kes identity ls` command has been deprecated as of KES release `2024-06-17T15-47-05Z`.
Use [`kes ls`]({{< relref "/cli/kes-ls/" >}}) instead.
{{< /admonition >}}

## Overview

List the identities for the KES server.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ draft: false
tableOfContents: true
---

{{< admonition title="Command deprecated" type="important" >}}
The `kes identity ls` command has been deprecated as of KES release `2024-06-17T15-47-05Z`.
Use [`kes ls`]({{< relref "/cli/kes-ls/" >}}) instead.
{{< /admonition >}}

## Overview

Return a list of existing cryptographic keys.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ draft: false
tableOfContents: true
---

{{< admonition title="Command deprecated" type="important" >}}
The `kes identity ls` command has been deprecated as of KES release `2024-06-17T15-47-05Z`.
Use [`kes ls`]({{< relref "/cli/kes-ls/" >}}) instead.
{{< /admonition >}}

## Overview

Outputs a list of policies on the KES server.
Expand Down
38 changes: 32 additions & 6 deletions content/cli/kes-identity/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,52 @@ tableOfContents: true

## Overview

Use the `kes identity` commands to temporarily manage the identities that access the KES server.
Use the command to display, list, create, or remove identities.
Use the `kes identity` commands to generate the API key of an PEM key file.

All changes made by `kes identity` are lost when the KES server restarts.
In addition, you can use subcommands to temporarily manage the identities that access the KES server.
Use the subcommand to display, create, or remove identities.

All changes made by `kes identity` subcommands are lost when the KES server restarts.
To make persistent changes to KES identities, modify the `Policies and Identities` section of the KES [configuration file]({{< relref "tutorials/configuration.md#config-file" >}}).
Specifically, for each `policy.policyname` to modify, add/remove the identities to/from the `policy.policyname.identities` array.

This page provides reference information for the `kes identity` commands.
This page provides information for the `kes identity` commands.

## Generate an API Key

You can pass an Ed25519 type private key (``.PEM``) file with this command the KES returns an API key and identity for that key file.
You can also pass the certificate (`.crt`) file or an API key and return the identity.

For example, passing the `my-private-key.pem` file returns the identity and API key to use for the private key.

```sh {.copy}
kes identity my-private-key.pem
```

Passing a certificate or an API key instead of a PEM key returns only the identity for the passed value.

```sh {.copy}
kes identity my-certificate.crt
```



## Subcommands

|Subcommands |Description |
|:-------------------------------------------------|:-----------------------------------------|
|[`info`]({{< relref "/cli/kes-identity/info" >}}) |Get information about a KES identity |
|[`ls`]({{< relref "/cli/kes-identity/ls" >}}) |List KES identities |
|[`new`]({{< relref "/cli/kes-identity/new" >}}) |Create a KES identity |
|[`of`]({{< relref "/cli/kes-identity/of" >}}) |Compute a KES identity from a certificate |


## Related Content

- [KES Policy Configuration]({{< relref "/tutorials/configuration.md#policy-configuration" >}})
- [Conceptual information on KES]({{< relref "/concepts/_index.md" >}})
- [Conceptual information on KES]({{< relref "/concepts/_index.md" >}})

## Deprecated

|Subcommands |Description |
|:----------------------------------------------------|:----------------------------------------------|
|[`ls`]({{< relref "/cli/deprecated/identity-ls" >}}) | Use [`kes ls`]({{< relref "/cli/kes-ls/" >}}) |
2 changes: 1 addition & 1 deletion content/cli/kes-identity/new.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ $ kes identity new
Create an identity that uses either of two IP addresses as a subject alternate name (SAN).

```sh {.copy}
$ kes identity new --ip "192.168.0.182" --ip "10.0.0.92" Client-1
$ kes identity new --ip "192.168.0.182" --ip "10.0.0.92" --key private.key --cert public.crt Client-1
```

Create an encrypted identity that expires in the default time of 30 days.
Expand Down
7 changes: 6 additions & 1 deletion content/cli/kes-key/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,14 @@ This set of pages provides reference information for the `kes key` commands.
|[`create`]({{< relref "/cli/kes-key/create" >}}) |Create a new cryptographic key |
|[`import`]({{< relref "/cli/kes-key/import" >}}) |Import a cryptographic key |
|[`info`]({{< relref "/cli/kes-key/info" >}}) |Output information about a cryptographic key |
|[`ls`]({{< relref "/cli/kes-key/ls" >}}) |List cryptographic keys |
|[`rm`]({{< relref "/cli/kes-key/rm" >}}) |Delete a cryptographic key |
| | |
|[`encrypt`]({{< relref "/cli/kes-key/encrypt" >}}) |Encrypt a message |
|[`decrypt`]({{< relref "/cli/kes-key/decrypt" >}}) |Decrypt an encrypted message |
|[`dek`]({{< relref "/cli/kes-key/dek" >}}) |Generate a new data encryption key |

## Deprecated

|Subcommands |Description |
|:--------------------------------------------------|:---------------------------------------------|
|[`ls`]({{< relref "/cli/deprecated/key-ls" >}}) |Use [`kes ls`]({{< relref "/cli/kes-ls/" >}}) |
71 changes: 71 additions & 0 deletions content/cli/kes-ls/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
---
title: kes ls
date: 2023-03-03
lastmod: :git
draft: false
tableOfContents: true
---

{{< admonition title="Replaces deprecated commands" type="note" >}}
The `kes ls` command replaces the following commands, which are deprecated:

- `kes key ls`
- `kes policy ls`
- `kes identity ls`
{{< /admonition >}}

## Overview

Returns a list of keys, policies, or identities.

## Syntax

```sh
kes ls \
--api-key, -a <string> \
--server, -s <HOST[:PORT]> \
--json \
--identity, -i \
--policy, -p \
--insecure, -k
```

## Parameters

### `--api-key, -a`

*Optional*

API key to use to authenticate to the KES Server.
Defaults to the value in the `$MINIO_KES_API_KEY` environment variable.

### `--server, -s`

*Optional*

The `HOST[:PORT]` of the KES server to connect to.
Defaults to the value in the `$MINIO_KES_SERVER` environment variable.

### `--json`

*Optional*

Print the output in JSON format.

### `--identity, -i`

*Optional*

Print a list of identities.

### `--policy, -p`

*Optional*

Print a list of policies.

### `--insecure, -k`

*Optional*

Skip verification of the server's certificate.
8 changes: 7 additions & 1 deletion content/cli/kes-policy/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,11 @@ To make persistent changes to KES policies, modify the `policy` section of the K
|[`assign`]({{< relref "/cli/kes-policy/assign" >}}) |Assign a policy to identities |
|[`create`]({{< relref "/cli/kes-policy/create" >}}) |Create a new policy |
|[`info`]({{< relref "/cli/kes-policy/info" >}}) |Get information about a policy |
|[`ls`]({{< relref "/cli/kes-policy/ls" >}}) |List policies |
|[`show`]({{< relref "/cli/kes-policy/show" >}}) |Display a policy |


## Deprecated

|Subcommands |Description |
|:--------------------------------------------------|:----------------------------------------------|
|[`ls`]({{< relref "/cli/deprecated/policy-ls" >}}) | Use [`kes ls`]({{< relref "/cli/kes-ls/" >}}) |
10 changes: 10 additions & 0 deletions content/concepts/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,13 @@ MinIO uses this key for the following:
- Encrypting backend data ( [IAM](https://min.io/docs/minio/linux/administration/identity-access-management.html#minio-authentication-and-identity-management), server configuration).
- The default encryption key for Server-Side Encryption with [SSE-KMS](https://min.io/docs/minio/linux/administration/server-side-encryption/server-side-encryption-sse-kms.html#minio-encryption-sse-kms).
- The encryption key for Server-Side Encryption with [SSE-S3](https://min.io/docs/minio/linux/administration/server-side-encryption/server-side-encryption-sse-s3.html#minio-encryption-sse-s3).

## `MINIO_KES_SERVER`

The server endpoint a client uses to connect to KES.
If not defined, the value defaults to `127.0.0.1.7373`.


## `MINIO_KES_API_KEY`

The API key a client uses to authenticate to the KES server.

0 comments on commit e7e879e

Please sign in to comment.