-
Notifications
You must be signed in to change notification settings - Fork 88
Open
3 / 53 of 5 issues completedOpen
3 / 53 of 5 issues completed
Copy link
Labels
enhancementNew feature or requestNew feature or request
Description
Requirements
Currently, to support static context enrichment via attributes sent from flagd, in-process providers call sync.GetMetadata along with starting the stream. This is not ideal. The stream isn't valid without the metadata response (since it could result in rules not functioning as expected due to missing attributes) and the metadata response is useless without the stream.
We should simply move the metadata into the stream response as an optional property. This should be done in a non-breaking way.
Requirements:
- update proto
- deprecate GetMetadata and and a new field to Sync Response (consider
sync context
as a name, since this field is here to carry additional context attrs (feat: add sync stream context, deprecate GetMetadata flagd-schemas#183)
- deprecate GetMetadata and and a new field to Sync Response (consider
- update flagd
- serve the current contents of the
GetMetadata
payload in this new property in the sync stream - add a warning log when the old
GetMetadata
handler is called saying it's deprecated - both done with feat: add sync_context to SyncFlags #1642
- serve the current contents of the
- update providers to use the new metadata field, but also use the old RPC for now (new field should "win")
cc @cupofcat @aepfli @chrfwow @beeme1mr @alexandraoberaigner
aepfli, chrfwow, tangenti and dominikhaska
Sub-issues
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
In Progress