Repository navigation
attestation: update Hygon DCU verification support - #232
Merged
Merged
Conversation
Signed-off-by: Jiale Zhang <zhangjiale@linux.alibaba.com>
|
@jialez0 ,您好,您的请求已接收,请耐心等待结果。 |
|
@jialez0 ,您好,未检测到有镜像需要构建,如需重新检测请评论 /start 。 |
|
@jialez0 ,您好,您的请求已接收,请耐心等待结果。 |
|
@jialez0 ,您好,未检测到有镜像需要构建,如需重新检测请评论 /start 。 |
Signed-off-by: Jiale Zhang <zhangjiale@linux.alibaba.com>
|
@jialez0 ,您好,您的请求已接收,请耐心等待结果。 |
|
@jialez0 ,您好,未检测到有镜像需要构建,如需重新检测请评论 /start 。 |
|
@jialez0 ,您好,您的请求已接收,请耐心等待结果。 |
|
@jialez0 ,您好,未检测到有镜像需要构建,如需重新检测请评论 /start 。 |
Signed-off-by: Jiale Zhang <zhangjiale@linux.alibaba.com>
|
@jialez0 ,您好,您的请求已接收,请耐心等待结果。 |
|
@jialez0 ,您好,未检测到有镜像需要构建,如需重新检测请评论 /start 。 |
Signed-off-by: Jiale Zhang <zhangjiale@linux.alibaba.com>
|
@jialez0 ,您好,您的请求已接收,请耐心等待结果。 |
|
@jialez0 ,您好,未检测到有镜像需要构建,如需重新检测请评论 /start 。 |
|
@jialez0 ,您好,您的请求已接收,请耐心等待结果。 |
|
@jialez0 ,您好,未检测到有镜像需要构建,如需重新检测请评论 /start 。 |
|
@jialez0 ,您好,您的请求已接收,请耐心等待结果。 |
|
@jialez0 ,您好,未检测到有镜像需要构建,如需重新检测请评论 /start 。 |
Signed-off-by: Jiale Zhang <zhangjiale@linux.alibaba.com>
|
@jialez0 ,您好,您的请求已接收,请耐心等待结果。 |
|
@jialez0 ,您好,未检测到有镜像需要构建,如需重新检测请评论 /start 。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Enable Hygon DCU verification in both attestation-service binaries, update the verifier to Hygon's requested csv-rs baseline plus the fixed-width chip-ID compatibility fix, and prepare the AL8
1.10.1-betapackage.Changes
hygon-dcu-verifierwhile preserving the existing default verifier set.csv-rsto1c6fa975f1c74fefbea63739c91feb23efae7186:2824f17c3d877f6155b65581f3b96ee8c4e5eb3a;NULpadding in fixed-width DCU chip IDs before local HSK/CEK lookup and online fallback URL construction.trustee-1.10.1-beta.al8./etc/trusteeservice configs with%config(noreplace).systemctllifecycle calls when systemd is not present, so the RPM can be installed cleanly in a container.The csv-rs fix is under Hygon review at panpingsheng/csv-rs#1.
Why the extra chip-ID fix is required
Exact
2824f17collected evidence successfully, but the verifier received a 16-byte chip ID containing two trailingNULbytes. It therefore looked for a padded filename instead of the valid local certificate:The Trustee cluster is isolated from
cert.hygon.cn, so verification could not complete. The patched beta verifier instead logged:Composite-attestation context
The original resource failure also contained an AA-side nonce mismatch: HygonTPM primary evidence uses negotiated SM3, whereas HygonDcu additional evidence is bound with RCAR's default SHA-384. guest-components PR #115 fixes that distinction. Its beta CDH package requires the matching beta AA; operators must upgrade AA and CDH together because upgrading AA alone does not replace an old CDH's in-process RCAR path. Trustee's strict nonce verification remains unchanged.
Validation
Source/build validation:
cargo metadata --locked: passed;cargo check -p verifier --features hygon-dcu-verifier: passed;rpmbuild -ba: passed;--help, and hostldd: passed.0600/0644, and the generated public key matches the private key.Live target/K8s validation with all beta packages installed:
trustee-1.10.1-beta.al8.x86_64;/opt/dcu/certs/<chip-id>_hsk_cek.cert;/attestreturned HTTP 200;Attestation nonce mismatch,hycu_misc_security_cmd: wait ack timeout, or Hygon TPM0x70001was observed in final validation.Artifact:
Follow-up
The full-SHA fork pin is a temporary, reproducible integration pin approved for this validation. Move it to the final Hygon-owned csv-rs commit after panpingsheng/csv-rs#1 is reviewed and merged.
Upstream
2824f17currently proceeds to ioctl ifhyflashis unavailable or execution fails. The validated environment has workinghyflash; this PR does not claim fail-closed behavior for arbitraryhyflashfailures.