-
Notifications
You must be signed in to change notification settings - Fork 22
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
CAL data proto fields don't match actual CAL data #43
Comments
Okay, a few separate issues here:
|
This reflects the changes in the [googleapis commit](googleapis/googleapis@40292fc). Fixes most of the discrepancies noted in googleapis#43.
All in all, let's be sure that the payloads seen by users exactly match the payloads fields here. I'd assume the protos would EXACTLY match the payload seen for some specific CloudEvent#type (which includes the version). This is to be used by our client libraries. |
Part of this might be an artifact of logging this information. Will need to figure out the differences with logging there. |
This is now being discussed internally - we'll post an update here when there's more resolution. (That's probably better than trying to maintain multiple lines of communication.) |
This reflects the changes in the [googleapis commit](googleapis/googleapis@40292fc). Fixes most of the discrepancies noted in #43.
I'm seeing all of these fields in the proto and jsonschema, so closing. If CAL events v2 will unwrap the |
Expected Behavior
I'd expect all fields that are present in in the CAL data seen for Events are present in our proto definitions. We can't have missing fields, or else our libraries will be missing fields from the JSON payload.
For example, these fields seen from Events are not found:
@type
authorizationInfo.resourceAttributes
requestMetadata.callerNetwork
requestMetadata.requestAttributes
requestMetadata.destinationAttributes
resourceLocation
Actual Behavior
There are many fields that are seen with CAL data, but not present here.
Here's an example of the event payload:
Here's an example from the Knative GCP repo:
https://github.com/google/knative-gcp/blob/master/docs/examples/cloudauditlogssource/README.md
I'm not sure if this is because these protos are not complete after copying them over or if this is intentional.
CC @jskeet
The text was updated successfully, but these errors were encountered: