Skip to content

feat: use ic-ref master for response authentication support#67

Merged
2 commits merged intoresponse-authenticationfrom
resp-auth-ic-ref-version
Oct 22, 2020
Merged

feat: use ic-ref master for response authentication support#67
2 commits merged intoresponse-authenticationfrom
resp-auth-ic-ref-version

Conversation

@ghost
Copy link

@ghost ghost commented Oct 22, 2020

No description provided.

@ghost ghost requested a review from p-shahi October 22, 2020 18:46
@p-shahi
Copy link
Contributor

p-shahi commented Oct 22, 2020

Looks like ic-ref expects the spec version to be

@github-actions
Copy link

Netlify deployed agent-rust as draft

Link: https://5f91d9dc49abe5009c7c7e70--agent-rust.netlify.app

@ghost ghost merged commit ec16626 into response-authentication Oct 22, 2020
@ghost ghost deleted the resp-auth-ic-ref-version branch October 22, 2020 19:28
@nomeata
Copy link
Contributor

nomeata commented Oct 23, 2020

Looks like ic-ref expects the spec version to be ∞

I’d say ic-ref “reports”, not “expects” the version. But the master branch of the ic-ref repo is probably unsuited, as it contains an undefined state of the implementation (the master branch is where we collect finished designs in the spec document).

The implementation there is currently identical to the one on release-0.12, and you probably want to use either that, or maybe one of the feature branches (e.g. joachm/impl-webauthn, sorry for the typo).

ghost pushed a commit that referenced this pull request Nov 18, 2020
* feat: use ic-ref master for response authentication support (#67)

* Use ic-ref master for response authentication support

* update for expected IC version

* Use Certification ic-ref feature branch

See also PR https://github.com/dfinity-lab/ic-ref/pull/167

* Only build ic-ref

* Build less from ic-ref

* Try to decode agent HttpError plan text values (display as text, not as array of ints)

* wip

* checkpoint: signature verification failed

* trying to pass signature check

* DER encoding

* Revert "DER encoding"

This reverts commit 795850f.

* no extra space in hex dump

* checkpoint: paths use BytesBuf

* StateTreePath

* panic if read_endpoint even succeeds

* format

* ignore two unit tests that need to be updated with new responses

* clippeh

* Add a test case for request id calculation with arrays

* Update ic-ref instructions for generating request id

* 2 more tests

* checkpoint (compiles)

* checkpoint: not panicking

* checkpoint: empty array test passes

* checkpoint: request id tests pass

* fix 1234 = 0x4d2 not 0x3d2

* enum-based rather than trait-based

* disable clippy warning because the proposed fix causes a different kind of error"

* wip

* checkpoint all request unit tests pass

* remove old comments

* ValueEncoder

* streamline ElementEncoder creation

* output certificate bytes

* wip fixing up tests

* (temporarily merge in hash tree stuff)

* TreeHash deserialization

* deserialize certificate;

* extract request status from read_state certificate

* refactor: convert_read_state_to_request_status

* ignore tests because they need a different mocked response: agent_test call, call_rejected

* format - hash_tree

* format

* ElementEncoder -> Hasher

* Remove call and call_rejected agent tests, because they are nontrivial to mock, and are covered by integration tests.

* Remove support for maps as requests.  This didn't work anyway, and its removal simplifies the request id calculation a little

* fix warnings

* format

* Hasher::Struct direct

* &mut not ref mut

* fix warning;

* fmt

* Debug decoding for HttpError (plain text)

* why is it not using the Debug formatter

* test against release-0.13

* clippy

* force CI build

* format

* do not print certificate

* path not found in certificate -> status unknown

* Revert "format - hash_tree"

This reverts commit 5b0099c.

* Revert "TreeHash deserialization"

This reverts commit 45ceefb.

* Revert "(temporarily merge in hash tree stuff)"

This reverts commit c5dc478.

* Use new HashTree

* refactor into methods;

* Disable dead code warning for the digest method

* better errors

* format

* cleanup

* cleanup: read_state returns Certificate

* use Label rather than StateTreePath

* format

* cleanup

* update expected ic ref version

* Remove Some() around content type in error message

* grammar

* remove unnecessary clippy directive

* simplify vec -> label

* fmt

* From code review: remove SyncContent::RequestStatusRequest

* From code review: DRY for LookupResult handling

* lookup_value -> lookup_path

Co-authored-by: Joachim Breitner <mail@joachim-breitner.de>
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants