Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.23.4-alpine as gobuff
FROM golang:1.24-alpine as gobuff

EXPOSE 3000

Expand Down Expand Up @@ -37,6 +37,10 @@ COPY go.sum .
RUN go mod download
ADD . .
RUN go version

# Enable FIPS 140-3 compliant cryptography
ENV GOFIPS140=v1.0.0

RUN buffalo build --static -o /bin/api --ldflags "-X github.com/YaleSpinup/rds-api/rdsapi.Version=$version -X github.com/YaleSpinup/rds-api/rdsapi.VersionPrerelease=$prerelease -X github.com/YaleSpinup/rds-api/rdsapi.GitHash=$githash -X github.com/YaleSpinup/rds-api/rdsapi.BuildStamp=$buildstamp"


Expand Down
6 changes: 5 additions & 1 deletion docker/Dockerfile.local
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.23.4-alpine AS gobuff
FROM golang:1.24-alpine AS gobuff

EXPOSE 3000

Expand Down Expand Up @@ -31,6 +31,10 @@ COPY go.sum .
RUN go mod download
ADD . .
RUN go version

# Enable FIPS 140-3 compliant cryptography
ENV GOFIPS140=v1.0.0

RUN buffalo build --static -o /bin/api

FROM alpine
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/YaleSpinup/rds-api

go 1.23
go 1.24

toolchain go1.23.4
toolchain go1.24.0

require (
github.com/YaleSpinup/apierror v0.1.5
Expand Down
5 changes: 3 additions & 2 deletions pkg/session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@
}

config := aws.Config{
Credentials: s.credentials,
Region: aws.String(s.region),
Credentials: s.credentials,
Region: aws.String(s.region),
UseFIPSEndpoint: aws.FIPSEndpointStateEnabled,

Check failure on line 34 in pkg/session/session.go

View workflow job for this annotation

GitHub Actions / ubuntu-latest - Go v1.21.x

undefined: aws.FIPSEndpointStateEnabled
}

sess := session.Must(session.NewSession(&config))
Expand Down
Loading