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

Fetch key for B&A request #1289

Merged
merged 21 commits into from
Oct 1, 2024
Merged

Fetch key for B&A request #1289

merged 21 commits into from
Oct 1, 2024

Conversation

brusshamilton
Copy link
Contributor

@brusshamilton brusshamilton commented Sep 30, 2024

@JensenPaul JensenPaul added the spec Relates to the spec label Sep 30, 2024
spec.bs Outdated Show resolved Hide resolved
spec.bs Outdated Show resolved Hide resolved
spec.bs Outdated Show resolved Hide resolved
Copy link
Collaborator

@qingxinwu qingxinwu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

spec.bs Show resolved Hide resolved
spec.bs Outdated
1. Let |key| be a [=byte sequence=] containing one of the [[RFC9180|HPKE]] public
encryption keys for |config|'s [=auction data config/seller=] as determined
by |config|'s [=auction data config/coordinator=], or failure if no key is
1. Let |key|,|key id| be a [=byte sequence=] containing one of the [[RFC9180|HPKE]] public
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems broken. Key is a [=byte sequence=], not (|key|, |keyId|). Need to rewrite it a little bit

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rephrased (pulled out to a function).

spec.bs Outdated
available. The actual method for this lookup is [=implementation-defined=],
and may consist of fetching the keys from a known [=URL=].
1. If |key| is failure then:
1. [=Queue a global task=] on the [=DOM manipulation task source=], given |global|, to
[=reject=] |p| with a {{TypeError}}.
1. Abort these steps.
1. Set |config|'s [=auction data config/encryption key=] to |key|.
1. Set |config|'s [=auction data config/encryption key id=] to |key id|.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

|keyId|

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

spec.bs Outdated Show resolved Hide resolved
spec.bs Outdated Show resolved Hide resolved
Copy link
Collaborator

@qingxinwu qingxinwu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JensenPaul JensenPaul merged commit be2c7d5 into WICG:main Oct 1, 2024
2 checks passed
github-actions bot added a commit that referenced this pull request Oct 1, 2024
SHA: be2c7d5
Reason: push, by JensenPaul

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
HabibiYou pushed a commit to HabibiYou/turtledove that referenced this pull request Oct 29, 2024
* Add payload optimization

* Add missing =

* Add constraint on request size

* Add key fetch

* Move key lookup to parallel queue

* Apply suggestions from code review

Co-authored-by: qingxinwu <[email protected]>

* Apply suggestions from code review

Co-authored-by: qingxinwu <[email protected]>

* Address comments

* Address comments

* Add domintro for AdAuctionDataConfig

* Fix missing description

* Apply suggestions from code review

Co-authored-by: qingxinwu <[email protected]>

* Describe values of {{AdAuctionDataConfig/perBuyerConfig}}

* Fix filtering logic

* rephrase

* Address comments

* rephrase and add key id

* capitalize ID

* rephrase

* Apply suggestions from code review

Co-authored-by: qingxinwu <[email protected]>

---------

Co-authored-by: qingxinwu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec Relates to the spec
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants