Skip to content

Commit 7e8cf48

Browse files
authored
Merge pull request #271 from splitio/semver
Semver
2 parents 85a873d + b4041af commit 7e8cf48

Some content is hidden

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

77 files changed

+557
-295
lines changed

CHANGES.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
5.7.0 (TD)
1+
5.8.0 (May 14, 2024)
2+
- Added support for targeting rules based on semantic versions (https://semver.org/).
3+
- Added special impression label "targeting rule type unsupported by sdk" when the matcher type is not supported by the SDK, which returns 'control' treatment.
4+
- Forward TLS server name when in redis-sentinel & redis-cluster
5+
- Fixed vulnerabilities:
6+
- Updated debian image to 12.5
7+
- Updated golang image to 1.21.10
8+
- Updated gin/gonic to 1.10
9+
- Updated go-split-commons to v6
10+
11+
5.7.0 (TBD)
212
- Add support for FIPS-compliant binaries & docker images
313

414
5.6.1 (Jan 29, 2024)

docker/Dockerfile.proxy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build stage
2-
FROM golang:1.21.6-bookworm AS builder
2+
FROM golang:1.21.10-bookworm AS builder
33

44
ARG EXTRA_BUILD_ARGS
55
ARG FIPS_MODE
@@ -17,7 +17,7 @@ RUN bash -c 'if [[ "${FIPS_MODE}" = "enabled" ]]; \
1717
fi'
1818

1919
# Runner stage
20-
FROM debian:12.4 AS runner
20+
FROM debian:12.5 AS runner
2121

2222
RUN apt update -y
2323
RUN apt install -y bash ca-certificates

docker/Dockerfile.synchronizer

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build stage
2-
FROM golang:1.21.6-bookworm AS builder
2+
FROM golang:1.21.10-bookworm AS builder
33

44
ARG EXTRA_BUILD_ARGS
55
ARG FIPS_MODE
@@ -17,7 +17,7 @@ RUN bash -c 'if [[ "${FIPS_MODE}" = "enabled" ]]; \
1717
fi'
1818

1919
# Runner stage
20-
FROM debian:12.4 AS runner
20+
FROM debian:12.5 AS runner
2121

2222
RUN apt update -y
2323
RUN apt install -y bash ca-certificates

go.mod

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,48 +5,50 @@ go 1.21
55
require (
66
github.com/gin-contrib/cors v1.4.0
77
github.com/gin-contrib/gzip v0.0.6
8-
github.com/gin-gonic/gin v1.9.1
8+
github.com/gin-gonic/gin v1.10.0
99
github.com/google/uuid v1.3.0
1010
github.com/splitio/gincache v1.0.1
11-
github.com/splitio/go-split-commons/v5 v5.2.1
11+
github.com/splitio/go-split-commons/v6 v6.0.0
1212
github.com/splitio/go-toolkit/v5 v5.4.0
13-
github.com/stretchr/testify v1.8.4
13+
github.com/stretchr/testify v1.9.0
1414
go.etcd.io/bbolt v1.3.6
1515
golang.org/x/exp v0.0.0-20231006140011-7918f672742d
1616
)
1717

1818
require (
1919
github.com/bits-and-blooms/bitset v1.3.1 // indirect
2020
github.com/bits-and-blooms/bloom/v3 v3.3.1 // indirect
21-
github.com/bytedance/sonic v1.9.1 // indirect
21+
github.com/bytedance/sonic v1.11.6 // indirect
22+
github.com/bytedance/sonic/loader v0.1.1 // indirect
2223
github.com/cespare/xxhash/v2 v2.2.0 // indirect
23-
github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect
24+
github.com/cloudwego/base64x v0.1.4 // indirect
25+
github.com/cloudwego/iasm v0.2.0 // indirect
2426
github.com/davecgh/go-spew v1.1.1 // indirect
2527
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
26-
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
28+
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
2729
github.com/gin-contrib/sse v0.1.0 // indirect
2830
github.com/go-playground/locales v0.14.1 // indirect
2931
github.com/go-playground/universal-translator v0.18.1 // indirect
30-
github.com/go-playground/validator/v10 v10.14.0 // indirect
32+
github.com/go-playground/validator/v10 v10.20.0 // indirect
3133
github.com/goccy/go-json v0.10.2 // indirect
3234
github.com/json-iterator/go v1.1.12 // indirect
33-
github.com/klauspost/cpuid/v2 v2.2.4 // indirect
34-
github.com/leodido/go-urn v1.2.4 // indirect
35-
github.com/mattn/go-isatty v0.0.19 // indirect
35+
github.com/klauspost/cpuid/v2 v2.2.7 // indirect
36+
github.com/leodido/go-urn v1.4.0 // indirect
37+
github.com/mattn/go-isatty v0.0.20 // indirect
3638
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
3739
github.com/modern-go/reflect2 v1.0.2 // indirect
38-
github.com/pelletier/go-toml/v2 v2.0.8 // indirect
40+
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
3941
github.com/pmezard/go-difflib v1.0.0 // indirect
4042
github.com/redis/go-redis/v9 v9.0.4 // indirect
41-
github.com/stretchr/objx v0.5.0 // indirect
43+
github.com/stretchr/objx v0.5.2 // indirect
4244
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
43-
github.com/ugorji/go/codec v1.2.11 // indirect
44-
golang.org/x/arch v0.3.0 // indirect
45-
golang.org/x/crypto v0.17.0 // indirect
46-
golang.org/x/net v0.17.0 // indirect
45+
github.com/ugorji/go/codec v1.2.12 // indirect
46+
golang.org/x/arch v0.8.0 // indirect
47+
golang.org/x/crypto v0.23.0 // indirect
48+
golang.org/x/net v0.25.0 // indirect
4749
golang.org/x/sync v0.3.0 // indirect
48-
golang.org/x/sys v0.15.0 // indirect
49-
golang.org/x/text v0.14.0 // indirect
50-
google.golang.org/protobuf v1.30.0 // indirect
50+
golang.org/x/sys v0.20.0 // indirect
51+
golang.org/x/text v0.15.0 // indirect
52+
google.golang.org/protobuf v1.34.1 // indirect
5153
gopkg.in/yaml.v3 v3.0.1 // indirect
5254
)

go.sum

Lines changed: 45 additions & 45 deletions
Large diffs are not rendered by default.

splitio/admin/admin.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ type Options struct {
3939
Snapshotter cstorage.Snapshotter
4040
TLS *tls.Config
4141
FullConfig interface{}
42+
FlagSpecVersion string
4243
}
4344

4445
type AdminServer struct {
@@ -66,6 +67,7 @@ func NewServer(options *Options) (*AdminServer, error) {
6667
options.EventsEvCalc,
6768
options.Runtime,
6869
options.HcAppMonitor,
70+
options.FlagSpecVersion,
6971
)
7072
if err != nil {
7173
return nil, fmt.Errorf("error instantiating dashboard controller: %w", err)

splitio/admin/common/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package common
22

3-
import "github.com/splitio/go-split-commons/v5/storage"
3+
import "github.com/splitio/go-split-commons/v6/storage"
44

55
// Storages wraps storages in one struct
66
type Storages struct {

splitio/admin/controllers/dashboard.go

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ type DashboardController struct {
2929
eventsEvCalc evcalc.Monitor
3030
runtime common.Runtime
3131
appMonitor application.MonitorIterface
32+
FlagSpecVersion string
3233
}
3334

3435
// NewDashboardController instantiates a new dashboard controller
@@ -41,6 +42,7 @@ func NewDashboardController(
4142
eventsEvCalc evcalc.Monitor,
4243
runtime common.Runtime,
4344
appMonitor application.MonitorIterface,
45+
flagSpecVersion string,
4446
) (*DashboardController, error) {
4547

4648
toReturn := &DashboardController{
@@ -52,6 +54,7 @@ func NewDashboardController(
5254
eventsEvCalc: eventsEvCalc,
5355
impressionsEvCalc: impressionEvCalc,
5456
appMonitor: appMonitor,
57+
FlagSpecVersion: flagSpecVersion,
5558
}
5659

5760
var err error
@@ -104,12 +107,13 @@ func (c *DashboardController) segmentKeys(ctx *gin.Context) {
104107
func (c *DashboardController) renderDashboard() ([]byte, error) {
105108
var layoutBuffer bytes.Buffer
106109
err := c.layout.Execute(&layoutBuffer, dashboard.RootObject{
107-
DashboardTitle: c.title,
108-
Version: splitio.Version,
109-
ProxyMode: c.proxy,
110-
RefreshTime: 30000,
111-
Stats: *c.gatherStats(),
112-
Health: c.appMonitor.GetHealthStatus(),
110+
DashboardTitle: c.title,
111+
Version: splitio.Version,
112+
ProxyMode: c.proxy,
113+
RefreshTime: 30000,
114+
Stats: *c.gatherStats(),
115+
Health: c.appMonitor.GetHealthStatus(),
116+
FlagSpecVersion: c.FlagSpecVersion,
113117
})
114118

115119
if err != nil {

splitio/admin/controllers/helpers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"strings"
66
"time"
77

8-
"github.com/splitio/go-split-commons/v5/storage"
9-
"github.com/splitio/go-split-commons/v5/telemetry"
8+
"github.com/splitio/go-split-commons/v6/storage"
9+
"github.com/splitio/go-split-commons/v6/telemetry"
1010

1111
"github.com/splitio/split-synchronizer/v5/splitio/admin/views/dashboard"
1212
"github.com/splitio/split-synchronizer/v5/splitio/producer/evcalc"

splitio/admin/controllers/observability_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"testing"
99

1010
"github.com/gin-gonic/gin"
11-
"github.com/splitio/go-split-commons/v5/dtos"
12-
"github.com/splitio/go-split-commons/v5/storage/mocks"
11+
"github.com/splitio/go-split-commons/v6/dtos"
12+
"github.com/splitio/go-split-commons/v6/storage/mocks"
1313
"github.com/splitio/go-toolkit/v5/datastructures/set"
1414
"github.com/splitio/go-toolkit/v5/logging"
1515
adminCommon "github.com/splitio/split-synchronizer/v5/splitio/admin/common"

0 commit comments

Comments
 (0)