Skip to content

feat: add GetTenantConfig and UpdateTenantConfig RPCs for tenant configuration - #127

Merged
pabloszel11 merged 13 commits into
mainfrom
tenantConfig
Sep 17, 2026
Merged

pabloszel11 merged 13 commits into
mainfrom
tenantConfig

Conversation

@pabloszel11

@pabloszel11 pabloszel11 commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Implements the api-sdk portion of tenant-specific configuration overrides.

What changed

tenant_config.proto (new) — dedicated proto for tenant config at proto/kms/api/cmk/registry/tenant_config/v1. Contains the GetTenantConfig and UpdateTenantConfig RPCs, TenantConfiguration message with optional int32 system_limit and its own status fields (TenantConfigStatus, error_message, updated_at), and TenantConfigAction enum for the orbital job — following the same pattern as auth.proto. Config status is self-contained — the tenant's own Status field is unaffected during a config update.

…ific configuration

Signed-off-by: Pawel Szelag <pablo.szel@gmail.com>
Signed-off-by: Pawel Szelag <pablo.szel@gmail.com>
@coderabbitai

coderabbitai Bot commented Sep 16, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 6136e6b1-a155-41ab-9b93-b78bfc730dd4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Sep 16, 2026

Copy link
Copy Markdown

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedSep 16, 2026, 1:56 PM

@cb80 cb80 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move that into its own proto file please?
proto/kms/api/cmk/registry/tenant_config/v1

Signed-off-by: Pawel Szelag <pablo.szel@gmail.com>
… changes

Signed-off-by: Pawel Szelag <pablo.szel@gmail.com>
Signed-off-by: Pawel Szelag <pablo.szel@gmail.com>
@pabloszel11
pabloszel11 requested a review from cb80 September 16, 2026 12:03
Comment thread proto/kms/api/cmk/registry/tenant_config/v1/tenant_config.proto Outdated
Comment thread proto/kms/api/cmk/registry/tenant_config/v1/tenant_config.proto Outdated
Comment thread proto/kms/api/cmk/registry/tenant_config/v1/tenant_config.proto Outdated
pabloszel11 and others added 5 commits September 16, 2026 14:13
Co-authored-by: Chris Burkert <burkert.chris@gmail.com>
Signed-off-by: Paweł Szeląg <pablo.szel@gmail.com>
Co-authored-by: Chris Burkert <burkert.chris@gmail.com>
Signed-off-by: Paweł Szeląg <pablo.szel@gmail.com>
Co-authored-by: Chris Burkert <burkert.chris@gmail.com>
Signed-off-by: Paweł Szeląg <pablo.szel@gmail.com>
Signed-off-by: Pawel Szelag <pablo.szel@gmail.com>
Signed-off-by: Pawel Szelag <pablo.szel@gmail.com>
cb80
cb80 previously requested changes Sep 16, 2026
Comment thread proto/kms/api/cmk/registry/tenant_config/v1/tenant_config.proto Outdated
Comment thread proto/kms/api/cmk/registry/tenant_config/v1/tenant_config.proto
Comment thread proto/kms/api/cmk/registry/tenant_config/v1/tenant_config.proto
Comment thread proto/kms/api/cmk/registry/tenant_config/v1/tenant_config.proto Outdated
Comment thread proto/kms/api/cmk/registry/tenant_config/v1/tenant_config.proto
Signed-off-by: Pawel Szelag <pablo.szel@gmail.com>
Signed-off-by: Pawel Szelag <pablo.szel@gmail.com>
@pabloszel11
pabloszel11 requested a review from cb80 September 16, 2026 13:35
Comment thread proto/kms/api/cmk/registry/tenant_config/v1/tenant_config.proto Outdated
Signed-off-by: Pawel Szelag <pablo.szel@gmail.com>
@cb80
cb80 dismissed their stale review September 16, 2026 14:44

dismissing mine

@pabloszel11
pabloszel11 requested a review from cb80 September 17, 2026 07:36
@petersbingham
petersbingham self-requested a review September 17, 2026 08:46
google.protobuf.FieldMask update_mask = 3;
}

message UpdateTenantConfigResponse {}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the response body (from what is in ticket) a deliberate drop (due to async)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a deliberate drop due to async, I suggested to return here the initial request content, but Chris has suggested to just leave it empty.

message TenantConfigurationValues {
// Maximum number of systems allowed per key configuration.
// Default: system default (global limit).
int32 system_limit = 1 [(buf.validate.field).int32.gte = 1];

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be worth figuring and adding an upper bound?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC this was mentioned in the refinement, but we left it with no upper bound

@pabloszel11
pabloszel11 merged commit f7ccab3 into main Sep 17, 2026
9 checks passed
@pabloszel11
pabloszel11 deleted the tenantConfig branch September 17, 2026 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants