Skip to content
Merged
Show file tree
Hide file tree
Changes from 63 commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
7ee923b
pkg setup for kms
Aug 21, 2025
5a7af4f
cmd config setup
Aug 21, 2025
72a60d6
beta kms cmd added
Aug 21, 2025
84541d6
(missed) add kms to the beta
Aug 21, 2025
13bbc8c
added unit tests
Aug 23, 2025
1c4301d
added generated documentation updates
Aug 23, 2025
ab298b5
added kms to go.mod and go.sum
Aug 23, 2025
615d4bf
Merge branch 'main' into kms-beta
JanStern Aug 23, 2025
6a4716d
Merge branch 'main' into kms-beta
JanStern Aug 26, 2025
5e76f28
Merge branch 'main' into kms-beta
JanStern Aug 28, 2025
6459764
Merge branch 'main' into kms-beta
JanStern Aug 30, 2025
eeed803
Merge branch 'main' into kms-beta
JanStern Sep 4, 2025
36daef5
Merge branch 'main' into kms-beta
JanStern Sep 5, 2025
3ea181c
fix spelling
Sep 5, 2025
ada9a54
yaml/json format added
Sep 5, 2025
7bbcd7a
empty responses also handeld in json/yaml format
Sep 5, 2025
b63c674
make test variables constant
Sep 5, 2025
f92f4c5
Can't remove backend yet, due to missing kms v0.5.1 support
Sep 5, 2025
07da0b7
linting improvement
Sep 5, 2025
2f9e6d3
generate-docs update
Sep 5, 2025
2614575
Upgrade KMS to v1.0.0
Sep 10, 2025
de5e097
Merge branch 'main' into kms-beta
JanStern Sep 10, 2025
b925f4e
fix spelling
Sep 11, 2025
6581f82
added wait for key creation
Sep 11, 2025
26490c9
removed uuid validation in parseInput
Sep 11, 2025
77c6d96
nil pointer safe
Sep 11, 2025
f10d6c1
json/yaml output type safe
Sep 11, 2025
c1ba5cc
updated docs
Sep 11, 2025
7351b96
Merge branch 'main' into kms-beta
JanStern Sep 19, 2025
411b25d
Merge branch 'main' into kms-beta
JanStern Sep 19, 2025
070d21d
Merge branch 'main' into kms-beta
JanStern Sep 22, 2025
60ddebf
Merge branch 'main' into kms-beta
JanStern Sep 25, 2025
d5545f7
Merge branch 'main' into kms-beta
JanStern Oct 6, 2025
056ffdb
remove comments
Oct 7, 2025
2bac600
stakit -> stackit
Oct 7, 2025
d4a1a1e
clearner loop
Oct 7, 2025
03406f1
fix spelling
Oct 7, 2025
bba5217
1. Corrected the output format for all requests
Oct 7, 2025
e39d775
updated the docs
Oct 7, 2025
2f68ead
Merge branch 'main' into kms-beta
JanStern Oct 7, 2025
6dd4e61
Added the 'nil response' test case for the outputResult()
Oct 7, 2025
e7c6c71
Update internal/cmd/beta/kms/key/delete/delete.go
JanStern Oct 8, 2025
ff4b53a
Update internal/cmd/beta/kms/wrappingkey/create/create.go
JanStern Oct 8, 2025
e9d3719
Update internal/cmd/beta/kms/wrappingkey/wrappingkey.go
JanStern Oct 8, 2025
c19a855
Update internal/cmd/beta/kms/wrappingkey/create/create.go
JanStern Oct 8, 2025
fe09771
Update internal/cmd/beta/kms/wrappingkey/delete/delete.go
JanStern Oct 8, 2025
0852ada
Update internal/cmd/beta/kms/wrappingkey/list/list.go
JanStern Oct 8, 2025
78871c2
removed risky delete output
Oct 9, 2025
6639d4e
addressing nil pointer derferences
Oct 9, 2025
8d3d9f5
updated docs
Oct 9, 2025
9ca8501
Merge branch 'main' into kms-beta
JanStern Oct 9, 2025
67806db
Merge branch 'main' into kms-beta
JanStern Oct 15, 2025
32cb334
Addressed PR #1016
Oct 16, 2025
e58bc38
fix name in example form --key-ring to correct --key-ring-id
Oct 17, 2025
519f724
Fix feedback for async operations
Oct 17, 2025
ae9a66a
fix name in example form --key to correct --key-id
Oct 17, 2025
996d1ee
linter, test & docs
Oct 17, 2025
407d671
Merge branch 'main' into kms-beta
JanStern Oct 17, 2025
da17679
Merge branch 'main' into kms-beta
JanStern Oct 20, 2025
9824515
`--key-ring-id` changed to `--keyring-id`
Oct 20, 2025
78506a8
Added `EnumValues` to the flag options
Oct 21, 2025
54332f0
Merge branch 'main' into kms-beta
JanStern Oct 21, 2025
8880348
argument ID always in uppercase & typo fix
Oct 21, 2025
ae0efe3
Removed default flag value
Oct 21, 2025
eae8ec2
added import from file
Oct 21, 2025
5869606
better examples
Oct 21, 2025
119c00c
Merge branch 'main' into kms-beta
JanStern Oct 21, 2025
53845d3
fix the path
Oct 21, 2025
de6aba7
Fix more spelling mistakes
Oct 21, 2025
9b79a43
proper capitalization for flag and argument examples & typos & nitpicks
Oct 21, 2025
34bf29f
Make testRegion const
Oct 22, 2025
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
1 change: 1 addition & 0 deletions docs/stackit_beta.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ stackit beta [flags]

* [stackit](./stackit.md) - Manage STACKIT resources using the command line
* [stackit beta alb](./stackit_beta_alb.md) - Manages application loadbalancers
* [stackit beta kms](./stackit_beta_kms.md) - Provides functionality for KMS
* [stackit beta sqlserverflex](./stackit_beta_sqlserverflex.md) - Provides functionality for SQLServer Flex

37 changes: 37 additions & 0 deletions docs/stackit_beta_kms.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
## stackit beta kms

Provides functionality for KMS

### Synopsis

Provides functionality for KMS.

```
stackit beta kms [flags]
```

### Options

```
-h, --help Help for "stackit beta kms"
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
-p, --project-id string Project ID
--region string Target region for region-specific requests
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta](./stackit_beta.md) - Contains beta STACKIT CLI commands
* [stackit beta kms key](./stackit_beta_kms_key.md) - Manage KMS keys
* [stackit beta kms keyring](./stackit_beta_kms_keyring.md) - Manage KMS key rings
* [stackit beta kms version](./stackit_beta_kms_version.md) - Manage KMS key versions
* [stackit beta kms wrapping-key](./stackit_beta_kms_wrapping-key.md) - Manage KMS wrapping keys

39 changes: 39 additions & 0 deletions docs/stackit_beta_kms_key.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
## stackit beta kms key

Manage KMS keys

### Synopsis

Provides functionality for key operations inside the KMS

```
stackit beta kms key [flags]
```

### Options

```
-h, --help Help for "stackit beta kms key"
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
-p, --project-id string Project ID
--region string Target region for region-specific requests
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta kms](./stackit_beta_kms.md) - Provides functionality for KMS
* [stackit beta kms key create](./stackit_beta_kms_key_create.md) - Creates a KMS key
* [stackit beta kms key delete](./stackit_beta_kms_key_delete.md) - Deletes a KMS key
* [stackit beta kms key import](./stackit_beta_kms_key_import.md) - Import a KMS key
* [stackit beta kms key list](./stackit_beta_kms_key_list.md) - List all KMS keys
* [stackit beta kms key restore](./stackit_beta_kms_key_restore.md) - Restore a key
* [stackit beta kms key rotate](./stackit_beta_kms_key_rotate.md) - Rotate a key

50 changes: 50 additions & 0 deletions docs/stackit_beta_kms_key_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
## stackit beta kms key create

Creates a KMS key

### Synopsis

Creates a KMS key.

```
stackit beta kms key create [flags]
```

### Examples

```
Create a Symmetric KMS key
$ stackit beta kms key create --keyring-id "MY_KEYRING_ID" --algorithm "rsa_2048_oaep_sha256" --name "my-key-name" --purpose "asymmetric_encrypt_decrypt" --protection "software"

Create a Message Authentication KMS key
$ stackit beta kms key create --keyring-id "MY_KEYRING_ID" --algorithm "hmac_sha512" --name "my-key-name" --purpose "message_authentication_code" --protection "software"
```

### Options

```
--algorithm string En-/Decryption / signing algorithm. Possible values: ["aes_256_gcm" "rsa_2048_oaep_sha256" "rsa_3072_oaep_sha256" "rsa_4096_oaep_sha256" "rsa_4096_oaep_sha512" "hmac_sha256" "hmac_sha384" "hmac_sha512" "ecdsa_p256_sha256" "ecdsa_p384_sha384" "ecdsa_p521_sha512"] (default "rsa_2048_oaep_sha256")
--description string Optional description of the key
-h, --help Help for "stackit beta kms key create"
--import-only States whether versions can be created or only imported
--keyring-id string ID of the KMS key ring
--name string The display name to distinguish multiple keys
--protection string The underlying system that is responsible for protecting the key material. Possible values: ["symmetric_encrypt_decrypt" "asymmetric_encrypt_decrypt" "message_authentication_code" "asymmetric_sign_verify"] (default "software")
--purpose string Purpose of the key. Possible values: ["symmetric_encrypt_decrypt" "asymmetric_encrypt_decrypt" "message_authentication_code" "asymmetric_sign_verify"] (default "asymmetric_encrypt_decrypt")
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
-p, --project-id string Project ID
--region string Target region for region-specific requests
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta kms key](./stackit_beta_kms_key.md) - Manage KMS keys

41 changes: 41 additions & 0 deletions docs/stackit_beta_kms_key_delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
## stackit beta kms key delete

Deletes a KMS key

### Synopsis

Deletes a KMS key inside a specific key ring.

```
stackit beta kms key delete KEY_ID [flags]
```

### Examples

```
Delete a KMS key "MY_KEY_ID" inside the key ring "MY_KEYRING_ID"
$ stackit beta kms key delete "MY_KEY_ID" --keyring-id "MY_KEYRING_ID"
```

### Options

```
-h, --help Help for "stackit beta kms key delete"
--keyring-id string ID of the KMS Key Ring where the Key is stored
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
-p, --project-id string Project ID
--region string Target region for region-specific requests
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta kms key](./stackit_beta_kms_key.md) - Manage KMS keys

43 changes: 43 additions & 0 deletions docs/stackit_beta_kms_key_import.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
## stackit beta kms key import

Import a KMS key

### Synopsis

Import a new version to the given KMS key.

```
stackit beta kms key import KEY_ID [flags]
```

### Examples

```
Import a new version for the given KMS key "MY_KEY_ID"
$ stackit beta kms key import "MY_KEY_ID" --keyring-id "MY_KEYRING_ID" --wrapped-key "base64-encoded-wrapped-key-material" --wrapping-key-id "MY_WRAPPING_KEY_ID"
```

### Options

```
-h, --help Help for "stackit beta kms key import"
--keyring-id string ID of the KMS key ring
--wrapped-key string The wrapped key material that has to be imported. Encoded in base64
--wrapping-key-id string The unique id of the wrapping key the key material has been wrapped with
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
-p, --project-id string Project ID
--region string Target region for region-specific requests
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta kms key](./stackit_beta_kms_key.md) - Manage KMS keys

44 changes: 44 additions & 0 deletions docs/stackit_beta_kms_key_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
## stackit beta kms key list

List all KMS keys

### Synopsis

List all KMS keys inside a key ring.

```
stackit beta kms key list [flags]
```

### Examples

```
List all KMS keys for the key ring "MY_KEYRING_ID"
$ stackit beta kms key list --keyring-id "MY_KEYRING_ID"

List all KMS keys in JSON format
$ stackit beta kms key list --keyring-id "MY_KEYRING_ID" --output-format json
```

### Options

```
-h, --help Help for "stackit beta kms key list"
--keyring-id string ID of the KMS Key Ring where the Key is stored
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
-p, --project-id string Project ID
--region string Target region for region-specific requests
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta kms key](./stackit_beta_kms_key.md) - Manage KMS keys

41 changes: 41 additions & 0 deletions docs/stackit_beta_kms_key_restore.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
## stackit beta kms key restore

Restore a key

### Synopsis

Restores the given key from being deleted.

```
stackit beta kms key restore KEY_ID [flags]
```

### Examples

```
Restore a KMS key "MY_KEY_ID" inside the key ring "MY_KEYRING_ID" that was scheduled for deletion.
$ stackit beta kms keyring restore "MY_KEY_ID" --keyring-id "MY_KEYRING_ID"
```

### Options

```
-h, --help Help for "stackit beta kms key restore"
--keyring-id string ID of the KMS Key Ring where the Key is stored
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
-p, --project-id string Project ID
--region string Target region for region-specific requests
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta kms key](./stackit_beta_kms_key.md) - Manage KMS keys

41 changes: 41 additions & 0 deletions docs/stackit_beta_kms_key_rotate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
## stackit beta kms key rotate

Rotate a key

### Synopsis

Rotates the given key.

```
stackit beta kms key rotate KEY_ID [flags]
```

### Examples

```
Rotate a KMS key "MY_KEY_ID" and increase it's version inside the key ring "MY_KEYRING_ID".
$ stackit beta kms key rotate "MY_KEY_ID" --keyring-id "MY_KEYRING_ID"
```

### Options

```
-h, --help Help for "stackit beta kms key rotate"
--keyring-id string ID of the KMS key Ring where the key is stored
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
-p, --project-id string Project ID
--region string Target region for region-specific requests
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta kms key](./stackit_beta_kms_key.md) - Manage KMS keys

36 changes: 36 additions & 0 deletions docs/stackit_beta_kms_keyring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
## stackit beta kms keyring

Manage KMS key rings

### Synopsis

Provides functionality for key ring operations inside the KMS

```
stackit beta kms keyring [flags]
```

### Options

```
-h, --help Help for "stackit beta kms keyring"
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
-p, --project-id string Project ID
--region string Target region for region-specific requests
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta kms](./stackit_beta_kms.md) - Provides functionality for KMS
* [stackit beta kms keyring create](./stackit_beta_kms_keyring_create.md) - Creates a KMS key ring
* [stackit beta kms keyring delete](./stackit_beta_kms_keyring_delete.md) - Deletes a KMS key ring
* [stackit beta kms keyring list](./stackit_beta_kms_keyring_list.md) - Lists all KMS key rings

Loading