Replies: 4 comments 5 replies
-
Perhaps the event structure should contain at-least three core components:
VersionThis would track a version for the structure of the event. We could do just straight numberic, semver or something similar to that of k8s resource versions (e.g. MetadataPlace for describing what changed and how and other routing related information for consumers. However, some space for additional arbitrary extras could be helpful too. Maybe someone will want to thread some other context through the events at some point. PayloadDetails specific to the combination of This is a slightly adjustment of what you have above with these ideas: {
"version": "v0.1",
"metadata": {
"type": "flag"
"action": "created"
"producer": "flipt-instance-0987654321"
},
"payload": {
"name": "this flag"
"key": "this flag"
}
} |
Beta Was this translation helpful? Give feedback.
-
I also think we should capture what changed in the case of 'update' type events. so for example if the event was {
"payload": {
"flag": {
"key": "12355",
"description": "so clean",
"variants": [
],
},
"changed": {
"description": {
"from": "so fresh",
}
}
}
} I also think we should put the {
"payload": {
"flag": {
"key": "12355",
"description": "so clean",
"variants": [
],
}
} |
Beta Was this translation helpful? Give feedback.
-
@markphelps For updated events, it might be a little tricky. It seems as though we |
Beta Was this translation helpful? Give feedback.
-
Closing as completed, see #1469 |
Beta Was this translation helpful? Give feedback.
-
As Flipt exploring the implementation of sending audit events to various sinks that can be configured on the server, we are exploring what data an audit event should contain. At the least, the audit event would include the resource being acted on, and the action taken. The other details of what should be in the payload is up for debate, as we would like to know and source certain ideas from the community
Example structure:
The payload in the above would be the payload per request that comes in from a client, so these will be arbitrary per request and resource being acted on.
Beta Was this translation helpful? Give feedback.
All reactions