Skip to content

Commit 93a3f8b

Browse files
authored
SDK and go version update. (#259)
* SDK and go version update. Signed-off-by: Volkan Özçelik <[email protected]> * Dockerfile update. Signed-off-by: Volkan Özçelik <[email protected]> * gosum update. Signed-off-by: Volkan Özçelik <[email protected]> * cosign update. Signed-off-by: Volkan Özçelik <[email protected]> * cosign update. Signed-off-by: Volkan Özçelik <[email protected]> * cosign update. Signed-off-by: Volkan Özçelik <[email protected]> --------- Signed-off-by: Volkan Özçelik <[email protected]>
1 parent 87f61f5 commit 93a3f8b

File tree

11 files changed

+25
-25
lines changed

11 files changed

+25
-25
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
uses: docker/setup-buildx-action@v3
3838

3939
- name: Install cosign
40-
uses: sigstore/cosign-installer@v3.3.0
40+
uses: sigstore/cosign-installer@v4.0.0
4141

4242
# Build and push images using the script
4343
- name: Build and push images

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
uses: docker/setup-buildx-action@v3
4545

4646
- name: Install cosign
47-
uses: sigstore/cosign-installer@v3.3.0
47+
uses: sigstore/cosign-installer@v4.0.0
4848

4949
- name: Login to Docker HUB
5050
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0

app/nexus/internal/state/base/policy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func CheckAccess(
4747
const fName = "CheckAccess"
4848
// Role:SpikePilot can always manage secrets and policies,
4949
// and can call encryption and decryption API endpoints.
50-
if spiffeid.IsPilot(peerSPIFFEID) {
50+
if spiffeid.IsPilotOperator(peerSPIFFEID) {
5151
return true
5252
}
5353

app/spike/internal/trust/spiffeid.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ package trust
1111
import (
1212
sdkErrors "github.com/spiffe/spike-sdk-go/errors"
1313
"github.com/spiffe/spike-sdk-go/log"
14-
svid "github.com/spiffe/spike-sdk-go/spiffeid"
14+
"github.com/spiffe/spike-sdk-go/spiffeid"
1515
)
1616

1717
// AuthenticateForPilot verifies if the provided SPIFFE ID belongs to a
@@ -20,7 +20,7 @@ import (
2020
// SPIFFEID is the SPIFFE ID string to authenticate for pilot access.
2121
func AuthenticateForPilot(SPIFFEID string) {
2222
const fName = "AuthenticateForPilot"
23-
if !svid.IsPilot(SPIFFEID) {
23+
if !spiffeid.IsPilotOperator(SPIFFEID) {
2424
failErr := *sdkErrors.ErrAccessUnauthorized.Clone()
2525
failErr.Msg = "you need a 'pilot' SPIFFE ID to use this command"
2626
log.FatalErr(fName, failErr)
@@ -33,7 +33,7 @@ func AuthenticateForPilot(SPIFFEID string) {
3333
// SPIFFEID is the SPIFFE ID string to authenticate for pilot recover access.
3434
func AuthenticateForPilotRecover(SPIFFEID string) {
3535
const fName = "AuthenticateForPilotRecover"
36-
if !svid.IsPilotRecover(SPIFFEID) {
36+
if !spiffeid.IsPilotRecover(SPIFFEID) {
3737
failErr := *sdkErrors.ErrAccessUnauthorized.Clone()
3838
failErr.Msg = "you need a 'recover' SPIFFE ID to use this command"
3939
log.FatalErr(fName, failErr)
@@ -46,7 +46,7 @@ func AuthenticateForPilotRecover(SPIFFEID string) {
4646
// SPIFFEID is the SPIFFE ID string to authenticate for restore access.
4747
func AuthenticateForPilotRestore(SPIFFEID string) {
4848
const fName = "AuthenticateForPilotRestore"
49-
if !svid.IsPilotRestore(SPIFFEID) {
49+
if !spiffeid.IsPilotRestore(SPIFFEID) {
5050
failErr := *sdkErrors.ErrAccessUnauthorized.Clone()
5151
failErr.Msg = "you need a 'restore' SPIFFE ID to use this command"
5252
log.FatalErr(fName, failErr)

dockerfiles/bootstrap.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# \\\\\ Copyright 2024-present SPIKE contributors.
33
# \\\\\\\ SPDX-License-Identifier: Apache-2.0
44

5-
FROM --platform=$BUILDPLATFORM golang:1.25.3 AS builder
5+
FROM --platform=$BUILDPLATFORM golang:1.25.5 AS builder
66
ARG BUILDPLATFORM
77
ARG TARGETPLATFORM
88
ARG TARGETOS

dockerfiles/demo.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# \\\\\ Copyright 2024-present SPIKE contributors.
33
# \\\\\\\ SPDX-License-Identifier: Apache-2.0
44

5-
FROM --platform=$BUILDPLATFORM golang:1.25.3 AS builder
5+
FROM --platform=$BUILDPLATFORM golang:1.25.5 AS builder
66
ARG BUILDPLATFORM
77
ARG TARGETPLATFORM
88
ARG TARGETOS

dockerfiles/keeper.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# \\\\\ Copyright 2024-present SPIKE contributors.
33
# \\\\\\\ SPDX-License-Identifier: Apache-2.0
44

5-
FROM --platform=$BUILDPLATFORM golang:1.25.3 AS builder
5+
FROM --platform=$BUILDPLATFORM golang:1.25.5 AS builder
66
ARG BUILDPLATFORM
77
ARG TARGETPLATFORM
88
ARG TARGETOS

dockerfiles/nexus.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# \\\\\ Copyright 2024-present SPIKE contributors.
33
# \\\\\\\ SPDX-License-Identifier: Apache-2.0
44

5-
FROM --platform=$BUILDPLATFORM golang:1.25.3 AS builder
5+
FROM --platform=$BUILDPLATFORM golang:1.25.5 AS builder
66
ARG BUILDPLATFORM
77
ARG TARGETPLATFORM
88
ARG TARGETOS

dockerfiles/pilot.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# \\\\\ Copyright 2024-present SPIKE contributors.
33
# \\\\\\\ SPDX-License-Identifier: Apache-2.0
44

5-
FROM --platform=$BUILDPLATFORM golang:1.25.3 AS builder
5+
FROM --platform=$BUILDPLATFORM golang:1.25.5 AS builder
66
ARG BUILDPLATFORM
77
ARG TARGETPLATFORM
88
ARG TARGETOS

go.mod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/spiffe/spike
22

3-
go 1.25.3
3+
go 1.25.5
44

55
require (
66
github.com/cloudflare/circl v1.6.1
@@ -9,12 +9,12 @@ require (
99
github.com/mattn/go-sqlite3 v1.14.32
1010
github.com/spf13/cobra v1.10.2
1111
github.com/spiffe/go-spiffe/v2 v2.6.0
12-
github.com/spiffe/spike-sdk-go v0.16.4
12+
github.com/spiffe/spike-sdk-go v0.17.0
1313
golang.org/x/term v0.38.0
1414
gopkg.in/yaml.v3 v3.0.1
15-
k8s.io/api v0.34.2
16-
k8s.io/apimachinery v0.34.2
17-
k8s.io/client-go v0.34.2
15+
k8s.io/api v0.34.3
16+
k8s.io/apimachinery v0.34.3
17+
k8s.io/client-go v0.34.3
1818
)
1919

2020
require (

0 commit comments

Comments
 (0)