Skip to content

Commit 8bc3eaf

Browse files
committed
Merge remote-tracking branch 'origin/main' into jiparis/ai-agent-config-kind
2 parents 00da87d + f0fb3c1 commit 8bc3eaf

36 files changed

Lines changed: 1008 additions & 141 deletions

.chainloop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This indicates the [current version]+next
22
# to indicate that we are building a new version of the project
3-
projectVersion: v1.82.0+next
3+
projectVersion: v1.82.1+next
44

55
# Experimental feature used by Chainloop labs shared workflow https://github.com/chainloop-dev/labs
66
# It maps the material names with location in disk so they get automatically attested

app/artifact-cas/configs/config.devel.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ server:
88
# Timeouts for http downloads
99
# grpc downloads/uploads don't require this because they don't have timeouts
1010
timeout: 300s
11+
# cors:
12+
# allow_origins:
13+
# - "http://localhost:3000"
1114
grpc:
1215
addr: 0.0.0.0:9001
1316
# Some unary RPCs are slow, so we need to increase the timeout
@@ -18,9 +21,6 @@ server:
1821
# private_key: "../../devel/devkeys/selfsigned/cas.key"
1922
http_metrics:
2023
addr: 0.0.0.0:5001
21-
# cors:
22-
# allow_origins:
23-
# - "http://localhost:3000"
2424

2525
credentials_service:
2626
# we will check that we can read there

app/artifact-cas/internal/conf/conf.pb.go

Lines changed: 62 additions & 62 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/artifact-cas/internal/conf/conf.proto

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,15 @@ message Bootstrap {
3838
}
3939

4040
message Server {
41+
message CORS {
42+
repeated string allow_origins = 1;
43+
}
4144
message HTTP {
4245
string network = 1;
4346
string addr = 2;
4447
google.protobuf.Duration timeout = 3;
45-
}
46-
message CORS {
47-
repeated string allow_origins = 1;
48+
// CORS configuration for the HTTP download endpoint
49+
CORS cors = 4;
4850
}
4951
message TLS {
5052
// path to certificate and private key
@@ -63,8 +65,6 @@ message Server {
6365
GRPC grpc = 2;
6466
// hHTTP server where the prometheus metrics will get exposed
6567
HTTP http_metrics = 3;
66-
// CORS configuration for the HTTP download endpoint
67-
CORS cors = 4;
6868
}
6969

7070
message Auth {

app/artifact-cas/internal/server/http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func NewHTTPServer(c *conf.Server, authConf *conf.Auth, downloadSvc *service.Dow
6666
srv := http.NewServer(opts...)
6767

6868
downloadHandler := middlewares_http.AuthFromQueryParam(loadPublicKey(rawKey), claimsFunc(), casJWT.SigningMethod, downloadSvc)
69-
srv.Handle(service.DownloadPath, CORSMiddleware(c.GetCors().GetAllowOrigins(), downloadHandler))
69+
srv.Handle(service.DownloadPath, CORSMiddleware(c.GetHttp().GetCors().GetAllowOrigins(), downloadHandler))
7070
api.RegisterStatusServiceHTTPServer(srv, service.NewStatusService(Version, providers))
7171
return srv, nil
7272
}

buf.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ modules:
3131
except:
3232
- EXTENSION_NO_DELETE
3333
- FIELD_SAME_DEFAULT
34+
ignore_only:
35+
FIELD_NO_DELETE:
36+
- app/artifact-cas/internal/conf/conf.proto
3437
- path: app/controlplane/api
3538
lint:
3639
use:

deployment/chainloop/Chart.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ description: Chainloop is an open source software supply chain control plane, a
77

88
type: application
99
# Bump the patch (not minor, not major) version on each change in the Chart Source code
10-
version: 1.343.0
10+
version: 1.344.0
1111
# Do not update appVersion, this is handled automatically by the release process
12-
appVersion: v1.82.0
12+
appVersion: v1.82.1
1313

1414
dependencies:
1515
- name: common
@@ -33,11 +33,11 @@ dependencies:
3333

3434
annotations:
3535
images: |
36-
- image: ghcr.io/chainloop-dev/chainloop/artifact-cas:v1.82.0
36+
- image: ghcr.io/chainloop-dev/chainloop/artifact-cas:v1.82.1
3737
name: artifact-cas
38-
- image: ghcr.io/chainloop-dev/chainloop/control-plane:v1.82.0
38+
- image: ghcr.io/chainloop-dev/chainloop/control-plane:v1.82.1
3939
name: control-plane
40-
- image: ghcr.io/chainloop-dev/chainloop/control-plane-migrations:v1.82.0
40+
- image: ghcr.io/chainloop-dev/chainloop/control-plane-migrations:v1.82.1
4141
name: control-plane-migrations
42-
- image: ghcr.io/chainloop-dev/chainloop/cli:v1.82.0
42+
- image: ghcr.io/chainloop-dev/chainloop/cli:v1.82.1
4343
name: cli

deployment/chainloop/templates/cas/configmap.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,21 @@ data:
2020
# Timeouts for http downloads
2121
# grpc downloads/uploads don't require this because they don't have timeouts
2222
timeout: 300s
23+
{{- if .Values.cas.allowedOrigins }}
24+
cors:
25+
allow_origins:
26+
{{- if kindIs "string" .Values.cas.allowedOrigins }}
27+
{{- range splitList "," .Values.cas.allowedOrigins }}
28+
{{- if (trim .) }}
29+
- {{ trim . | quote }}
30+
{{- end }}
31+
{{- end }}
32+
{{- else }}
33+
{{- range .Values.cas.allowedOrigins }}
34+
- {{ . | quote }}
35+
{{- end }}
36+
{{- end }}
37+
{{- end }}
2338
grpc:
2439
{{- if include "cas.tls-secret-name" . }}
2540
tls_config:
@@ -31,18 +46,3 @@ data:
3146
timeout: 5s
3247
http_metrics:
3348
addr: "0.0.0.0:{{ .Values.cas.containerPorts.metrics}}"
34-
{{- if .Values.cas.allowedOrigins }}
35-
cors:
36-
allow_origins:
37-
{{- if kindIs "string" .Values.cas.allowedOrigins }}
38-
{{- range splitList "," .Values.cas.allowedOrigins }}
39-
{{- if (trim .) }}
40-
- {{ trim . | quote }}
41-
{{- end }}
42-
{{- end }}
43-
{{- else }}
44-
{{- range .Values.cas.allowedOrigins }}
45-
- {{ . | quote }}
46-
{{- end }}
47-
{{- end }}
48-
{{- end }}

deployment/chainloop/values.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ controlplane:
138138
image:
139139
registry: ghcr.io
140140
repository: chainloop-dev/chainloop/control-plane
141-
tag: "v1.82.0"
141+
tag: "v1.82.1"
142142

143143

144144
## @param controlplane.containerPorts.http controlplane HTTP container port
@@ -219,7 +219,7 @@ controlplane:
219219
image:
220220
registry: ghcr.io
221221
repository: chainloop-dev/chainloop/control-plane-migrations
222-
tag: "v1.82.0"
222+
tag: "v1.82.1"
223223
# Run the migration job forcing SSL, required in AWS RDS for PostgreSQL 15
224224
ssl: false
225225

@@ -1007,7 +1007,7 @@ cas:
10071007
image:
10081008
registry: ghcr.io
10091009
repository: chainloop-dev/chainloop/artifact-cas
1010-
tag: "v1.82.0"
1010+
tag: "v1.82.1"
10111011

10121012
## @param cas.containerPorts.http controlplane HTTP container port
10131013
## @param cas.containerPorts.grpc controlplane gRPC container port

0 commit comments

Comments
 (0)