Skip to content
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

Spec: Pad the payload with null contributions #98

Merged
merged 1 commit into from
Sep 26, 2023
Merged

Conversation

alexmturner
Copy link
Collaborator

@alexmturner alexmturner commented Sep 13, 2023

Ensures that the payload always has a fixed number of contributions by adding (0,0) contributions.

See #56 for more discussion and #95 for the corresponding spec change.


Preview | Diff

@alexmturner alexmturner mentioned this pull request Sep 13, 2023
@alexmturner alexmturner added the spec Related to specification/standardization label Sep 15, 2023
alexmturner added a commit to WICG/attribution-reporting-api that referenced this pull request Sep 19, 2023
Resolves #352.

See also related spec change for the Private Aggregation API:
patcg-individual-drafts/private-aggregation-api#98
@alexmturner
Copy link
Collaborator Author

@linnan-github, could you PTAL? Thanks!
cc @yoavweiss

Base automatically changed from move-null-contribution-handling to main September 26, 2023 21:14
Ensures that the payload always has a fixed number of contributions by
adding (0,0) contributions.

See #56 for more discussion.
@alexmturner alexmturner merged commit 813a62d into main Sep 26, 2023
1 check passed
@alexmturner alexmturner deleted the pad-payloads branch September 26, 2023 21:17
github-actions bot added a commit that referenced this pull request Sep 26, 2023
SHA: 813a62d
Reason: push, by alexmturner

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
alexmturner added a commit to WICG/attribution-reporting-api that referenced this pull request Sep 26, 2023
Resolves #352.

See also the related spec change for the Private Aggregation API: patcg-individual-drafts/private-aggregation-api#98. See also the corresponding ARA explainer change: #1031.
aarongable pushed a commit to chromium/chromium that referenced this pull request Sep 28, 2023
Adds null contributions, i.e. contributions with zero value, to report
payloads when serializing to ensure that the number of contributions is
fixed (according to the calling API's request). This prevents the size
of the encrypted payload from leaking any information about the number
of contributions.

This functionality is guarded behind a disabled-by-default feature and
will be enabled in a separate cl. In that cl, we will update the golden
report tests.

See the corresponding spec changes here:
WICG/attribution-reporting-api#1030 and
patcg-individual-drafts/private-aggregation-api#98

Bug: 1478353
Change-Id: Ie967bbdbc6c4d9a908774a7c54ae5701c6e3d5bd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4887591
Commit-Queue: Alex Turner <[email protected]>
Reviewed-by: Nan Lin <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1202742}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec Related to specification/standardization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants