Bug 1650246
| Summary: | tang provides adv which makes clevis fail on unhandled jose failing call | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Martin Zelený <mzeleny> | ||||||
| Component: | clevis | Assignee: | Daniel Kopeček <dkopecek> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Martin Zelený <mzeleny> | ||||||
| Severity: | high | Docs Contact: | |||||||
| Priority: | high | ||||||||
| Version: | 8.0 | CC: | dapospis, mthacker, npmccallum | ||||||
| Target Milestone: | rc | Keywords: | Triaged | ||||||
| Target Release: | 8.0 | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | clevis-11-2.el8 | Doc Type: | If docs needed, set a value | ||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2019-06-14 01:02:26 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
|
Description
Martin Zelený
2018-11-15 16:27:58 UTC
Additional info: tang sever on first start does not provide advertisement with 'deriveKey'
# cat adv.json | jose fmt -j- -Og payload -SyOg keys -AUo- | jq
{
"keys": [
{
"alg": "ES512",
"crv": "P-521",
"key_ops": [
"verify"
],
"kty": "EC",
"x": "AcBew1hyXud_rdJUtgHglr31qizbxMpy6HBmoDOWR3vaGOEVgttZ1YDUojtJ-UGEE3U1Uvz7sYhZ71ft0Yo4g6X9",
"y": "ASI0lSuvvaJ1Wyic3nRiF12Se76cZa9SgLkntqhqVuuqRN1bc6MvjYD4c7e5dsiLVyx01E8rssEX16euoCJX_T5U"
}
]
}
After 'systemctl restart tangd.socket' and new advertisement download 'wget localhost/adv -O adv.json':
# cat adv.json | jose fmt -j- -Og payload -SyOg keys -AUo- | jq
{
"keys": [
{
"alg": "ECMR",
"crv": "P-521",
"key_ops": [
"deriveKey"
],
"kty": "EC",
"x": "Aa1FrvMEQ0iOUk5qwjls5ap4g3xs4Co0WkLph0kfczoN1spNRfhpdsraLMblEW_lKJ__NLugz1QPq-9CoEoQ6tgN",
"y": "AQYmkSegphsAMapLwYdZ-_cgoypcr6ISA77uvAemR_V6k-0as7-Yg77ER5gEx91NBOS8J0Gk9qXQC9tFgXXmVLK5"
},
{
"alg": "ES512",
"crv": "P-521",
"key_ops": [
"verify"
],
"kty": "EC",
"x": "AcBew1hyXud_rdJUtgHglr31qizbxMpy6HBmoDOWR3vaGOEVgttZ1YDUojtJ-UGEE3U1Uvz7sYhZ71ft0Yo4g6X9",
"y": "ASI0lSuvvaJ1Wyic3nRiF12Se76cZa9SgLkntqhqVuuqRN1bc6MvjYD4c7e5dsiLVyx01E8rssEX16euoCJX_T5U"
}
]
}
Nathaniel, can you please provide some insight into this? Thanks.
Created attachment 1511663 [details] proposed enhancement patch for clevis @mzeleny, I've created a clevis build with the proposed error checking. Wanna check it out? https://copr.devel.redhat.com/coprs/dkopecek/PolicyBasedDecryption/build/25119/ Removing the needinfo flag, I think we got it on the last sync up meeting. Created attachment 1511774 [details] proposed enhancement patch for clevis https://copr.devel.redhat.com/coprs/dkopecek/PolicyBasedDecryption/build/25136/ Exception approved and added pmapproved to internal whiteboard section. |