Skip to content

Commit 0816695

Browse files
Merge branch 'main' into oas-bot-21901736871/observability
2 parents a5cc177 + ba06038 commit 0816695

File tree

171 files changed

+4014
-37393
lines changed

Some content is hidden

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

171 files changed

+4014
-37393
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,16 @@
1717
- [v0.1.4](services/auditlog/CHANGELOG.md#v014)
1818
- **Dependencies**: Bump `github.com/golang-jwt/jwt/v5` from `v5.3.0` to `v5.3.1`
1919
- `authorization`:
20+
- [v0.12.0](services/authorization/CHANGELOG.md#v0120)
21+
- **Breaking change:** removed operation `GetAssignableSubjects` and related models `AssignableSubject`, `ListAssignableSubjectsResponse`
2022
- [v0.11.3](services/authorization/CHANGELOG.md#v0113)
2123
- Bump STACKIT SDK core module from `v0.21.0` to `v0.21.1`
2224
- [v0.11.2](services/authorization/CHANGELOG.md#v0112)
2325
- **Dependencies**: Bump `github.com/golang-jwt/jwt/v5` from `v5.3.0` to `v5.3.1`
2426
- `cdn`:
27+
- [v1.10.0](services/cdn/CHANGELOG.md#v1100)
28+
- **Feature:** Add support for `RedirectConfig` in `Config`, `ConfigPatch` and `CreateDistributionPayload` models
29+
- new related models `RedirectConfig`, `RedirectRule`, `Matcher` and `MatchCondition`
2530
- [v1.9.4](services/cdn/CHANGELOG.md#v194)
2631
- Bump STACKIT SDK core module from `v0.21.0` to `v0.21.1`
2732
- [v1.9.3](services/cdn/CHANGELOG.md#v193)
@@ -165,6 +170,8 @@
165170
- [v1.3.4](services/postgresflex/CHANGELOG.md#v134)
166171
- **Dependencies**: Bump `github.com/golang-jwt/jwt/v5` from `v5.3.0` to `v5.3.1`
167172
- `rabbitmq`:
173+
- [v0.26.0](services/rabbitmq/CHANGELOG.md#v0260)
174+
- **Breaking change:** `SetTLSProtocols` now accepts a slice of strings instead of a single string
168175
- [v0.25.6](services/rabbitmq/CHANGELOG.md#v0256)
169176
- Bump STACKIT SDK core module from `v0.21.0` to `v0.21.1`
170177
- [v0.25.5](services/rabbitmq/CHANGELOG.md#v0255)
@@ -205,6 +212,10 @@
205212
- [v1.2.5](services/serverupdate/CHANGELOG.md#v125)
206213
- **Dependencies**: Bump `github.com/golang-jwt/jwt/v5` from `v5.3.0` to `v5.3.1`
207214
- `serviceaccount`:
215+
- [v0.12.0](services/serviceaccount/CHANGELOG.md#v0120)
216+
- **Feature:** add support for Federated Identity Providers
217+
- new operations: `CreateFederatedIdentityProvider`, `DeleteServiceFederatedIdentityProvider`, `ListFederatedIdentityProviders`, `PartialUpdateServiceAccountFederatedIdentityProvider`
218+
- new models: `CreateFederatedIdentityProviderPayload`, `CreateFederatedIdentityProviderPayloadAssertionsInner`, `CreateFederatedIdentityProviderResponse`, `CreateFederatedIdentityProviderResponseAssertionsInner`, `FederatedListFederatedIdentityProvidersResponse`, `PartialUpdateServiceAccountFederatedIdentityProviderPayload`
208219
- [v0.11.6](services/serviceaccount/CHANGELOG.md#v0116)
209220
- Bump STACKIT SDK core module from `v0.21.0` to `v0.21.1`
210221
- [v0.11.5](services/serviceaccount/CHANGELOG.md#v0115)
@@ -225,6 +236,10 @@
225236
- [v0.2.2](services/sfs/CHANGELOG.md#v022)
226237
- **Dependencies**: Bump `github.com/golang-jwt/jwt/v5` from `v5.3.0` to `v5.3.1`
227238
- `ske`:
239+
- [v1.7.0](services/ske/CHANGELOG.md#v170)
240+
- **Feature:** new model `AccessScope`
241+
- **Feature:** new model `V2ControlPlaneNetwork`
242+
- **Feature:** added field `ControlPlane` of type `V2ControlPlaneNetwork` to model `Network`
228243
- [v1.6.3](services/ske/CHANGELOG.md#v163)
229244
- Bump STACKIT SDK core module from `v0.21.0` to `v0.21.1`
230245
- [v1.6.2](services/ske/CHANGELOG.md#v162)

README.md

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,20 @@ To authenticate with the SDK, you need a [service account](https://docs.stackit.
103103

104104
### Authentication Methods
105105

106-
The SDK supports two authentication methods:
106+
The SDK supports three authentication methods:
107107

108-
1. **Key Flow** (Recommended)
108+
1. **Workload Identity Federation Flow**
109+
110+
- Uses OIDC trusted tokens
111+
- Provides best security through short-lived tokens without secrets
112+
113+
2. **Key Flow**
109114

110115
- Uses RSA key-pair based authentication
111116
- Provides better security through short-lived tokens
112117
- Supports both STACKIT-generated and custom key pairs
113118

114-
2. **Token Flow**
119+
3. **Token Flow** (Deprecated)
115120
- Uses long-lived service account tokens
116121
- Simpler but less secure
117122

@@ -120,10 +125,40 @@ The SDK supports two authentication methods:
120125
The SDK searches for credentials in the following order:
121126

122127
1. Explicit configuration in code
123-
2. Environment variables (KEY_PATH for KEY)
128+
2. Environment variables
124129
3. Credentials file (`$HOME/.stackit/credentials.json`)
125130

126-
For each authentication method, the key flow is attempted first, followed by the token flow.
131+
For each authentication method, the try order is:
132+
1. Workload Identity Federation Flow
133+
2. Key Flow
134+
3. Token Flow
135+
136+
### Using the Workload Identity Fedearion Flow
137+
138+
1. Create a service account trusted relation in the STACKIT Portal:
139+
140+
- Navigate to `Service Accounts` → Select account → `Federated Identity Providers`
141+
- [Configure a Federated Identity Provider](https://docs.stackit.cloud/platform/access-and-identity/service-accounts/how-tos/manage-service-account-federations/#create-a-federated-identity-provider) and the required assertions to trust in.
142+
143+
2. Configure authentication using any of these methods:
144+
145+
**A. Code Configuration**
146+
147+
```go
148+
// Using wokload identity federation flow
149+
config.WithWorkloadIdentityFederationAuth()
150+
// With the custom path for the external OIDC token
151+
config.WithWorkloadIdentityFederationPath("/path/to/your/federated/token")
152+
// For the service account
153+
config.WithServiceAccountEmail("my-sa@sa-stackit.cloud")
154+
```
155+
**B. Environment Variables**
156+
```bash
157+
# With the custom path for the external OIDC token
158+
STACKIT_FEDERATED_TOKEN_FILE=/path/to/your/federated/token
159+
# For the service account
160+
STACKIT_SERVICE_ACCOUNT_EMAIL=my-sa@sa-stackit.cloud
161+
```
127162

128163
### Using the Key Flow
129164

examples/authorization/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.21
44

55
require (
66
github.com/stackitcloud/stackit-sdk-go/core v0.21.1
7-
github.com/stackitcloud/stackit-sdk-go/services/authorization v0.11.3
7+
github.com/stackitcloud/stackit-sdk-go/services/authorization v0.12.0
88
)
99

1010
require (

examples/authorization/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
66
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
77
github.com/stackitcloud/stackit-sdk-go/core v0.21.1 h1:Y/PcAgM7DPYMNqum0MLv4n1mF9ieuevzcCIZYQfm3Ts=
88
github.com/stackitcloud/stackit-sdk-go/core v0.21.1/go.mod h1:osMglDby4csGZ5sIfhNyYq1bS1TxIdPY88+skE/kkmI=
9-
github.com/stackitcloud/stackit-sdk-go/services/authorization v0.11.3 h1:JMKEeNQpA+Mb1DRpY3MRQL3pko5JjUWGrevN0xOrx+4=
10-
github.com/stackitcloud/stackit-sdk-go/services/authorization v0.11.3/go.mod h1:uYI9pHAA2g84jJN25ejFUxa0/JtfpPZqMDkctQ1BzJk=
9+
github.com/stackitcloud/stackit-sdk-go/services/authorization v0.12.0 h1:HxPgBu04j5tj6nfZ2r0l6v4VXC0/tYOGe4sA5Addra8=
10+
github.com/stackitcloud/stackit-sdk-go/services/authorization v0.12.0/go.mod h1:uYI9pHAA2g84jJN25ejFUxa0/JtfpPZqMDkctQ1BzJk=

examples/rabbitmq/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.21
44

55
require (
66
github.com/stackitcloud/stackit-sdk-go/core v0.21.1
7-
github.com/stackitcloud/stackit-sdk-go/services/rabbitmq v0.25.6
7+
github.com/stackitcloud/stackit-sdk-go/services/rabbitmq v0.26.0
88
)
99

1010
require (

examples/rabbitmq/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
66
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
77
github.com/stackitcloud/stackit-sdk-go/core v0.21.1 h1:Y/PcAgM7DPYMNqum0MLv4n1mF9ieuevzcCIZYQfm3Ts=
88
github.com/stackitcloud/stackit-sdk-go/core v0.21.1/go.mod h1:osMglDby4csGZ5sIfhNyYq1bS1TxIdPY88+skE/kkmI=
9-
github.com/stackitcloud/stackit-sdk-go/services/rabbitmq v0.25.6 h1:+TFfl1ON/uM5aO0FdkBNYKBa7vx0zrCYVtX6zvqQYBA=
10-
github.com/stackitcloud/stackit-sdk-go/services/rabbitmq v0.25.6/go.mod h1:hnhvlLX1Y71R8KIQqLBeoSZqkU5ZJOG0J4wz0LeUdaw=
9+
github.com/stackitcloud/stackit-sdk-go/services/rabbitmq v0.26.0 h1:/8lmviszgrB+0Cz7HdhFELyTiTeqIs7LfnI6sNX4rW8=
10+
github.com/stackitcloud/stackit-sdk-go/services/rabbitmq v0.26.0/go.mod h1:hnhvlLX1Y71R8KIQqLBeoSZqkU5ZJOG0J4wz0LeUdaw=

examples/serviceaccount/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.21
44

55
require (
66
github.com/stackitcloud/stackit-sdk-go/core v0.21.1
7-
github.com/stackitcloud/stackit-sdk-go/services/serviceaccount v0.11.6
7+
github.com/stackitcloud/stackit-sdk-go/services/serviceaccount v0.12.0
88
)
99

1010
require (

examples/serviceaccount/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
66
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
77
github.com/stackitcloud/stackit-sdk-go/core v0.21.1 h1:Y/PcAgM7DPYMNqum0MLv4n1mF9ieuevzcCIZYQfm3Ts=
88
github.com/stackitcloud/stackit-sdk-go/core v0.21.1/go.mod h1:osMglDby4csGZ5sIfhNyYq1bS1TxIdPY88+skE/kkmI=
9-
github.com/stackitcloud/stackit-sdk-go/services/serviceaccount v0.11.6 h1:WU76mZkJP6diMDjGFqM8On6fZhUDmGcy6ppX0+kWx9Y=
10-
github.com/stackitcloud/stackit-sdk-go/services/serviceaccount v0.11.6/go.mod h1:hRllU+yEJM6ovrLeXwVeT5hI70ftPKjX4z/Nj8TZqJw=
9+
github.com/stackitcloud/stackit-sdk-go/services/serviceaccount v0.12.0 h1:l1EDIlXce2C8JcbBDHVa6nZ4SjPTqmnALTgrhms+NKI=
10+
github.com/stackitcloud/stackit-sdk-go/services/serviceaccount v0.12.0/go.mod h1:EXq8/J7t9p8zPmdIq+atuxyAbnQwxrQT18fI+Qpv98k=

examples/ske/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.21
44

55
require (
66
github.com/stackitcloud/stackit-sdk-go/core v0.21.1
7-
github.com/stackitcloud/stackit-sdk-go/services/ske v1.6.3
7+
github.com/stackitcloud/stackit-sdk-go/services/ske v1.7.0
88
)
99

1010
require (

examples/ske/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
66
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
77
github.com/stackitcloud/stackit-sdk-go/core v0.21.1 h1:Y/PcAgM7DPYMNqum0MLv4n1mF9ieuevzcCIZYQfm3Ts=
88
github.com/stackitcloud/stackit-sdk-go/core v0.21.1/go.mod h1:osMglDby4csGZ5sIfhNyYq1bS1TxIdPY88+skE/kkmI=
9-
github.com/stackitcloud/stackit-sdk-go/services/ske v1.6.3 h1:c+nQMvSml08cdRF1kE24vCw0r/l56olP/svQyhcnKOs=
10-
github.com/stackitcloud/stackit-sdk-go/services/ske v1.6.3/go.mod h1:1Jr+ImrmPERxbYnlTy6O2aSZYNnREf2qQyysv6YC1RY=
9+
github.com/stackitcloud/stackit-sdk-go/services/ske v1.7.0 h1:l1QjxW7sdE/6B6BZtHxbmus8XJdI9KDuXX3fwUa5fog=
10+
github.com/stackitcloud/stackit-sdk-go/services/ske v1.7.0/go.mod h1:1Jr+ImrmPERxbYnlTy6O2aSZYNnREf2qQyysv6YC1RY=

0 commit comments

Comments
 (0)