Skip to content

Commit 04bc04c

Browse files
authored
feat(attestation): federated verification (#1825)
Signed-off-by: Miguel Martinez <[email protected]>
1 parent 52b3dc1 commit 04bc04c

File tree

20 files changed

+687
-342
lines changed

20 files changed

+687
-342
lines changed

app/controlplane/cmd/wire.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright 2024 The Chainloop Authors.
2+
// Copyright 2024-2025 The Chainloop Authors.
33
//
44
// Licensed under the Apache License, Version 2.0 (the "License");
55
// you may not use this file except in compliance with the License.
@@ -52,7 +52,7 @@ func wireApp(*conf.Bootstrap, credentials.ReaderWriter, log.Logger, sdk.Availabl
5252
wire.Bind(new(biz.CASClient), new(*biz.CASClientUseCase)),
5353
serviceOpts,
5454
wire.Value([]biz.CASClientOpts{}),
55-
wire.FieldsOf(new(*conf.Bootstrap), "Server", "Auth", "Data", "CasServer", "ReferrerSharedIndex", "Onboarding", "PrometheusIntegration", "PolicyProviders", "NatsServer", "CertificateAuthorities"),
55+
wire.FieldsOf(new(*conf.Bootstrap), "Server", "Auth", "Data", "CasServer", "ReferrerSharedIndex", "Onboarding", "PrometheusIntegration", "PolicyProviders", "NatsServer", "CertificateAuthorities", "FederatedAuthentication"),
5656
wire.FieldsOf(new(*conf.Data), "Database"),
5757
dispatcher.New,
5858
authz.NewDatabaseEnforcer,

app/controlplane/cmd/wire_gen.go

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

app/controlplane/configs/config.devel.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,8 @@ policy_providers:
9393
default: true
9494
url: http://localhost:8002/v1
9595

96-
enable_profiler: true
96+
enable_profiler: true
97+
98+
# federated_authentication:
99+
# enabled: true
100+
# url: http://localhost:8002/machine-identity/verify-token

app/controlplane/configs/samples/config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,9 @@ prometheus_integration:
9696
- org_name: "my-org"
9797

9898
enable_profiler: true
99+
100+
# Enable federated authentication during attestation process
101+
# This means that the controlplane will send the JWT token to a remote endpoint to verify it
102+
# federated_authentication:
103+
# enabled: true
104+
# url: http://localhost:8002/machine-identity/verify-token

0 commit comments

Comments
 (0)