You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #19637 (comment), we captured notes from a discussion about these API endpoints between FE and BE.
Synced offline about this. Our outcome and action items
createCustomSource/DestinationDefinition should be used (with workspaceId)
Once in UI, we want to remove the old (non workspace scoped) create APIs
updateSource/DestinationDefinition (does not need workspaceId)
Cloud will check if the passed connector ID, is actually assigned to a workspace that the user has access to, if not throws 404 in cloud if connector ID
Same logic as for update should apply for the delete endpoint
No migration will be needed, we accept orphaned rows in the actor table for the rare cases users ran into that case
In order to achieve this, we'll perform the following steps:
Remove the custom-specific blocks from config.yaml for update/delete
Remove the <update/delete>Custom<Source/Destination>Definition methods from the wrapped handler, since they won't exist in OSS anymore.
Update the <update/delete><Source/Destination>Definition methods in the wrapped handler to make sure the custom definition can be updated/deleted by the current user.
There is no workspaceId in the request, so really this check is that the current user has permission to at least one workspace that has a grant for the custom definition.
The text was updated successfully, but these errors were encountered:
This is an action item coming out of discussion w/ Tim and front-end around making the OSS connector endpoints more sensible.
Rather than letting a user pass in an arbitrary workspace ID as part of the request, we can authenticate requests in Cloud by using the current workspace from the logged in session. In OSS, the request can just go through without auth because we don't have RBAC in OSS.
pmossman
changed the title
Remove workspace id in update/delete definition request
Prepare update/delete endpoints for custom connectors in Cloud
Nov 30, 2022
pmossman
changed the title
Prepare update/delete endpoints for custom connectors in Cloud
Prepare update/delete definition endpoints for custom connectors in Cloud
Nov 30, 2022
In #19637 (comment), we captured notes from a discussion about these API endpoints between FE and BE.
In order to achieve this, we'll perform the following steps:
On the Cloud side, we will:
<update/delete>Custom<Source/Destination>Definition
methods from the wrapped handler, since they won't exist in OSS anymore.<update/delete><Source/Destination>Definition
methods in the wrapped handler to make sure the custom definition can be updated/deleted by the current user.The text was updated successfully, but these errors were encountered: