Skip to content
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
81f3e04
fix: improve rollbacks
chronark Mar 7, 2026
17d611e
Merge branch 'main' of github.com:unkeyed/unkey
chronark Mar 7, 2026
195f5d6
feat: scaling and region tables
chronark Mar 7, 2026
ccebb8c
fix: replace AVAILABLE_REGIONS env var with clusterRegions table query
chronark Mar 7, 2026
2bcd687
fix: update instances mutation to use appScalingSettings table
chronark Mar 7, 2026
aa92057
fix: update CPU mutation to use appScalingSettings table
chronark Mar 7, 2026
47a4ae1
fix: update memory mutation to use appScalingSettings table
chronark Mar 7, 2026
325e89c
fix: update regions mutation to use appScalingSettings and clusterReg…
chronark Mar 7, 2026
f16d7c8
fix: revert cpu/memory mutations back to appRuntimeSettings
chronark Mar 7, 2026
0112d64
feat: rename app_scaling_settings to app_regional_settings, add horiz…
chronark Mar 7, 2026
5a6c901
feat: replace regionConfig with appRegionalSettings across dashboard
chronark Mar 7, 2026
76f1c16
fix: remove AVAILABLE_REGIONS from .env.example
chronark Mar 7, 2026
21e23d2
feat: add migration script for region_config to app_regional_settings
chronark Mar 7, 2026
1723b63
feat: add Heartbeat RPC to ClusterService proto
chronark Mar 7, 2026
837cab6
feat: add heartbeat loop to krane agent
chronark Mar 7, 2026
6c5eabc
feat: implement Heartbeat RPC handler and rename cluster_regions to r…
chronark Mar 7, 2026
895ae70
feat: deploy workflow reads from appRegionalSettings, add region_id t…
chronark Mar 7, 2026
c15b766
fix: display region names in UI, add local region support
chronark Mar 7, 2026
cd898da
feat: add X-Krane-Platform header, app_id to ApplySentinel, and appId…
chronark Mar 7, 2026
f05b4bf
fix: step conflict
chronark Mar 7, 2026
392a4fc
Merge branch 'main' of github.com:unkeyed/unkey into 03-07-fix_step_c…
chronark Mar 7, 2026
5c941a4
fix: rabbit
chronark Mar 8, 2026
3099de6
fix: frontline uses correct platform/region
chronark Mar 8, 2026
078a045
feat: add running state
chronark Mar 8, 2026
afbba9a
fix: relation key
chronark Mar 8, 2026
b52f848
fix: unique key
chronark Mar 8, 2026
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
1 change: 0 additions & 1 deletion dev/config/ctrl-api.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ instance_id = "ctrl-api-dev"
region = "local"
http_port = 7091
auth_token = "your-local-dev-key"
available_regions = ["local.dev"]
default_domain = "unkey.local"
cname_domain = "unkey.local"

Expand Down
3 changes: 2 additions & 1 deletion dev/config/krane.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
region = "local.dev"
region = "local"
platform = "dev"

[control_plane]
url = "http://ctrl-api:7091"
Expand Down
1 change: 0 additions & 1 deletion dev/k8s/manifests/ctrl-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ data:
region = "local"
http_port = 7091
auth_token = "your-local-dev-key"
available_regions = ["local.dev"]
default_domain = "unkey.local"
cname_domain = "unkey.local"

Expand Down
1 change: 0 additions & 1 deletion dev/k8s/manifests/ctrl-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ data:
cname_domain = "unkey.local"
build_platform = "linux/arm64"
sentinel_image = "unkey/sentinel:latest"
available_regions = ["local.dev"]

[database]
primary = "unkey:password@tcp(mysql:3306)/unkey?parseTime=true&interpolateParams=true"
Expand Down
3 changes: 2 additions & 1 deletion dev/k8s/manifests/frontline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ metadata:
namespace: unkey
data:
unkey.toml: |
region = "local.dev"
platform = "dev"
region = "local"
challenge_port = 7070
http_port = 7443
apex_domain = "unkey.local"
Expand Down
3 changes: 2 additions & 1 deletion dev/k8s/manifests/krane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ metadata:
component: krane
data:
unkey.toml: |
region = "local.dev"
region = "local"
platform = "dev"

[control]
url = "http://ctrl-api:7091"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ Rotation is manual today. There is no built-in rotation mechanism.

TODO: Replace with JWT-based auth once `auth.unkey.cloud` is in place.

<ResponseField name="available_regions" type="string[]">
Regions available for deployments.
</ResponseField>


<ResponseField name="default_domain" type="string">
Base domain for wildcard certificates.
Expand Down Expand Up @@ -117,7 +115,6 @@ prometheus_port = 9090
region = "${UNKEY_REGION}"
instance_id = "${POD_NAME}"
auth_token = "${UNKEY_AUTH_TOKEN}"
available_regions = ["eu-central-1.aws", "us-east-1.aws", "us-west-2.aws"]
default_domain = "${UNKEY_DEFAULT_DOMAIN}"
regional_domain = "${UNKEY_REGIONAL_DOMAIN}"
cname_domain = "${UNKEY_CNAME_DOMAIN}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ These fields must be set for production deployments.
| `default_domain` | string | `unkey.app` | Used for sentinel bootstrapping.
| `build_platform` | string | `linux/amd64` | Build platform, format `linux/{arch}`.
| `sentinel_image` | string | `ghcr.io/unkeyed/unkey:local` | Sentinel image override.
| `available_regions` | list | - | Regions allowed for deployments.
| `acme` | object | - | ACME config for cert issuance.
| `depot` | object | - | Depot.dev config for builds.
| `registry` | object | - | Registry credentials for builds.
Expand Down Expand Up @@ -126,7 +125,6 @@ instance_id = "${POD_NAME}"
default_domain = "${UNKEY_DEFAULT_DOMAIN}"
build_platform = "linux/amd64"
sentinel_image = "ghcr.io/unkeyed/unkey:v2.0.77"
available_regions = ["eu-central-1.aws", "us-east-1.aws"]
cname_domain = "${UNKEY_CNAME_DOMAIN}"

[database]
Expand Down
195 changes: 154 additions & 41 deletions gen/proto/ctrl/v1/cluster.pb.go

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions gen/proto/ctrl/v1/ctrlv1connect/cluster.connect.go

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

14 changes: 14 additions & 0 deletions gen/rpc/ctrl/cluster_generated.go

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

7 changes: 7 additions & 0 deletions pkg/db/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ go_library(
"app_find_with_settings.sql_generated.go",
"app_insert.sql_generated.go",
"app_list_by_project.sql_generated.go",
"app_regional_settings_find_by_app_and_env.sql_generated.go",
"app_runtime_settings_find.sql_generated.go",
"app_runtime_settings_upsert.sql_generated.go",
"app_update_deployments.sql_generated.go",
Expand All @@ -51,6 +52,8 @@ go_library(
"bulk_certificate_insert.sql_generated.go",
"bulk_cilium_network_policy_insert.sql_generated.go",
"bulk_clickhouse_workspace_settings_insert.sql_generated.go",
"bulk_cluster_region_upsert.sql_generated.go",
"bulk_cluster_upsert.sql_generated.go",
"bulk_custom_domain_insert.sql_generated.go",
"bulk_custom_domain_upsert.sql_generated.go",
"bulk_deployment_insert.sql_generated.go",
Expand Down Expand Up @@ -96,6 +99,10 @@ go_library(
"clickhouse_workspace_settings_find_by_workspace_id.sql_generated.go",
"clickhouse_workspace_settings_insert.sql_generated.go",
"clickhouse_workspace_settings_update_limits.sql_generated.go",
"cluster_region_find_by_name.sql_generated.go",
"cluster_region_list.sql_generated.go",
"cluster_region_upsert.sql_generated.go",
"cluster_upsert.sql_generated.go",
"custom_domain_delete_by_id.sql_generated.go",
"custom_domain_find_by_domain.sql_generated.go",
"custom_domain_find_by_domain_or_wildcard.sql_generated.go",
Expand Down
65 changes: 65 additions & 0 deletions pkg/db/app_regional_settings_find_by_app_and_env.sql_generated.go

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

40 changes: 40 additions & 0 deletions pkg/db/bulk_cluster_region_upsert.sql_generated.go

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

46 changes: 46 additions & 0 deletions pkg/db/bulk_cluster_upsert.sql_generated.go

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

5 changes: 4 additions & 1 deletion pkg/db/bulk_deployment_step_insert.sql_generated.go

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

Loading
Loading