Skip to content
Merged
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
69 changes: 41 additions & 28 deletions app/controlplane/api/controlplane/v1/status.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion app/controlplane/api/controlplane/v1/status.proto
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright 2023 The Chainloop Authors.
// Copyright 2023-2025 The Chainloop Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -44,6 +44,8 @@ message InfozResponse {
string version = 2;
// Version of the helm chart used during deployment
string chart_version = 3;
// Whether organization creation is restricted to admins
bool restricted_org_creation = 4;
}

message StatuszResponse {}
2 changes: 1 addition & 1 deletion app/controlplane/api/controlplane/v1/status_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 16 additions & 1 deletion app/controlplane/api/gen/frontend/controlplane/v1/status.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/controlplane/cmd/wire.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ func wireApp(*conf.Bootstrap, credentials.ReaderWriter, log.Logger, sdk.Availabl
)
}

func authzConfig() *authz.Config {
return &authz.Config{ManagedResources: authz.ManagedResources, RolesMap: authz.RolesMap}
func authzConfig(conf *conf.Bootstrap) *authz.Config {
return &authz.Config{ManagedResources: authz.ManagedResources, RolesMap: authz.RolesMap, RestrictOrgCreation: conf.RestrictOrgCreation}
}

func newJWTConfig(conf *conf.Auth) *biz.APITokenJWTConfig {
Expand Down
7 changes: 4 additions & 3 deletions app/controlplane/cmd/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions app/controlplane/configs/config.devel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ server:
# certificate: "../../devel/devkeys/selfsigned/controlplane.crt"
# private_key: "../../devel/devkeys/selfsigned/controlplane.key"

# nats_server:
# uri: nats://0.0.0.0:4222
nats_server:
uri: nats://0.0.0.0:4222

# Restrict organization creation to role:instance:admin
restrict_org_creation: true

certificate_authorities:
- issuer: true
Expand Down Expand Up @@ -104,4 +107,4 @@ enable_profiler: true

# federated_authentication:
# enabled: true
# url: http://localhost:8002/machine-identity/verify-token
# url: http://localhost:8002/machine-identity/verify-token
Loading
Loading