Skip to content

Commit 07ee912

Browse files
committed
Merge branch 'main' into generator-bot-25000604884/albwaf
2 parents 0d253b5 + 7066b8a commit 07ee912

119 files changed

Lines changed: 297 additions & 199 deletions

File tree

Some content is hidden

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

CHANGELOG.md

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,43 @@
1010
- Minimal go version is now Go 1.25
1111
- [v0.14.1](services/alb/CHANGELOG.md#v0141)
1212
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.1` to `v0.25.0`
13+
- [v0.14.2](services/alb/CHANGELOG.md#v0142)
14+
- **Dependencies:** Bump STACKIT SDK core module from `v0.25.0` to `v0.26.0`
15+
- `v2api`: **Improvement**: Use new `WaiterHandler` struct in the ALB WaitHandler
1316
- `albwaf`:
1417
- [v0.3.2](services/albwaf/CHANGELOG.md#v032)
1518
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
1619
- [v0.4.0](services/albwaf/CHANGELOG.md#v040)
1720
- Minimal go version is now Go 1.25
21+
- [v0.4.1](services/albwaf/CHANGELOG.md#v041)
22+
- **Dependencies:** Bump STACKIT SDK core module to `v0.26.0`
1823
- [v0.5.0](services/albwaf/CHANGELOG.md#v050)
1924
- `v1alphaapi`: Align package to latest API specification
20-
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.1` to `v0.26.0`
2125
- `archiving`:
2226
- [v0.2.6](services/archiving/CHANGELOG.md#v026)
2327
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
2428
- [v0.3.0](services/archiving/CHANGELOG.md#v030)
2529
- Minimal go version is now Go 1.25
30+
- [v0.3.1](services/archiving/CHANGELOG.md#v031)
31+
- **Dependencies:** Bump STACKIT SDK core module to `v0.26.0`
2632
- `auditlog`:
2733
- [v0.3.3](services/auditlog/CHANGELOG.md#v033)
2834
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
2935
- [v0.4.0](services/auditlog/CHANGELOG.md#v040)
3036
- Minimal go version is now Go 1.25
3137
- [v0.4.1](services/auditlog/CHANGELOG.md#v041)
3238
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.1` to `v0.25.0`
39+
- [v0.4.2](services/auditlog/CHANGELOG.md#v042)
40+
- **Dependencies:** Bump STACKIT SDK core module to `v0.26.0`
3341
- `authorization`:
3442
- [v0.14.3](services/authorization/CHANGELOG.md#v0143)
3543
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
3644
- [v0.15.0](services/authorization/CHANGELOG.md#v0150)
3745
- Minimal go version is now Go 1.25
3846
- [v0.15.1](services/authorization/CHANGELOG.md#v0151)
3947
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.1` to `v0.25.0`
48+
- [v0.15.2](services/authorization/CHANGELOG.md#v0152)
49+
- **Dependencies:** Bump STACKIT SDK core module to `v0.26.0`
4050
- `cdn`:
4151
- [v1.13.2](services/cdn/CHANGELOG.md#v1132)
4252
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -49,20 +59,26 @@
4959
- **Feature:** Add fields `ForwardHostHeader`, `StripResponseCookies` and `Tls` to models: `Config`, `ConfigPatch`, `CreateDistributionPayload`
5060
- **Feature:** new models `TlsConfig`, `TlsConfigPatch`
5161
- `v1betaapi`: v1betaapi was deprecated please migrate to `v1api`
62+
- [v1.15.1](services/cdn/CHANGELOG.md#v1151)
63+
- **Dependencies:** Bump STACKIT SDK core module to `v0.26.0`
5264
- `certificates`:
5365
- [v1.5.2](services/certificates/CHANGELOG.md#v152)
5466
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
5567
- [v1.6.0](services/certificates/CHANGELOG.md#v160)
5668
- Minimal go version is now Go 1.25
5769
- [v1.6.1](services/certificates/CHANGELOG.md#v161)
5870
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.1` to `v0.25.0`
71+
- [v1.6.2](services/certificates/CHANGELOG.md#v162)
72+
- **Dependencies:** Bump STACKIT SDK core module to `v0.26.0`
5973
- `cost`:
6074
- [v0.2.2](services/cost/CHANGELOG.md#v022)
6175
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
6276
- [v0.3.0](services/cost/CHANGELOG.md#v030)
6377
- Minimal go version is now Go 1.25
6478
- [v0.3.1](services/cost/CHANGELOG.md#v031)
6579
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.1` to `v0.25.0`
80+
- [v0.3.2](services/cost/CHANGELOG.md#v032)
81+
- **Dependencies:** Bump STACKIT SDK core module to `v0.26.0`
6682
- `dns`:
6783
- [v0.19.3](services/dns/CHANGELOG.md#v0193)
6884
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -79,6 +95,8 @@
7995
- Minimal go version is now Go 1.25
8096
- [v0.9.1](services/edge/CHANGELOG.md#v091)
8197
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.1` to `v0.25.0`
98+
- [v0.9.2](services/edge/CHANGELOG.md#v092)
99+
- **Dependencies:** Bump STACKIT SDK core module to `v0.26.0`
82100
- `git`:
83101
- [v0.11.2](services/git/CHANGELOG.md#v0112)
84102
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -123,13 +141,17 @@
123141
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
124142
- [v0.6.0](services/lbapplication/CHANGELOG.md#v060)
125143
- Minimal go version is now Go 1.25
144+
- [v0.6.1](services/lbapplication/CHANGELOG.md#v061)
145+
- **Dependencies:** Bump STACKIT SDK core module to `v0.26.0`
126146
- `loadbalancer`:
127147
- [v1.11.2](services/loadbalancer/CHANGELOG.md#v1112)
128148
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
129149
- [v1.12.0](services/loadbalancer/CHANGELOG.md#v1120)
130150
- Minimal go version is now Go 1.25
131151
- [v1.12.1](services/loadbalancer/CHANGELOG.md#v1121)
132152
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.1` to `v0.25.0`
153+
- [v1.12.2](services/loadbalancer/CHANGELOG.md#v1122)
154+
- **Dependencies:** Bump STACKIT SDK core module to `v0.26.0`
133155
- `logme`:
134156
- [v0.27.3](services/logme/CHANGELOG.md#v0273)
135157
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -238,6 +260,8 @@
238260
- Minimal go version is now Go 1.25
239261
- [v0.22.1](services/resourcemanager/CHANGELOG.md#v0221)
240262
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.1` to `v0.25.0`
263+
- [v0.22.2](services/resourcemanager/CHANGELOG.md#v0222)
264+
- **Dependencies:** Bump STACKIT SDK core module to `v0.26.0`
241265
- `runcommand`:
242266
- [v1.6.3](services/runcommand/CHANGELOG.md#v163)
243267
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -254,6 +278,8 @@
254278
- Minimal go version is now Go 1.25
255279
- [v0.7.1](services/scf/CHANGELOG.md#v071)
256280
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.1` to `v0.25.0`
281+
- [v0.7.2](services/scf/CHANGELOG.md#v072)
282+
- **Dependencies:** Bump STACKIT SDK core module to `v0.26.0`
257283
- `secretsmanager`:
258284
- [v0.16.3](services/secretsmanager/CHANGELOG.md#v0163)
259285
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -296,13 +322,17 @@
296322
- Minimal go version is now Go 1.25
297323
- [v0.18.1](services/serviceaccount/CHANGELOG.md#v0181)
298324
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.1` to `v0.25.0`
325+
- [v0.18.2](services/serviceaccount/CHANGELOG.md#v0182)
326+
- **Dependencies:** Bump STACKIT SDK core module to `v0.26.0`
299327
- `serviceenablement`:
300328
- [v1.4.3](services/serviceenablement/CHANGELOG.md#v143)
301329
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
302330
- [v1.5.0](services/serviceenablement/CHANGELOG.md#v150)
303331
- Minimal go version is now Go 1.25
304332
- [v1.5.1](services/serviceenablement/CHANGELOG.md#v151)
305333
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.1` to `v0.25.0`
334+
- [v1.5.2](services/serviceenablement/CHANGELOG.md#v152)
335+
- **Dependencies:** Bump STACKIT SDK core module to `v0.26.0`
306336
- `sfs`:
307337
- [v0.6.3](services/sfs/CHANGELOG.md#v063)
308338
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -328,13 +358,15 @@
328358
- [v1.12.0](services/ske/CHANGELOG.md#v1120)
329359
- Minimal go version is now Go 1.25
330360
- [v1.13.0](services/ske/CHANGELOG.md#v1130)
331-
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.1` to `v0.25.0`
361+
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.1` to `v0.25.0`
332362
- `v2api`:
333363
- New field `Expiration` in `ClusterStatus` model struct
334364
- New model structs `ExpirationStatus`, `ExpirationStatusKubernetes`, `ExpirationStatusNodepool`
335365
- Deprecated SDK layer in root of the module:
336366
- New field `Expiration` in `ClusterStatus` model struct
337367
- New model structs `ExpirationStatus`, `ExpirationStatusKubernetes`, `ExpirationStatusNodepool`
368+
- [v1.13.1](services/ske/CHANGELOG.md#v1131)
369+
- **Dependencies:** Bump STACKIT SDK core module to `v0.26.0`
338370
- `sqlserverflex`:
339371
- [v1.6.3](services/sqlserverflex/CHANGELOG.md#v163)
340372
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -352,6 +384,8 @@
352384
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
353385
- [v1.18.0](services/stackitmarketplace/CHANGELOG.md#v1180)
354386
- Minimal go version is now Go 1.25
387+
- [v1.18.1](services/stackitmarketplace/CHANGELOG.md#v1181)
388+
- **Dependencies:** Bump STACKIT SDK core module to `v0.26.0`
355389
- `telemetryrouter`:
356390
- [v0.1.0](services/telemetryrouter/CHANGELOG.md#v010)
357391
- **New**: API for STACKIT Telemetry Router
@@ -364,6 +398,8 @@
364398
- Minimal go version is now Go 1.25
365399
- [v0.5.1](services/vpn/CHANGELOG.md#v051)
366400
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.1` to `v0.25.0`
401+
- [v0.5.2](services/vpn/CHANGELOG.md#v052)
402+
- **Dependencies:** Bump STACKIT SDK core module to `v0.26.0`
367403

368404
## Release (2026-04-07)
369405
- `alb`: [v0.13.1](services/alb/CHANGELOG.md#v0131)

core/clients/auth_flow.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,5 @@ func tokenExpired(token string, tokenExpirationLeeway time.Duration) (bool, erro
8585
// Pretend to be `tokenExpirationLeeway` into the future to avoid token expiring
8686
// between retrieving the token and upstream systems validating it.
8787
now := time.Now().Add(tokenExpirationLeeway)
88-
return now.After(expirationTimestampNumeric.Time), nil
88+
return now.After(expirationTimestampNumeric.Time) || now.Equal(expirationTimestampNumeric.Time), nil
8989
}

core/clients/continuous_refresh_test.go

Lines changed: 32 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"net/http"
1010
"net/url"
1111
"testing"
12+
"testing/synctest"
1213
"time"
1314

1415
"github.com/golang-jwt/jwt/v5"
@@ -93,36 +94,39 @@ func TestContinuousRefreshToken(t *testing.T) {
9394
tt := tt
9495
t.Run(tt.desc, func(t *testing.T) {
9596
t.Parallel()
96-
accessToken, err := signToken(accessTokensTimeToLive)
97-
if err != nil {
98-
t.Fatalf("failed to sign access token: %v", err)
99-
}
100-
ctx := context.Background()
101-
ctx, cancel := context.WithTimeout(ctx, tt.contextClosesIn)
102-
defer cancel()
103-
104-
authFlow := &fakeAuthFlow{
105-
backgroundTokenRefreshContext: ctx,
106-
doError: tt.doError,
107-
accessTokensTimeToLive: accessTokensTimeToLive,
108-
accessToken: accessToken,
109-
}
97+
synctest.Test(t, func(t *testing.T) {
98+
accessToken, err := signToken(accessTokensTimeToLive)
99+
if err != nil {
100+
t.Fatalf("failed to sign access token: %v", err)
101+
}
102+
ctx := context.Background()
103+
ctx, cancel := context.WithTimeout(ctx, tt.contextClosesIn)
104+
defer cancel()
105+
106+
authFlow := &fakeAuthFlow{
107+
backgroundTokenRefreshContext: ctx,
108+
doError: tt.doError,
109+
accessTokensTimeToLive: accessTokensTimeToLive,
110+
accessToken: accessToken,
111+
}
110112

111-
refresher := &continuousTokenRefresher{
112-
flow: authFlow,
113-
timeStartBeforeTokenExpiration: timeStartBeforeTokenExpiration,
114-
timeBetweenContextCheck: timeBetweenContextCheck,
115-
timeBetweenTries: timeBetweenTries,
116-
}
113+
refresher := &continuousTokenRefresher{
114+
flow: authFlow,
115+
timeStartBeforeTokenExpiration: timeStartBeforeTokenExpiration,
116+
timeBetweenContextCheck: timeBetweenContextCheck,
117+
timeBetweenTries: timeBetweenTries,
118+
}
117119

118-
err = refresher.continuousRefreshToken()
119-
if err == nil {
120-
t.Fatalf("routine finished with non-nil error")
121-
}
122-
numberDoCalls := authFlow.getTokenCalls()
123-
if numberDoCalls != tt.expectedNumberDoCalls {
124-
t.Fatalf("expected %d calls to API to refresh token, got %d", tt.expectedNumberDoCalls, numberDoCalls)
125-
}
120+
err = refresher.continuousRefreshToken()
121+
synctest.Wait()
122+
if err == nil {
123+
t.Fatalf("routine finished with non-nil error")
124+
}
125+
numberDoCalls := authFlow.getTokenCalls()
126+
if numberDoCalls != tt.expectedNumberDoCalls {
127+
t.Fatalf("expected %d calls to API to refresh token, got %d", tt.expectedNumberDoCalls, numberDoCalls)
128+
}
129+
})
126130
})
127131
}
128132
}

examples/auditlog/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ go 1.25
66
replace github.com/stackitcloud/stackit-sdk-go/services/auditlog => ../../services/auditlog
77

88
require (
9-
github.com/stackitcloud/stackit-sdk-go/core v0.25.0
10-
github.com/stackitcloud/stackit-sdk-go/services/auditlog v0.3.3
9+
github.com/stackitcloud/stackit-sdk-go/core v0.26.0
10+
github.com/stackitcloud/stackit-sdk-go/services/auditlog v0.4.1
1111
)
1212

1313
require (

examples/auditlog/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
44
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
55
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=
7-
github.com/stackitcloud/stackit-sdk-go/core v0.25.0 h1:ra3VEk684MNoq741g+xbZrKjZzhyztq5liUAwwew4DY=
8-
github.com/stackitcloud/stackit-sdk-go/core v0.25.0/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA=
7+
github.com/stackitcloud/stackit-sdk-go/core v0.26.0 h1:jQEb9gkehfp6VCP6TcYk7BI10cz4l0KM2L6hqYBH2QA=
8+
github.com/stackitcloud/stackit-sdk-go/core v0.26.0/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA=

examples/authentication/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ replace github.com/stackitcloud/stackit-sdk-go/services/dns => ../../services/dn
77

88
require (
99
github.com/stackitcloud/stackit-sdk-go/core v0.26.0
10-
github.com/stackitcloud/stackit-sdk-go/services/dns v0.19.3
10+
github.com/stackitcloud/stackit-sdk-go/services/dns v0.20.2
1111
)
1212

1313
require (

examples/authorization/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ go 1.25
55
// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub.
66
replace github.com/stackitcloud/stackit-sdk-go/services/authorization => ../../services/authorization
77

8-
require github.com/stackitcloud/stackit-sdk-go/services/authorization v0.14.3
8+
require github.com/stackitcloud/stackit-sdk-go/services/authorization v0.15.1
99

1010
require (
1111
github.com/golang-jwt/jwt/v5 v5.3.1 // indirect
1212
github.com/google/uuid v1.6.0 // indirect
13-
github.com/stackitcloud/stackit-sdk-go/core v0.25.0 // indirect
13+
github.com/stackitcloud/stackit-sdk-go/core v0.26.0 // indirect
1414
)

examples/authorization/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
44
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
55
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=
7-
github.com/stackitcloud/stackit-sdk-go/core v0.25.0 h1:ra3VEk684MNoq741g+xbZrKjZzhyztq5liUAwwew4DY=
8-
github.com/stackitcloud/stackit-sdk-go/core v0.25.0/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA=
7+
github.com/stackitcloud/stackit-sdk-go/core v0.26.0 h1:jQEb9gkehfp6VCP6TcYk7BI10cz4l0KM2L6hqYBH2QA=
8+
github.com/stackitcloud/stackit-sdk-go/core v0.26.0/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA=

examples/backgroundrefresh/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ replace github.com/stackitcloud/stackit-sdk-go/services/dns => ../../services/dn
77

88
require (
99
github.com/stackitcloud/stackit-sdk-go/core v0.26.0
10-
github.com/stackitcloud/stackit-sdk-go/services/dns v0.19.3
10+
github.com/stackitcloud/stackit-sdk-go/services/dns v0.20.2
1111
)
1212

1313
require (

examples/configuration/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ replace github.com/stackitcloud/stackit-sdk-go/services/dns => ../../services/dn
77

88
require (
99
github.com/stackitcloud/stackit-sdk-go/core v0.26.0
10-
github.com/stackitcloud/stackit-sdk-go/services/dns v0.19.3
10+
github.com/stackitcloud/stackit-sdk-go/services/dns v0.20.2
1111
github.com/stackitcloud/stackit-sdk-go/services/postgresql v0.12.1
1212
)
1313

0 commit comments

Comments
 (0)