{"action":"opened","issue":{"url":"https://api.github.com/repos/erdtman/Cleartext-JOSE/issues/25","repository_url":"https://api.github.com/repos/erdtman/Cleartext-JOSE","labels_url":"https://api.github.com/repos/erdtman/Cleartext-JOSE/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/erdtman/Cleartext-JOSE/issues/25/comments","events_url":"https://api.github.com/repos/erdtman/Cleartext-JOSE/issues/25/events","html_url":"https://github.com/erdtman/Cleartext-JOSE/issues/25","id":294321269,"number":25,"title":"JWK interoperability issues","user":{"login":"cyberphone","id":8044211,"avatar_url":"https://avatars0.githubusercontent.com/u/8044211?v=4","gravatar_id":"","url":"https://api.github.com/users/cyberphone","html_url":"https://github.com/cyberphone","followers_url":"https://api.github.com/users/cyberphone/followers","following_url":"https://api.github.com/users/cyberphone/following{/other_user}","gists_url":"https://api.github.com/users/cyberphone/gists{/gist_id}","starred_url":"https://api.github.com/users/cyberphone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyberphone/subscriptions","organizations_url":"https://api.github.com/users/cyberphone/orgs","repos_url":"https://api.github.com/users/cyberphone/repos","events_url":"https://api.github.com/users/cyberphone/events{/privacy}","received_events_url":"https://api.github.com/users/cyberphone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-05T09:18:18Z","updated_at":"2018-02-05T09:18:18Z","closed_at":null,"author_association":"COLLABORATOR","body":"If you take the JOSE specifications literally, it seems that constructs like the following would be legal:\r\n\r\n```code\r\n \"kid\":\"mykey\",\r\n \"jwk\": {\r\n    \"kid\": \"mykey\",\r\n    \"x5c\": \"MI...........................................\"\r\n```\r\n \r\nIn my ]sort of] \"reference implementation\", a supplied JWK may only contain a public key, _everything else is flagged as error_.  JWE indeed says that a JWK contains a public key but doesn't say anything about possible additional properties except for `\"kid\"` which is supposed to be \"matched\". Non-matches => fail?\r\n\r\nI do not propose improving the matching text, I rather want to remove things that only add \"fuzz\".  I.e. JWK would when hosted in Cleartext JW*, be a _profiled version_ of the JWK standard."}}
{"actor":{"display_login":"cyberphone"}}