Skip to content

Conversation

@anekkanti
Copy link
Member

No description provided.

@anekkanti anekkanti requested a review from a team as a code owner November 6, 2025 21:37
rpc ValidateAccountAuditLogSink(ValidateAccountAuditLogSinkRequest) returns (ValidateAccountAuditLogSinkResponse) {
option (google.api.http) = {
post: "/cloud/account/audit-logs/sink/validate",
post: "/cloud/audit-log-sink/validate",
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be "/cloud/account/audit-log-sink-validate"

Copy link
Member Author

Choose a reason for hiding this comment

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

We decided to move audit logs into the root level.
There is no reason the audit logs sinks should be scoped under the account. All resources like namepspaces, apikeys, users etc are scoped to the account but the paths do not have a /account. We felt audit logs sinks should follow the same pattern.

Copy link
Contributor

Choose a reason for hiding this comment

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

makes sense, so all the paths in this PR should be updated https://github.com/temporalio/cloud-api/pull/94/files

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes.

rpc ValidateNamespaceExportSink(ValidateNamespaceExportSinkRequest) returns (ValidateNamespaceExportSinkResponse) {
option (google.api.http) = {
post: "/cloud/namespaces/{namespace}/export-sinks/validate",
post: "/cloud/namespaces/{namespace}/export-sink-validate",
Copy link
Contributor

Choose a reason for hiding this comment

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

QQ: validate is the function name? So we don't need /validate?

Copy link
Member Author

Choose a reason for hiding this comment

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

The problem with "/cloud/namespaces/{namespace}/export-sinks/validate" is that it collides with an export sink with name "validate". This change is to avoid the collision.

@anekkanti anekkanti merged commit 38e8587 into main Nov 6, 2025
4 checks passed
@anekkanti anekkanti deleted the abhinav/fixSomeHttpPaths branch November 6, 2025 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants