-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add Nexus-Operation-Id and Nexus-Link headers to callback definition #12
Add Nexus-Operation-Id and Nexus-Link headers to callback definition #12
Conversation
SPEC.md
Outdated
- Include the `Nexus-Operation-Id` header and any `Nexus-Link` headers for resources associated with this operation to | ||
support completing asynchronous operations before the response to StartOperation is received. |
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.
I assume when we allow users to have external callbacks this won't expose any security risks by giving the callback internal information like a workflow that may be backing an operation? Or at that time we will have some way to hide the workflow link if a Nexus endpoint doesn't want to expose it?
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.
Yes, there needs to be a knob for users to decide if they want to expose caller and handler information in Temporal. For now, we're limited to same account traffic and the consensus seems to be to always expose.
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.
We should also include the Nexus-Operation-Start-Time
header to be able to recreate the full started event.
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.
Approved with a comment.
SPEC.md
Outdated
@@ -306,6 +306,10 @@ For invoking a callback URL: | |||
- Issue a POST request to the caller-provided URL. | |||
- Include any callback headers supplied in the originating StartOperation request, stripping away the `Nexus-Callback-` | |||
prefix. | |||
- Include the `Nexus-Operation-Id` header, `Nexus-Operation-Start-Time` and any `Nexus-Link` headers for resources | |||
associated with this operation to support completing asynchronous operations before the response to StartOperation is | |||
received. `Nexus-Operation-Start-Time` should be in a valid HTTP/1.1 format. If is omitted, the time the completion is |
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.
Could you clarify and possibly link here? https://www.rfc-editor.org/rfc/rfc5322.html#section-3.3
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.
Approved with a comment.
Added
Nexus-Operation-Id
andNexus-Link
headers to callback description. These are needed to support completing async operations before the start operation response is received.