Skip to content

Commit fe7496c

Browse files
committed
Merge branch 'main' into feat/STACKITCLI-70-add-cdn-distribution-beta-cmds
2 parents b2a1c41 + 2e3dac3 commit fe7496c

File tree

840 files changed

+3034
-2309
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

840 files changed

+3034
-2309
lines changed

.github/docs/contribution-guide/cmd.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import (
44
"context"
55
"fmt"
66

7+
"github.com/stackitcloud/stackit-cli/internal/pkg/types"
8+
79
"github.com/spf13/cobra"
8-
"github.com/stackitcloud/stackit-cli/internal/cmd/params"
910
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
1011
"github.com/stackitcloud/stackit-cli/internal/pkg/errors"
1112
"github.com/stackitcloud/stackit-cli/internal/pkg/examples"
@@ -33,7 +34,7 @@ type inputModel struct {
3334
}
3435

3536
// "bar" command constructor
36-
func NewCmd(params *params.CmdParams) *cobra.Command {
37+
func NewCmd(params *types.CmdParams) *cobra.Command {
3738
cmd := &cobra.Command{
3839
Use: "bar",
3940
Short: "Short description of the command (is shown in the help of parent command)",

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
run: make test
3737

3838
- name: Archive code coverage results
39-
uses: actions/upload-artifact@v5
39+
uses: actions/upload-artifact@v6
4040
with:
4141
name: ${{ env.CODE_COVERAGE_ARTIFACT_NAME }}
4242
path: ${{ env.CODE_COVERAGE_FILE_NAME }}

.github/workflows/release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
rm -f "$GPG_KEY_PATH"
9191
9292
- name: Upload artifacts to workflow
93-
uses: actions/upload-artifact@v5
93+
uses: actions/upload-artifact@v6
9494
with:
9595
name: goreleaser-dist-temp
9696
path: dist
@@ -110,7 +110,7 @@ jobs:
110110

111111
# use the artifacts from the "goreleaser" job
112112
- name: Download artifacts from workflow
113-
uses: actions/download-artifact@v6
113+
uses: actions/download-artifact@v7
114114
with:
115115
name: goreleaser-dist-temp
116116
path: dist
@@ -147,7 +147,7 @@ jobs:
147147
uses: actions/checkout@v6
148148

149149
- name: Download artifacts from workflow
150-
uses: actions/download-artifact@v6
150+
uses: actions/download-artifact@v7
151151
with:
152152
name: goreleaser-dist-temp
153153
path: dist

.github/workflows/renovate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Checkout
1414
uses: actions/checkout@v6
1515
- name: Self-hosted Renovate
16-
uses: renovatebot/github-action@v44.0.5
16+
uses: renovatebot/github-action@v44.2.0
1717
with:
1818
configurationFile: .github/renovate.json
1919
token: ${{ secrets.RENOVATE_TOKEN }}

.github/workflows/stale.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
env:
1212
DAYS_BEFORE_PR_STALE: 7
1313
DAYS_BEFORE_PR_CLOSE: 7
14+
EXEMPT_PR_LABELS: "ignore-stale"
1415

1516
permissions:
1617
issues: write
@@ -30,6 +31,7 @@ jobs:
3031
close-pr-message: "This PR was closed automatically because it has been stalled for ${{ env.DAYS_BEFORE_PR_CLOSE }} days with no activity. Feel free to re-open it at any time."
3132
days-before-pr-stale: ${{ env.DAYS_BEFORE_PR_STALE }}
3233
days-before-pr-close: ${{ env.DAYS_BEFORE_PR_CLOSE }}
34+
exempt-pr-labels: ${{ env.EXEMPT_PR_LABELS }}
3335
# never mark issues as stale or close them
3436
days-before-issue-stale: -1
3537
days-before-issue-close: -1

AUTHENTICATION.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This document describes how you can configure authentication for the STACKIT CLI
44

55
## Service account
66

7-
You can use a [service account](https://docs.stackit.cloud/stackit/en/service-accounts-134415819.html) to authenticate to the STACKIT CLI.
7+
You can use a [service account](https://docs.stackit.cloud/platform/access-and-identity/service-accounts/) to authenticate to the STACKIT CLI.
88
The CLI will search for service account credentials similarly to the [STACKIT SDK](https://github.com/stackitcloud/stackit-sdk-go) and [STACKIT Terraform Provider](https://github.com/stackitcloud/terraform-provider-stackit), so if you have already set up your environment for those tools, you can just run:
99

1010
```bash
@@ -47,14 +47,14 @@ To use the key flow, you need to have a service account key, which must have an
4747

4848
When creating the service account key, a new RSA key-pair can be created automatically, which will be included in the service account key. This will make it much easier to configure the key flow authentication in the CLI, by just providing the service account key.
4949

50-
**Optionally**, you can provide your own private key when creating the service account key, which will then require you to also provide it explicitly to the CLI, additionally to the service account key. Check the STACKIT Knowledge Base for an [example of how to create your own key-pair](https://docs.stackit.cloud/stackit/en/usage-of-the-service-account-keys-in-stackit-175112464.html#UsageoftheserviceaccountkeysinSTACKIT-CreatinganRSAkey-pair).
50+
**Optionally**, you can provide your own private key when creating the service account key, which will then require you to also provide it explicitly to the CLI, additionally to the service account key. Check the STACKIT Docs for an [example of how to create your own key-pair](https://docs.stackit.cloud/platform/access-and-identity/service-accounts/how-tos/manage-service-account-keys/).
5151

5252
To configure the key flow, follow this steps:
5353

5454
1. Create a service account key:
5555

5656
- In the CLI, run `stackit service-account key create --email <SERVICE_ACCOUNT_EMAIL>`
57-
- As an alternative, use the [STACKIT Portal](https://portal.stackit.cloud/): go to the `Service Accounts` tab, choose a `Service Account` and go to `Service Account Keys` to create a key. For more details, see [Create a service account key](https://docs.stackit.cloud/stackit/en/create-a-service-account-key-175112456.html)
57+
- As an alternative, use the [STACKIT Portal](https://portal.stackit.cloud/): go to the `Service Accounts` tab, choose a `Service Account` and go to `Service Account Keys` to create a key. For more details, see [Create a service account key](https://docs.stackit.cloud/platform/access-and-identity/service-accounts/how-tos/manage-service-account-keys/)
5858

5959
2. Save the content of the service account key by copying it and saving it in a JSON file.
6060

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,6 @@ Apache 2.0
202202

203203
- [STACKIT](https://www.stackit.de/en/)
204204

205-
- [STACKIT Knowledge Base](https://docs.stackit.cloud/stackit/en/knowledge-base-85301704.html)
205+
- [STACKIT Docs](https://docs.stackit.cloud/)
206206

207207
- [STACKIT Terraform Provider](https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs)

docs/stackit_beta_sqlserverflex_user_create.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Creates a SQLServer Flex user for an instance.
99
The password is only visible upon creation and cannot be retrieved later.
1010
Alternatively, you can reset the password and access the new one by running:
1111
$ stackit beta sqlserverflex user reset-password USER_ID --instance-id INSTANCE_ID
12-
Please refer to https://docs.stackit.cloud/stackit/en/creating-logins-and-users-in-sqlserver-flex-instances-210862358.html for additional information.
12+
Please refer to https://docs.stackit.cloud/products/databases/sqlserver-flex/how-tos/create-logins-and-users-in-sqlserver-flex-instances/ for additional information.
1313

1414
The allowed user roles for your instance can be obtained by running:
1515
$ stackit beta sqlserverflex options --user-roles --instance-id INSTANCE_ID

docs/stackit_config_set.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ stackit config set [flags]
5656
--serverbackup-custom-endpoint string Server Backup API base URL, used in calls to this API
5757
--service-account-custom-endpoint string Service Account API base URL, used in calls to this API
5858
--service-enablement-custom-endpoint string Service Enablement API base URL, used in calls to this API
59-
--session-time-limit string Maximum time before authentication is required again. After this time, you will be prompted to login again to execute commands that require authentication. Can't be larger than 24h. Requires authentication after being set to take effect. Examples: 3h, 5h30m40s (BETA: currently values greater than 2h have no effect)
59+
--session-time-limit string Maximum time before authentication is required again. After this time, you will be prompted to login again to execute commands that require authentication. Can't be larger than 24h. Requires authentication after being set to take effect. Examples: 3h, 5h30m40s
6060
--ske-custom-endpoint string SKE API base URL, used in calls to this API
6161
--sqlserverflex-custom-endpoint string SQLServer Flex API base URL, used in calls to this API
6262
--token-custom-endpoint string Custom token endpoint of the Service Account API, which is used to request access tokens when the service account authentication is activated. Not relevant for user authentication.

docs/stackit_config_unset.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ stackit config unset [flags]
5757
--serverbackup-custom-endpoint Server Backup base URL. If unset, uses the default base URL
5858
--service-account-custom-endpoint Service Account API base URL. If unset, uses the default base URL
5959
--service-enablement-custom-endpoint Service Enablement API base URL. If unset, uses the default base URL
60-
--session-time-limit Maximum time before authentication is required again. If unset, defaults to 2h
60+
--session-time-limit Maximum time before authentication is required again. If unset, defaults to 12h
6161
--ske-custom-endpoint SKE API base URL. If unset, uses the default base URL
6262
--sqlserverflex-custom-endpoint SQLServer Flex API base URL. If unset, uses the default base URL
6363
--token-custom-endpoint Custom token endpoint of the Service Account API, which is used to request access tokens when the service account authentication is activated. Not relevant for user authentication.

0 commit comments

Comments
 (0)