New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
changefeedccl: warn when using https sink urls #107572
changefeedccl: warn when using https sink urls #107572
Conversation
Fixes cockroachdb#98719. Release note: None
It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR? 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
return err | ||
} | ||
|
||
if u.Scheme == changefeedbase.SinkSchemeCloudStorageHTTP || u.Scheme == changefeedbase.SinkSchemeCloudStorageHTTPS { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to do that?
Are we going to bother people who want http with needles warning?
Would it be better to add file-http(s) scheme and prepare http(s) scheme for deprecation?
@amruss ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update release note in commit and in PR to indicate deprecation.
|
||
if u.Scheme == changefeedbase.DeprecatedSinkSchemeHTTP || u.Scheme == changefeedbase.DeprecatedSinkSchemeHTTP { | ||
p.BufferClientNotice(ctx, pgnotice.Newf( | ||
`%s sinks will emit using cloud storage semantics. For a webhook sink, prepend webhook- to the sink URI. Prepend file- to remove this notice.`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe rephrase a bit to avoid using "prepend"? Something like "Use webhook-https for webhook semantics, use file-http:// .."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
c68daea
to
981979e
Compare
Release note's in the second commit, merged it into the PR description. |
Changefeeds previously used http as their URI to align with backups. Backups no longer support http, and for changefeeds http is ambiguous, leading users to create cloudstorage sinks when they meant webhook sinks. This commit changes the scheme to file-http. Webhooks still use webhook-http. Informs: cockroachdb#98719 Release note (enterprise change): Changefeeds that create files over an http connection may now be specified via `INTO 'file-https://'` to disambiguate with `webhook-https`.
981979e
to
a428c45
Compare
bors r=[miretskiy] |
Build failed (retrying...): |
Build succeeded: |
Changefeeds previously used http as their URI to align with backups.
Backups no longer support http, and for changefeeds http is ambiguous,
leading users to create cloudstorage sinks when they meant webhook sinks.
This PR changes the scheme to file-http. Webhooks still use webhook-http.
Fixes #98719.
Release note (enterprise change): Changefeeds that create files over an http connection may now be specified via
INTO 'file-https://'
to disambiguate withwebhook-https
.