Skip to content

Commit e881f60

Browse files
authored
Merge branch 'master' into fix-upload-precert-leaf-hash
2 parents 540fa11 + 4f6b31b commit e881f60

File tree

10 files changed

+67
-13
lines changed

10 files changed

+67
-13
lines changed

CHANGELOG.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# CERTIFICATE-TRANSPARENCY-GO Changelog
22

33
## HEAD
4+
* [preloader] Parse klog flags.
5+
6+
## v1.3.2
7+
8+
### Misc
49

510
* [migrillian] remove etcd support in #1699
611
* Bump golangci-lint from 1.55.1 to 1.61.0 (developers should update to this version).
@@ -9,6 +14,9 @@
914
* [ct_hammer] support HTTPS and Bearer token for Authentication.
1015
* [preloader] support Bearer token Authentication for non temporal logs.
1116
* [preloader] support end indexes
17+
* [CTFE] Short cache max-age when get-entries returns fewer entries than requested by @robstradling in https://github.com/google/certificate-transparency-go/pull/1707
18+
* [CTFE] Disalllow mismatching signature algorithm identifiers in #702.
19+
* [jsonclient] surface HTTP Do and Read errors #1695 by @FiloSottile
1220

1321
### CTFE Storage Saving: Extra Data Issuance Chain Deduplication
1422

@@ -27,6 +35,45 @@ This can help to ensure that the log maintains its ability to (1) accept "fresh"
2735

2836
* [CTFE] Configurable mechanism to rate-limit non-fresh submissions by @robstradling in https://github.com/google/certificate-transparency-go/pull/1698
2937

38+
### Dependency updates
39+
40+
* Bump the docker-deps group across 5 directories with 3 updates (#1705)
41+
* Bump google.golang.org/grpc from 1.72.1 to 1.72.2 in the all-deps group (#1704)
42+
* Bump github.com/go-jose/go-jose/v4 in the go_modules group (#1700)
43+
* Bump the all-deps group with 7 updates (#1701)
44+
* Bump the all-deps group with 7 updates (#1693)
45+
* Bump the docker-deps group across 4 directories with 1 update (#1694)
46+
* Bump github/codeql-action from 3.28.13 to 3.28.16 in the all-deps group (#1692)
47+
* Bump the all-deps group across 1 directory with 7 updates (#1688)
48+
* Bump distroless/base-debian12 (#1686)
49+
* Bump golangci/golangci-lint-action from 6.5.1 to 7.0.0 in the all-deps group (#1685)
50+
* Bump the all-deps group with 4 updates (#1681)
51+
* Bump the all-deps group with 6 updates (#1683)
52+
* Bump the docker-deps group across 4 directories with 2 updates (#1682)
53+
* Bump github.com/golang-jwt/jwt/v4 in the go_modules group (#1680)
54+
* Bump golangci/golangci-lint-action in the all-deps group (#1676)
55+
* Bump the all-deps group with 2 updates (#1677)
56+
* Bump github/codeql-action from 3.28.10 to 3.28.11 in the all-deps group (#1670)
57+
* Bump the all-deps group with 8 updates (#1672)
58+
* Bump the docker-deps group across 4 directories with 1 update (#1671)
59+
* Bump the docker-deps group across 4 directories with 1 update (#1668)
60+
* Bump the all-deps group with 4 updates (#1666)
61+
* Bump golangci-lint from 1.55.1 to 1.61.0 (#1667)
62+
* Bump the all-deps group with 3 updates (#1665)
63+
* Bump github.com/spf13/cobra from 1.8.1 to 1.9.1 in the all-deps group (#1660)
64+
* Bump the docker-deps group across 5 directories with 2 updates (#1661)
65+
* Bump golangci/golangci-lint-action in the all-deps group (#1662)
66+
* Bump the docker-deps group across 4 directories with 1 update (#1656)
67+
* Bump the all-deps group with 2 updates (#1654)
68+
* Bump the all-deps group with 4 updates (#1657)
69+
* Bump github/codeql-action from 3.28.5 to 3.28.8 in the all-deps group (#1652)
70+
* Bump github.com/spf13/pflag from 1.0.5 to 1.0.6 in the all-deps group (#1651)
71+
* Bump the all-deps group with 2 updates (#1649)
72+
* Bump the all-deps group with 5 updates (#1650)
73+
* Bump the docker-deps group across 5 directories with 3 updates (#1648)
74+
* Bump google.golang.org/protobuf in the all-deps group (#1647)
75+
* Bump golangci/golangci-lint-action in the all-deps group (#1646)
76+
3077
## v1.3.1
3178

3279
* Add AllLogListSignatureURL by @AlexLaroche in https://github.com/google/certificate-transparency-go/pull/1634

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ require (
2828
go.etcd.io/etcd/v3 v3.6.0
2929
golang.org/x/crypto v0.38.0
3030
golang.org/x/time v0.11.0
31-
google.golang.org/grpc v1.72.1
31+
google.golang.org/grpc v1.72.2
3232
google.golang.org/protobuf v1.36.6
3333
gopkg.in/yaml.v3 v3.0.1
3434
k8s.io/klog/v2 v2.130.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,8 @@ google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQ
425425
google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
426426
google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk=
427427
google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc=
428-
google.golang.org/grpc v1.72.1 h1:HR03wO6eyZ7lknl75XlxABNVLLFc2PAb6mHlYh756mA=
429-
google.golang.org/grpc v1.72.1/go.mod h1:wH5Aktxcg25y1I3w7H69nHfXdOG3UiadoBtjh3izSDM=
428+
google.golang.org/grpc v1.72.2 h1:TdbGzwb82ty4OusHWepvFWGLgIbNo1/SUynEN0ssqv8=
429+
google.golang.org/grpc v1.72.2/go.mod h1:wH5Aktxcg25y1I3w7H69nHfXdOG3UiadoBtjh3izSDM=
430430
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
431431
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
432432
google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=

integration/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This Dockerfile builds a base image for the certificate-transparency-go CloudBuild integration testing.
22
# See https://hub.docker.com/_/golang for the set of golang base images.
3-
FROM golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 as ct_testbase
3+
FROM golang:1.24.3-bookworm@sha256:29d97266c1d341b7424e2f5085440b74654ae0b61ecdba206bc12d6264844e21 as ct_testbase
44

55
WORKDIR /testbase
66

internal/witness/cmd/feeder/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 as builder
1+
FROM golang:1.24.3-bookworm@sha256:29d97266c1d341b7424e2f5085440b74654ae0b61ecdba206bc12d6264844e21 as builder
22

33
ARG GOFLAGS=""
44
ENV GOFLAGS=$GOFLAGS
@@ -18,7 +18,7 @@ COPY . .
1818
RUN go build -o /build/bin/feeder ./internal/witness/cmd/feeder
1919

2020
# Build release image
21-
FROM alpine:3.21@sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c
21+
FROM alpine:3.22@sha256:8a1f59ffb675680d47db6337b49d22281a139e9d709335b492be023728e11715
2222

2323
COPY --from=builder /build/bin/feeder /bin/feeder
2424
ENTRYPOINT ["/bin/feeder"]

internal/witness/cmd/witness/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 AS builder
1+
FROM golang:1.24.3-bookworm@sha256:29d97266c1d341b7424e2f5085440b74654ae0b61ecdba206bc12d6264844e21 AS builder
22

33
ARG GOFLAGS=""
44
ENV GOFLAGS=$GOFLAGS
@@ -18,7 +18,7 @@ COPY . .
1818
RUN go build -o /build/bin/witness ./internal/witness/cmd/witness
1919

2020
# Build release image
21-
FROM golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71
21+
FROM golang:1.24.3-bookworm@sha256:29d97266c1d341b7424e2f5085440b74654ae0b61ecdba206bc12d6264844e21
2222

2323
COPY --from=builder /build/bin/witness /bin/witness
2424
ENTRYPOINT ["/bin/witness"]

preload/preloader/preloader.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,9 @@ func precertSubmitter(ctx context.Context, addedCerts chan<- *preload.AddedCert,
131131
}
132132

133133
func main() {
134-
flag.Parse()
134+
klog.InitFlags(nil)
135135
klog.CopyStandardLogTo("WARNING")
136+
flag.Parse()
136137

137138
var sctFileWriter io.Writer
138139
var err error

trillian/ctfe/handlers.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ const (
5656
cacheControlHeader = "Cache-Control"
5757
// Value for Cache-Control header when response contains immutable data, i.e. entries or proofs. Allows the response to be cached for 1 day.
5858
cacheControlImmutable = "public, max-age=86400"
59+
// Value for Cache-Control header when response contains immutable but partial data, i.e. fewer entries than requested. Allows the response to be cached for 1 minute.
60+
cacheControlPartial = "public, max-age=60"
5961
// HTTP content type header
6062
contentTypeHeader string = "Content-Type"
6163
// MIME content type for JSON
@@ -802,7 +804,11 @@ func getEntries(ctx context.Context, li *logInfo, w http.ResponseWriter, r *http
802804
return http.StatusInternalServerError, fmt.Errorf("failed to process leaves returned from backend: %s", err)
803805
}
804806

805-
w.Header().Set(cacheControlHeader, cacheControlImmutable)
807+
if len(rsp.Leaves) < int(count) {
808+
w.Header().Set(cacheControlHeader, cacheControlPartial)
809+
} else {
810+
w.Header().Set(cacheControlHeader, cacheControlImmutable)
811+
}
806812
w.Header().Set(contentTypeHeader, contentTypeJSON)
807813
jsonData, err := json.Marshal(&jsonRsp)
808814
if err != nil {

trillian/examples/deployment/docker/ctfe/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 as build
1+
FROM golang:1.24.3-bookworm@sha256:29d97266c1d341b7424e2f5085440b74654ae0b61ecdba206bc12d6264844e21 as build
22

33
ARG GOFLAGS=""
44
ENV GOFLAGS=$GOFLAGS
@@ -12,7 +12,7 @@ COPY . .
1212

1313
RUN go build ./trillian/ctfe/ct_server
1414

15-
FROM gcr.io/distroless/base-debian12@sha256:27769871031f67460f1545a52dfacead6d18a9f197db77110cfc649ca2a91f44
15+
FROM gcr.io/distroless/base-debian12@sha256:cef75d12148305c54ef5769e6511a5ac3c820f39bf5c8a4fbfd5b76b4b8da843
1616

1717
COPY --from=build /build/ct_server /
1818

trillian/examples/deployment/docker/envsubst/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:3.21@sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c
1+
FROM alpine:3.22@sha256:8a1f59ffb675680d47db6337b49d22281a139e9d709335b492be023728e11715
22

33
RUN apk add --no-cache gettext
44

0 commit comments

Comments
 (0)