)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8482,"name":"Colleen Murphy","email":"colleen@gazlene.net","username":"krinkle"},"change_message_id":"a12e12a613d753575753673757378522d8a52a0b","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This spec was something we agreed upon as a team during the Queens"},{"line_number":10,"context_line":"release. This commit reproposes it for Stein."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"bp json-web-tokens"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I598faca40a6d81dd58155165d4a323fb437f7a6c"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":11,"id":"3f79a3b5_0065e0af","line":11,"updated":"2018-10-25 12:13:18.000000000","message":"In case you respin this, I would expand this message to mention what was changed since we agreed to it in Queens.","commit_id":"7ad62a5eeddcc918384ebc58dafa5c42b73cc52f"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"b966d0cacb21652efd744839ce6ab50fe89e52f8","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This spec was something we agreed upon as a team during the Queens"},{"line_number":10,"context_line":"release. This commit reproposes it for Stein."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"bp json-web-tokens"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I598faca40a6d81dd58155165d4a323fb437f7a6c"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":11,"id":"3f79a3b5_4ca5479f","line":11,"in_reply_to":"3f79a3b5_0065e0af","updated":"2018-10-25 22:03:13.000000000","message":"Done. Let me know if I missed anything.","commit_id":"7ad62a5eeddcc918384ebc58dafa5c42b73cc52f"}],"specs/keystone/rocky/json-web-tokens.rst":[{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"91f988398a5992111c20d7f6c62781bfc2e9a05d","unresolved":false,"context_lines":[{"line_number":154,"context_line":"Assignee(s)"},{"line_number":155,"context_line":"-----------"},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"TBD: Please update this section when this spec is reproposed to a release."},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"Primary assignee:"},{"line_number":160,"context_line":"  \u003claunchpad-id or None\u003e"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3fa0c359_b86d8d33","line":157,"updated":"2018-02-07 21:18:37.000000000","message":"We\u0027ll need to get this section updated.","commit_id":"225a8662807f2f81df82177e12398e116d9f394b"},{"author":{"_account_id":5638,"name":"Davanum Srinivas","email":"davanum@gmail.com","username":"dims-v"},"change_message_id":"7a119ea34069527b00edd643857ace06488cee8c","unresolved":false,"context_lines":[{"line_number":37,"context_line":"vulnerabilities. Addressing these vulnerabilities falls solely on the"},{"line_number":38,"context_line":"OpenStack, specifically the keystone, community."},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"It would be nice to offer a new type of token that is backed by a widely used"},{"line_number":41,"context_line":"standard before we totally remove support for UUID tokens. This also increases"},{"line_number":42,"context_line":"interoperability between the OpenStack ecosystem and other communities that"},{"line_number":43,"context_line":"support JWT."}],"source_content_type":"text/x-rst","patch_set":3,"id":"df7087c5_324d5472","line":40,"updated":"2018-03-08 18:07:11.000000000","message":"Please see how Kubernetes uses OIDC\u0027s ID Token / JWT - https://kubernetes.io/docs/admin/authentication/#openid-connect-tokens\n\nIt would be good to have some synergy between OpenStack and Kubernetes using these JWT tokens.","commit_id":"5f782cf70e1b23901806427b9cd1ae2a1f802e64"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"3f05712b2c166ef6f483d53793379dfaaef699be","unresolved":false,"context_lines":[{"line_number":37,"context_line":"vulnerabilities. Addressing these vulnerabilities falls solely on the"},{"line_number":38,"context_line":"OpenStack, specifically the keystone, community."},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"It would be nice to offer a new type of token that is backed by a widely used"},{"line_number":41,"context_line":"standard before we totally remove support for UUID tokens. This also increases"},{"line_number":42,"context_line":"interoperability between the OpenStack ecosystem and other communities that"},{"line_number":43,"context_line":"support JWT."}],"source_content_type":"text/x-rst","patch_set":3,"id":"df7087c5_7f874763","line":40,"in_reply_to":"df7087c5_324d5472","updated":"2018-03-16 21:33:56.000000000","message":"++ I completely agree, but I\u0027m not sure we know how that synergy is supposed to work yet.\n\nWhen we discussed this at the PTG, we felt it was important to at least get the ground work laid, and then figure out the integration bits later, once someone approaches us with a solid use case (I kept jumping at integration because the opportunity was there, but without a solid use case, things derailed).","commit_id":"5f782cf70e1b23901806427b9cd1ae2a1f802e64"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"5252e0ab8aa623d6c71c3d0e2dd7085b115aecf0","unresolved":false,"context_lines":[{"line_number":51,"context_line":"The token will be a nested JWT which is a signed JWT (`JWS`_) as the payload of"},{"line_number":52,"context_line":"an encrypted JWT (`JWE`_), meaning the token data is signed and then encrypted."},{"line_number":53,"context_line":"This is the order specifically recommended in the JWT spec due to its use of"},{"line_number":54,"context_line":"Authenticated Encryption which eliminates the need to sign after encryption."},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"Similar to the fernet, JWTs will require a key repository be set up to use for"},{"line_number":57,"context_line":"signing tokens. A new ``keystone-manage`` command will be added to handle"}],"source_content_type":"text/x-rst","patch_set":5,"id":"bf659307_7a757c31","line":54,"updated":"2018-03-29 16:43:37.000000000","message":"We\u0027ll have to update this bit since JWE isn\u0027t going to be possible with the library (JWCrypto) that supports it.\n\nFor nested JWT we\u0027ll either need to wait for pyjwt or python-jose to implment it, or supply the implementation ourselves.\n\nI guess the big question now is \"do we care if we only sign the data?\"\n\nIf we do care, then we\u0027ll have to wait or go implement JWE. If we don\u0027t then we can look at implementing JWT with JWS only for the time being.","commit_id":"f622cb0c856cee08ec24c99828b162438622c3f9"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"5252e0ab8aa623d6c71c3d0e2dd7085b115aecf0","unresolved":false,"context_lines":[{"line_number":100,"context_line":"would be a convenient choice to use for this implementation, but it"},{"line_number":101,"context_line":"unfortunately `does not yet support JWE`_. We will need to evaluate the"},{"line_number":102,"context_line":"`JWCrypto library`_ which does support encryption or consider contributing the"},{"line_number":103,"context_line":"feature to PyJWT."},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"Users will request and present tokens in exactly the same way they currently do"},{"line_number":106,"context_line":"with Fernet tokens. There is no need to add or change any APIs."}],"source_content_type":"text/x-rst","patch_set":5,"id":"bf659307_bacd5467","line":103,"updated":"2018-03-29 16:43:37.000000000","message":"See notes on this below.","commit_id":"f622cb0c856cee08ec24c99828b162438622c3f9"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"422b932c81f1273bfcafe47eb017151399ad7b3d","unresolved":false,"context_lines":[{"line_number":144,"context_line":"---------------"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"Since JWT is a widely used web standard, this will have a net positive impact"},{"line_number":147,"context_line":"on security. The implementation will use JWE even though it is an optional"},{"line_number":148,"context_line":"feature of the JWT spec. While this will not protect against an attacker using"},{"line_number":149,"context_line":"a valid token to query keystone for information about the token, it protects"},{"line_number":150,"context_line":"against an attacker gaining information from an expired or revoked token. This"},{"line_number":151,"context_line":"will ensure that the data within the token is at least as secure as it is in"}],"source_content_type":"text/x-rst","patch_set":5,"id":"bf659307_da112854","line":148,"range":{"start_line":147,"start_character":13,"end_line":148,"end_character":24},"updated":"2018-03-29 16:25:02.000000000","message":"I don\u0027t think this is going to be possible unless we go implement JWE in one of the acceptable libaries (PyJWT or python-jose). JWCrypto supports JWE, but it\u0027s license is incompatible with OpenStack requirements.","commit_id":"f622cb0c856cee08ec24c99828b162438622c3f9"},{"author":{"_account_id":21420,"name":"Gage Hugo","email":"gagehugo@gmail.com","username":"ghugo"},"change_message_id":"5fa77aea0910bc068a405ac1b8e4b3b585154069","unresolved":false,"context_lines":[{"line_number":158,"context_line":"There is a documented `vulnerability`_ that affected several JWT libraries,"},{"line_number":159,"context_line":"including one library written in Python."},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"In most cases, JSON Web Tokens will have a header, payload, and signature where"},{"line_number":162,"context_line":"each section is delimited by a period (``.``). The header contains an import"},{"line_number":163,"context_line":"piece of information, which is how the token\u0027s integrity is protected. This is"},{"line_number":164,"context_line":"stored as the ``alg`` attribute of the header. The library verifying the token"}],"source_content_type":"text/x-rst","patch_set":5,"id":"bf659307_fa818cfc","line":161,"range":{"start_line":161,"start_character":43,"end_line":161,"end_character":49},"updated":"2018-03-29 16:40:08.000000000","message":"Would \"headless\" tokens be a potential option?\n\n#4: https://dev.to/neilmadden/7-best-practices-for-json-web-tokens","commit_id":"f622cb0c856cee08ec24c99828b162438622c3f9"},{"author":{"_account_id":21420,"name":"Gage Hugo","email":"gagehugo@gmail.com","username":"ghugo"},"change_message_id":"5fa77aea0910bc068a405ac1b8e4b3b585154069","unresolved":false,"context_lines":[{"line_number":159,"context_line":"including one library written in Python."},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"In most cases, JSON Web Tokens will have a header, payload, and signature where"},{"line_number":162,"context_line":"each section is delimited by a period (``.``). The header contains an import"},{"line_number":163,"context_line":"piece of information, which is how the token\u0027s integrity is protected. This is"},{"line_number":164,"context_line":"stored as the ``alg`` attribute of the header. The library verifying the token"},{"line_number":165,"context_line":"uses the algorithm specified in the header to perform an integrity check and"}],"source_content_type":"text/x-rst","patch_set":5,"id":"bf659307_7a525ce0","line":162,"range":{"start_line":162,"start_character":70,"end_line":162,"end_character":76},"updated":"2018-03-29 16:40:08.000000000","message":"important?","commit_id":"f622cb0c856cee08ec24c99828b162438622c3f9"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"83ae6da5286a847233838908ae43471c3c80f71d","unresolved":false,"context_lines":[{"line_number":233,"context_line":"-----------"},{"line_number":234,"context_line":""},{"line_number":235,"context_line":"Primary assignee:"},{"line_number":236,"context_line":"  Gage Hugo (gagehugo)"},{"line_number":237,"context_line":"  Lance Bragstad (lbragstad)"},{"line_number":238,"context_line":"  XiYuan Wang (wxy)"},{"line_number":239,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"bf659307_57c5f1ef","line":236,"updated":"2018-03-29 16:19:39.000000000","message":"Bah - this list is rendering wrong.","commit_id":"f622cb0c856cee08ec24c99828b162438622c3f9"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"84fee3f7fe1067ed57b38ddfcc0cff2650acf6b6","unresolved":false,"context_lines":[{"line_number":252,"context_line":""},{"line_number":253,"context_line":""},{"line_number":254,"context_line":"Dependencies"},{"line_number":255,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"There are three different libraries we can use to implement this functionality."},{"line_number":258,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"bf659307_77d8351d","line":255,"updated":"2018-03-29 16:18:36.000000000","message":"This section duplicates some information from the Proposed Change section. This specification shouldn\u0027t merge like this, though. As we go through and review each library, we can prune ones from the list we\u0027re not going to use. Then we can elaborate on why we chose the library we did and consolidate duplicate documentation.","commit_id":"f622cb0c856cee08ec24c99828b162438622c3f9"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"84fee3f7fe1067ed57b38ddfcc0cff2650acf6b6","unresolved":false,"context_lines":[{"line_number":256,"context_line":""},{"line_number":257,"context_line":"There are three different libraries we can use to implement this functionality."},{"line_number":258,"context_line":""},{"line_number":259,"context_line":"1. `PyJWT`_"},{"line_number":260,"context_line":""},{"line_number":261,"context_line":"   This library only supports token signing, or JWS. It does not support JWE,"},{"line_number":262,"context_line":"   or authenticated encryption, yet. A minimum version of **1.0.1** is"}],"source_content_type":"text/x-rst","patch_set":5,"id":"bf659307_d73d812b","line":259,"updated":"2018-03-29 16:18:36.000000000","message":"This library is under the MIT license","commit_id":"f622cb0c856cee08ec24c99828b162438622c3f9"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"84fee3f7fe1067ed57b38ddfcc0cff2650acf6b6","unresolved":false,"context_lines":[{"line_number":263,"context_line":"   `required`_, but this library is already included in OpenStack global"},{"line_number":264,"context_line":"   requirements repository."},{"line_number":265,"context_line":""},{"line_number":266,"context_line":"2. `python-jose`_"},{"line_number":267,"context_line":""},{"line_number":268,"context_line":"   This library only supports token signing, or JWS. It does not support JWE,"},{"line_number":269,"context_line":"   or authenticated encryption, yet. This library is not included in OpenStack"}],"source_content_type":"text/x-rst","patch_set":5,"id":"bf659307_37163daa","line":266,"updated":"2018-03-29 16:18:36.000000000","message":"This library is under the MIT license","commit_id":"f622cb0c856cee08ec24c99828b162438622c3f9"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"84fee3f7fe1067ed57b38ddfcc0cff2650acf6b6","unresolved":false,"context_lines":[{"line_number":267,"context_line":""},{"line_number":268,"context_line":"   This library only supports token signing, or JWS. It does not support JWE,"},{"line_number":269,"context_line":"   or authenticated encryption, yet. This library is not included in OpenStack"},{"line_number":270,"context_line":"   global requirements."},{"line_number":271,"context_line":""},{"line_number":272,"context_line":"3. `JWCrypto`_"},{"line_number":273,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"bf659307_17ed398a","line":270,"updated":"2018-03-29 16:18:36.000000000","message":"The source for this library is pretty straight forward, IMHO. Curious to hear what others think of it though. At the same time, I\u0027m not sure readability justifies proposing another library to openstack-requirements if we already have PyJWT in requirements and they both support JWS (neither support JWE, yet).","commit_id":"f622cb0c856cee08ec24c99828b162438622c3f9"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"46d600e5b3d984aa3388749e5c6e325a8c5a499c","unresolved":false,"context_lines":[{"line_number":267,"context_line":""},{"line_number":268,"context_line":"   This library only supports token signing, or JWS. It does not support JWE,"},{"line_number":269,"context_line":"   or authenticated encryption, yet. This library is not included in OpenStack"},{"line_number":270,"context_line":"   global requirements."},{"line_number":271,"context_line":""},{"line_number":272,"context_line":"3. `JWCrypto`_"},{"line_number":273,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"bf659307_59599b32","line":270,"in_reply_to":"bf659307_17ed398a","updated":"2018-03-30 04:02:35.000000000","message":"Not deep looking but I assume this is for JWE?\nhttps://github.com/latchset/jwcrypto/blob/master/jwcrypto/jwe.py","commit_id":"f622cb0c856cee08ec24c99828b162438622c3f9"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"9d3900b32f038d89d320756c26be8007427b5886","unresolved":false,"context_lines":[{"line_number":267,"context_line":""},{"line_number":268,"context_line":"   This library only supports token signing, or JWS. It does not support JWE,"},{"line_number":269,"context_line":"   or authenticated encryption, yet. This library is not included in OpenStack"},{"line_number":270,"context_line":"   global requirements."},{"line_number":271,"context_line":""},{"line_number":272,"context_line":"3. `JWCrypto`_"},{"line_number":273,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"bf659307_109bd165","line":270,"in_reply_to":"bf659307_59599b32","updated":"2018-04-02 16:42:33.000000000","message":"Yep - I believe so based on what I\u0027ve researched.","commit_id":"f622cb0c856cee08ec24c99828b162438622c3f9"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"84fee3f7fe1067ed57b38ddfcc0cff2650acf6b6","unresolved":false,"context_lines":[{"line_number":269,"context_line":"   or authenticated encryption, yet. This library is not included in OpenStack"},{"line_number":270,"context_line":"   global requirements."},{"line_number":271,"context_line":""},{"line_number":272,"context_line":"3. `JWCrypto`_"},{"line_number":273,"context_line":""},{"line_number":274,"context_line":"   This library supports both JWS and JWE, but it is not included in OpenStack"},{"line_number":275,"context_line":"   global requirements."}],"source_content_type":"text/x-rst","patch_set":5,"id":"bf659307_f732055e","line":272,"updated":"2018-03-29 16:18:36.000000000","message":"I played around with this library and it\u0027s kind of complicated. I\u0027m going to keep playing with it, but it took quite a bit of tinkering compared to the other two. \n\nThe additional complexity might just be from support JWE - which is obviously going to add more functionality to the library.\n\nThis library is under the GNU Lesser General Public License v3.0, which is listed as incompatible according to our licensing requirements:\n\nhttps://governance.openstack.org/tc/reference/licensing.html","commit_id":"f622cb0c856cee08ec24c99828b162438622c3f9"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"46d600e5b3d984aa3388749e5c6e325a8c5a499c","unresolved":false,"context_lines":[{"line_number":269,"context_line":"   or authenticated encryption, yet. This library is not included in OpenStack"},{"line_number":270,"context_line":"   global requirements."},{"line_number":271,"context_line":""},{"line_number":272,"context_line":"3. `JWCrypto`_"},{"line_number":273,"context_line":""},{"line_number":274,"context_line":"   This library supports both JWS and JWE, but it is not included in OpenStack"},{"line_number":275,"context_line":"   global requirements."}],"source_content_type":"text/x-rst","patch_set":5,"id":"bf659307_fe25f5c2","line":272,"in_reply_to":"bf659307_f732055e","updated":"2018-03-30 04:02:35.000000000","message":"So we can\u0027t use this one due to GPL v3","commit_id":"f622cb0c856cee08ec24c99828b162438622c3f9"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"9d3900b32f038d89d320756c26be8007427b5886","unresolved":false,"context_lines":[{"line_number":269,"context_line":"   or authenticated encryption, yet. This library is not included in OpenStack"},{"line_number":270,"context_line":"   global requirements."},{"line_number":271,"context_line":""},{"line_number":272,"context_line":"3. `JWCrypto`_"},{"line_number":273,"context_line":""},{"line_number":274,"context_line":"   This library supports both JWS and JWE, but it is not included in OpenStack"},{"line_number":275,"context_line":"   global requirements."}],"source_content_type":"text/x-rst","patch_set":5,"id":"bf659307_50be29b4","line":272,"in_reply_to":"bf659307_fe25f5c2","updated":"2018-04-02 16:42:33.000000000","message":"Correct. I think we\u0027d have to wait for JWE support in one of the other libraries that has a compatible license.","commit_id":"f622cb0c856cee08ec24c99828b162438622c3f9"},{"author":{"_account_id":11391,"name":"Mikhail Fedosin","email":"mfedosin@redhat.com","username":"fedosinme"},"change_message_id":"7fc67fdeb13255bfaff2c218511002ef1b59a45f","unresolved":false,"context_lines":[{"line_number":48,"context_line":"  distribute public keys from one node to another instead of syncing a"},{"line_number":49,"context_line":"  repository of symmetric keys."},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"* As an operator, I want to be have a token provider to fall back on in the"},{"line_number":52,"context_line":"  event there is a security vulnerability in the `fernet spec`_ or the"},{"line_number":53,"context_line":"  `cryptography`_ implementation consumed by keystone."},{"line_number":54,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"5f7c97a3_e73f8684","line":51,"range":{"start_line":51,"start_character":28,"end_line":51,"end_character":30},"updated":"2018-05-14 17:21:55.000000000","message":"unnecessary","commit_id":"c499ac91a316da53d30414d4182877e42a844263"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"dbb0d6f828099c97a56517465a5980f46f933323","unresolved":false,"context_lines":[{"line_number":54,"context_line":""},{"line_number":55,"context_line":"* As an external developer, I want to be able to consume the upstream token"},{"line_number":56,"context_line":"  provider interfaces to support PKI-like tokens that will enable deployments"},{"line_number":57,"context_line":"  relying on offline validation."},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"* As a user, I want to be able to authenticate for a token that I can use with"},{"line_number":60,"context_line":"  other pieces of software outside of the OpenStack ecosystem that prove the my"}],"source_content_type":"text/x-rst","patch_set":6,"id":"9f6a8fd7_8ed42bbf","line":57,"updated":"2018-04-18 04:09:16.000000000","message":"similar with Orange\u0027s use case:  multiple keystones in the region and use the same token.\n\nHere are two way to solve this problem:\n1. sync the project, user, assignment, etc data to all keystones.\n2. support offline validation, so that service do not need to visit keystone to validate the token, then the keystones don\u0027t need to sync the data any more.\n\nThe first way is not easy to do, it\u0027ll cost too much for data sync. even for a special case like--multiple keystones in different regions and use the same token--in this case, if one region is in USA, another is in APAC, it\u0027s hard to sync the data.\n\nSo that\u0027s the reason why we want a PKI-like token that supports offline validation.\n\n-----------------------------------------------------------------\nA service should only have the ability to validate a token. It should not have the ability to issue a token. So if the offline validation is supported, the asymmetric signing should be used, so that the service can only use the public key to validate but can\u0027t to issue a token.\n-----------------------------------------------------------------\nThen if the offline validation is supported, a token should contains roles as well. Catalog can be dropped since it\u0027s the not the indispensable info.","commit_id":"c499ac91a316da53d30414d4182877e42a844263"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"dbb0d6f828099c97a56517465a5980f46f933323","unresolved":false,"context_lines":[{"line_number":57,"context_line":"  relying on offline validation."},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"* As a user, I want to be able to authenticate for a token that I can use with"},{"line_number":60,"context_line":"  other pieces of software outside of the OpenStack ecosystem that prove the my"},{"line_number":61,"context_line":"  identity."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":".. _`fernet spec`: https://github.com/fernet/spec/blob/master/Spec.md"}],"source_content_type":"text/x-rst","patch_set":6,"id":"9f6a8fd7_2eb2bf95","line":60,"updated":"2018-04-18 04:09:16.000000000","message":"Yeah, one case is perhaps OpenStack Keystone + K8S.\nI\u0027m not sure how the RBAC works in K8S, but I assume that maybe the role in token can used in K8S as well.","commit_id":"c499ac91a316da53d30414d4182877e42a844263"},{"author":{"_account_id":11391,"name":"Mikhail Fedosin","email":"mfedosin@redhat.com","username":"fedosinme"},"change_message_id":"7fc67fdeb13255bfaff2c218511002ef1b59a45f","unresolved":false,"context_lines":[{"line_number":57,"context_line":"  relying on offline validation."},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"* As a user, I want to be able to authenticate for a token that I can use with"},{"line_number":60,"context_line":"  other pieces of software outside of the OpenStack ecosystem that prove the my"},{"line_number":61,"context_line":"  identity."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":".. _`fernet spec`: https://github.com/fernet/spec/blob/master/Spec.md"}],"source_content_type":"text/x-rst","patch_set":6,"id":"5f7c97a3_d6923d57","line":60,"range":{"start_line":60,"start_character":67,"end_line":60,"end_character":76},"updated":"2018-05-14 17:21:55.000000000","message":"proves?","commit_id":"c499ac91a316da53d30414d4182877e42a844263"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"1fc43107bb2efcb85baf0cc580b74c38a0b9bd4b","unresolved":false,"context_lines":[{"line_number":57,"context_line":"  relying on offline validation."},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"* As a user, I want to be able to authenticate for a token that I can use with"},{"line_number":60,"context_line":"  other pieces of software outside of the OpenStack ecosystem that prove the my"},{"line_number":61,"context_line":"  identity."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":".. _`fernet spec`: https://github.com/fernet/spec/blob/master/Spec.md"}],"source_content_type":"text/x-rst","patch_set":6,"id":"5f7c97a3_d9acaeee","line":60,"in_reply_to":"5f7c97a3_e239b4f1","updated":"2018-05-14 17:35:44.000000000","message":"Awesome - it\u0027ll be good to have someone who is familiar with the inter-workings of k8s in this discussion :)\n\nDo tokens in k8s currently have the role in the jwt payload? Is it possible to have more than one role in a token? Do you know if this causes issues with token size?","commit_id":"c499ac91a316da53d30414d4182877e42a844263"},{"author":{"_account_id":11391,"name":"Mikhail Fedosin","email":"mfedosin@redhat.com","username":"fedosinme"},"change_message_id":"7fc67fdeb13255bfaff2c218511002ef1b59a45f","unresolved":false,"context_lines":[{"line_number":57,"context_line":"  relying on offline validation."},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"* As a user, I want to be able to authenticate for a token that I can use with"},{"line_number":60,"context_line":"  other pieces of software outside of the OpenStack ecosystem that prove the my"},{"line_number":61,"context_line":"  identity."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":".. _`fernet spec`: https://github.com/fernet/spec/blob/master/Spec.md"}],"source_content_type":"text/x-rst","patch_set":6,"id":"5f7c97a3_e239b4f1","line":60,"in_reply_to":"9f6a8fd7_2eb2bf95","updated":"2018-05-14 17:21:55.000000000","message":"For me, as the person who is working on integration k8s with keystone, it seems like a very nice feature.\n\nAlso I think using this will help us to sync role bindings between keystone and k8s rbac module, if related claims will be created in the payload.","commit_id":"c499ac91a316da53d30414d4182877e42a844263"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"7e4cc5c02591c672dd7660986b88d0589a85d84c","unresolved":false,"context_lines":[{"line_number":57,"context_line":"  relying on offline validation."},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"* As a user, I want to be able to authenticate for a token that I can use with"},{"line_number":60,"context_line":"  other pieces of software outside of the OpenStack ecosystem that prove the my"},{"line_number":61,"context_line":"  identity."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":".. _`fernet spec`: https://github.com/fernet/spec/blob/master/Spec.md"}],"source_content_type":"text/x-rst","patch_set":6,"id":"9f6a8fd7_9362fd3d","line":60,"in_reply_to":"9f6a8fd7_2eb2bf95","updated":"2018-04-18 20:01:26.000000000","message":"I think k8s has the concept of namespaces instead of projects and they use \"cluster roles\" for what we call system scope.","commit_id":"c499ac91a316da53d30414d4182877e42a844263"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"cc84ae18999c8b68fc7e71137af9750c6999cadf","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":"* As a user, I want to be able to authenticate for a token that I can use with"},{"line_number":60,"context_line":"  other pieces of software outside of the OpenStack ecosystem that prove the my"},{"line_number":61,"context_line":"  identity."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":".. _`fernet spec`: https://github.com/fernet/spec/blob/master/Spec.md"},{"line_number":64,"context_line":".. _`cryptography`: https://github.com/pyca/cryptography"}],"source_content_type":"text/x-rst","patch_set":6,"id":"9f6a8fd7_f3883520","line":61,"updated":"2018-04-17 21:16:17.000000000","message":"The details below will be updated according to the use cases agreed upon above.","commit_id":"c499ac91a316da53d30414d4182877e42a844263"},{"author":{"_account_id":21420,"name":"Gage Hugo","email":"gagehugo@gmail.com","username":"ghugo"},"change_message_id":"302af1462396d86f3f3020d9e825f8c328a7451c","unresolved":false,"context_lines":[{"line_number":285,"context_line":"   `required`_, but this library is already included in OpenStack global"},{"line_number":286,"context_line":"   requirements repository."},{"line_number":287,"context_line":""},{"line_number":288,"context_line":"2. `python-jose`_"},{"line_number":289,"context_line":""},{"line_number":290,"context_line":"   This library only supports token signing, or JWS. It does not support JWE,"},{"line_number":291,"context_line":"   or authenticated encryption, yet. This library is not included in OpenStack"},{"line_number":292,"context_line":"   global requirements."},{"line_number":293,"context_line":""},{"line_number":294,"context_line":"3. `JWCrypto`_"},{"line_number":295,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"9f6a8fd7_6b289785","line":292,"range":{"start_line":288,"start_character":0,"end_line":292,"end_character":23},"updated":"2018-04-18 15:51:28.000000000","message":"I don\u0027t see a reason to consider this library if it provides the exact functionality as PyJWT, since the first is already included in the OpenStack global requirements repo.\n\nUnless there\u0027s more details?","commit_id":"c499ac91a316da53d30414d4182877e42a844263"},{"author":{"_account_id":11391,"name":"Mikhail Fedosin","email":"mfedosin@redhat.com","username":"fedosinme"},"change_message_id":"7fc67fdeb13255bfaff2c218511002ef1b59a45f","unresolved":false,"context_lines":[{"line_number":285,"context_line":"   `required`_, but this library is already included in OpenStack global"},{"line_number":286,"context_line":"   requirements repository."},{"line_number":287,"context_line":""},{"line_number":288,"context_line":"2. `python-jose`_"},{"line_number":289,"context_line":""},{"line_number":290,"context_line":"   This library only supports token signing, or JWS. It does not support JWE,"},{"line_number":291,"context_line":"   or authenticated encryption, yet. This library is not included in OpenStack"},{"line_number":292,"context_line":"   global requirements."},{"line_number":293,"context_line":""},{"line_number":294,"context_line":"3. `JWCrypto`_"},{"line_number":295,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"5f7c97a3_5c6a7580","line":292,"range":{"start_line":288,"start_character":0,"end_line":292,"end_character":23},"in_reply_to":"9f6a8fd7_53d1c5cc","updated":"2018-05-14 17:21:55.000000000","message":"PyJWT doesn\u0027t fully comply with the standard and fails to pass all the checks... https://jwt.io/\n\nFor their part, python-jose and JWCrypto are 100% compatible.","commit_id":"c499ac91a316da53d30414d4182877e42a844263"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"7e4cc5c02591c672dd7660986b88d0589a85d84c","unresolved":false,"context_lines":[{"line_number":285,"context_line":"   `required`_, but this library is already included in OpenStack global"},{"line_number":286,"context_line":"   requirements repository."},{"line_number":287,"context_line":""},{"line_number":288,"context_line":"2. `python-jose`_"},{"line_number":289,"context_line":""},{"line_number":290,"context_line":"   This library only supports token signing, or JWS. It does not support JWE,"},{"line_number":291,"context_line":"   or authenticated encryption, yet. This library is not included in OpenStack"},{"line_number":292,"context_line":"   global requirements."},{"line_number":293,"context_line":""},{"line_number":294,"context_line":"3. `JWCrypto`_"},{"line_number":295,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"9f6a8fd7_53d1c5cc","line":292,"range":{"start_line":288,"start_character":0,"end_line":292,"end_character":23},"in_reply_to":"9f6a8fd7_6b289785","updated":"2018-04-18 20:01:26.000000000","message":"I believe you are correct. If needed I can update this to explicitly say we\u0027re going to use PyJWT and then clarify why we\u0027re not going with the other two options.","commit_id":"c499ac91a316da53d30414d4182877e42a844263"}],"specs/keystone/stein/json-web-tokens.rst":[{"author":{"_account_id":8482,"name":"Colleen Murphy","email":"colleen@gazlene.net","username":"krinkle"},"change_message_id":"705ff5256797de6194cbfedc4d3289747bcb7b14","unresolved":false,"context_lines":[{"line_number":46,"context_line":"  coupled to a symmetric encryption or signing implementation. An"},{"line_number":47,"context_line":"  implementation built on asymmetric signing or encryption allows me to"},{"line_number":48,"context_line":"  distribute public keys from one node to another instead of syncing a"},{"line_number":49,"context_line":"  repository of symmetric keys. This makes it easier to deploy keystone nodes"},{"line_number":50,"context_line":"  with \"read-only\" capabilities strictly used for token validation."},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"* As an operator, I want to be have a token provider to fall back on in the"},{"line_number":53,"context_line":"  event there is a security vulnerability in the `fernet spec`_ or the"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_a49b35c6","line":50,"range":{"start_line":49,"start_character":32,"end_line":50,"end_character":67},"updated":"2018-09-13 22:02:14.000000000","message":"We talked about this at the PTG, a more detailed description of this use case here would be nice.\n\nMy thoughts during that discussion were that if we succeed at this then we could actually have a proper reference architecture to recommend for a multi-region keystone deployment.","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"6bbe736368fc454d18c5e690a0574db46d64b49d","unresolved":false,"context_lines":[{"line_number":46,"context_line":"  coupled to a symmetric encryption or signing implementation. An"},{"line_number":47,"context_line":"  implementation built on asymmetric signing or encryption allows me to"},{"line_number":48,"context_line":"  distribute public keys from one node to another instead of syncing a"},{"line_number":49,"context_line":"  repository of symmetric keys. This makes it easier to deploy keystone nodes"},{"line_number":50,"context_line":"  with \"read-only\" capabilities strictly used for token validation."},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"* As an operator, I want to be have a token provider to fall back on in the"},{"line_number":53,"context_line":"  event there is a security vulnerability in the `fernet spec`_ or the"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_0c39563d","line":50,"range":{"start_line":49,"start_character":32,"end_line":50,"end_character":67},"in_reply_to":"3f79a3b5_a49b35c6","updated":"2018-09-21 15:52:19.000000000","message":"Done","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":8482,"name":"Colleen Murphy","email":"colleen@gazlene.net","username":"krinkle"},"change_message_id":"705ff5256797de6194cbfedc4d3289747bcb7b14","unresolved":false,"context_lines":[{"line_number":54,"context_line":"  `cryptography`_ implementation consumed by keystone."},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"* As a user, I want to be able to authenticate for a token that I can use with"},{"line_number":57,"context_line":"  other pieces of software outside of the OpenStack ecosystem that prove the my"},{"line_number":58,"context_line":"  identity."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":".. _`fernet spec`: https://github.com/fernet/spec/blob/master/Spec.md"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_c447514c","line":57,"range":{"start_line":57,"start_character":73,"end_line":57,"end_character":79},"updated":"2018-09-13 22:02:14.000000000","message":"typo","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"6bbe736368fc454d18c5e690a0574db46d64b49d","unresolved":false,"context_lines":[{"line_number":54,"context_line":"  `cryptography`_ implementation consumed by keystone."},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"* As a user, I want to be able to authenticate for a token that I can use with"},{"line_number":57,"context_line":"  other pieces of software outside of the OpenStack ecosystem that prove the my"},{"line_number":58,"context_line":"  identity."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":".. _`fernet spec`: https://github.com/fernet/spec/blob/master/Spec.md"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_cc3efe24","line":57,"range":{"start_line":57,"start_character":73,"end_line":57,"end_character":79},"in_reply_to":"3f79a3b5_c447514c","updated":"2018-09-21 15:52:19.000000000","message":"Done","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":8482,"name":"Colleen Murphy","email":"colleen@gazlene.net","username":"krinkle"},"change_message_id":"705ff5256797de6194cbfedc4d3289747bcb7b14","unresolved":false,"context_lines":[{"line_number":67,"context_line":"standard`_. These will behave in much the same way as our current fernet tokens"},{"line_number":68,"context_line":"do."},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"The token will be a signed JWT (`JWS`_) containing the authentication payload."},{"line_number":71,"context_line":"Similar to the fernet, JWTs will require a key repository be set up to use for"},{"line_number":72,"context_line":"signing tokens. A new ``keystone-manage`` command will be added to handle"},{"line_number":73,"context_line":"secret generation and rotation which will likely re-use much of the utilities"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_a40575c3","line":70,"range":{"start_line":70,"start_character":0,"end_line":70,"end_character":39},"updated":"2018-09-13 22:02:14.000000000","message":"We should highlight that the current plan doesn\u0027t propose to encrypt the token and acknowledge the side effects of that:\n\n- possibility of users assuming an API contract in the token payload\n- possibility that some of the data (e.g. user IDs) is considered sensitive by some organizations","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"6bbe736368fc454d18c5e690a0574db46d64b49d","unresolved":false,"context_lines":[{"line_number":67,"context_line":"standard`_. These will behave in much the same way as our current fernet tokens"},{"line_number":68,"context_line":"do."},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"The token will be a signed JWT (`JWS`_) containing the authentication payload."},{"line_number":71,"context_line":"Similar to the fernet, JWTs will require a key repository be set up to use for"},{"line_number":72,"context_line":"signing tokens. A new ``keystone-manage`` command will be added to handle"},{"line_number":73,"context_line":"secret generation and rotation which will likely re-use much of the utilities"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_5f2a8ee6","line":70,"range":{"start_line":70,"start_character":0,"end_line":70,"end_character":39},"in_reply_to":"3f79a3b5_a40575c3","updated":"2018-09-21 15:52:19.000000000","message":"Done","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"60bcc2f5cccaaa918d4434f159f838d7394478b6","unresolved":false,"context_lines":[{"line_number":72,"context_line":"signing tokens. A new ``keystone-manage`` command will be added to handle"},{"line_number":73,"context_line":"secret generation and rotation which will likely re-use much of the utilities"},{"line_number":74,"context_line":"in the ``fernet_setup`` and ``fernet_rotate`` commands. The recommended"},{"line_number":75,"context_line":"algorithm to be used is ``RS256``, which uses RSASSA-PKCS1-v1_5 SHA-256."},{"line_number":76,"context_line":"Keystone should not expose the ability to end users to ask for a specific JWS"},{"line_number":77,"context_line":"algorithm. Support should be limited to only supported or trusted algorithms"},{"line_number":78,"context_line":"that the end user cannot specify. JWS tokens will be integrity verified with a"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_83e4ec3d","line":75,"range":{"start_line":75,"start_character":26,"end_line":75,"end_character":31},"updated":"2018-09-14 02:36:59.000000000","message":"Could this be configurable? Like \"ES256\" can be used as well. ES256 may have higher performance in signing scenario IIRC.","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"43d586eeee231c0f561ca25312b96c5a30e5b6ee","unresolved":false,"context_lines":[{"line_number":72,"context_line":"signing tokens. A new ``keystone-manage`` command will be added to handle"},{"line_number":73,"context_line":"secret generation and rotation which will likely re-use much of the utilities"},{"line_number":74,"context_line":"in the ``fernet_setup`` and ``fernet_rotate`` commands. The recommended"},{"line_number":75,"context_line":"algorithm to be used is ``RS256``, which uses RSASSA-PKCS1-v1_5 SHA-256."},{"line_number":76,"context_line":"Keystone should not expose the ability to end users to ask for a specific JWS"},{"line_number":77,"context_line":"algorithm. Support should be limited to only supported or trusted algorithms"},{"line_number":78,"context_line":"that the end user cannot specify. JWS tokens will be integrity verified with a"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_5ca52347","line":75,"range":{"start_line":75,"start_character":26,"end_line":75,"end_character":31},"in_reply_to":"3f79a3b5_7f166aa9","updated":"2018-09-29 06:49:45.000000000","message":"ES256 is using ECDSA. I\u0027m not the expert for these algorithms . But after doing some research, we may find that either RSA or ES256 is faster in some cases than another one.\n\nI don\u0027t mean ES256 is the best, but how about supporting both and leave the choice to users?\n\nAny way, this is not the blocker for JWT, we can even add ECDSA in T or later once some users want it really.","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"6bbe736368fc454d18c5e690a0574db46d64b49d","unresolved":false,"context_lines":[{"line_number":72,"context_line":"signing tokens. A new ``keystone-manage`` command will be added to handle"},{"line_number":73,"context_line":"secret generation and rotation which will likely re-use much of the utilities"},{"line_number":74,"context_line":"in the ``fernet_setup`` and ``fernet_rotate`` commands. The recommended"},{"line_number":75,"context_line":"algorithm to be used is ``RS256``, which uses RSASSA-PKCS1-v1_5 SHA-256."},{"line_number":76,"context_line":"Keystone should not expose the ability to end users to ask for a specific JWS"},{"line_number":77,"context_line":"algorithm. Support should be limited to only supported or trusted algorithms"},{"line_number":78,"context_line":"that the end user cannot specify. JWS tokens will be integrity verified with a"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_7f166aa9","line":75,"range":{"start_line":75,"start_character":26,"end_line":75,"end_character":31},"in_reply_to":"3f79a3b5_83e4ec3d","updated":"2018-09-21 15:52:19.000000000","message":"Higher performance as in RS256 takes more or less time to craft tokens than ES256?","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":8482,"name":"Colleen Murphy","email":"colleen@gazlene.net","username":"krinkle"},"change_message_id":"705ff5256797de6194cbfedc4d3289747bcb7b14","unresolved":false,"context_lines":[{"line_number":79,"context_line":"private key and validated using a corresponding public key. Since the ``RS256``"},{"line_number":80,"context_line":"implementation only uses signing (as opposed to signed encrypted payloads),"},{"line_number":81,"context_line":"this adheres to slightly better security practices over fernet because private"},{"line_number":82,"context_line":"keys never have to be sync\u0027d across keystone API nodes. Only public keys need"},{"line_number":83,"context_line":"to be transferred to other keystone API servers to validate tokens across a"},{"line_number":84,"context_line":"cluster."},{"line_number":85,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_04922959","line":82,"range":{"start_line":82,"start_character":22,"end_line":82,"end_character":28},"updated":"2018-09-13 22:02:14.000000000","message":"synced","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"6bbe736368fc454d18c5e690a0574db46d64b49d","unresolved":false,"context_lines":[{"line_number":79,"context_line":"private key and validated using a corresponding public key. Since the ``RS256``"},{"line_number":80,"context_line":"implementation only uses signing (as opposed to signed encrypted payloads),"},{"line_number":81,"context_line":"this adheres to slightly better security practices over fernet because private"},{"line_number":82,"context_line":"keys never have to be sync\u0027d across keystone API nodes. Only public keys need"},{"line_number":83,"context_line":"to be transferred to other keystone API servers to validate tokens across a"},{"line_number":84,"context_line":"cluster."},{"line_number":85,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_1f097682","line":82,"range":{"start_line":82,"start_character":22,"end_line":82,"end_character":28},"in_reply_to":"3f79a3b5_04922959","updated":"2018-09-21 15:52:19.000000000","message":"Done","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"60bcc2f5cccaaa918d4434f159f838d7394478b6","unresolved":false,"context_lines":[{"line_number":89,"context_line":"  who authenticated for the token"},{"line_number":90,"context_line":"* the `exp` claim will be a **required** numeric value for token expiration"},{"line_number":91,"context_line":"* the `iat` claim will be a **required** numeric value for the time a token was"},{"line_number":92,"context_line":"  issued"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"The following private claims will be used to relay additional required"},{"line_number":95,"context_line":"information:"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_e3c4c043","line":92,"updated":"2018-09-14 02:36:59.000000000","message":"and what about others like iss,aud?","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"43d586eeee231c0f561ca25312b96c5a30e5b6ee","unresolved":false,"context_lines":[{"line_number":89,"context_line":"  who authenticated for the token"},{"line_number":90,"context_line":"* the `exp` claim will be a **required** numeric value for token expiration"},{"line_number":91,"context_line":"* the `iat` claim will be a **required** numeric value for the time a token was"},{"line_number":92,"context_line":"  issued"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"The following private claims will be used to relay additional required"},{"line_number":95,"context_line":"information:"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_1c2faba7","line":92,"in_reply_to":"3f79a3b5_9f4a66aa","updated":"2018-09-29 06:49:45.000000000","message":"\"iss\" and \"aud\" are the registered claims in JWT payload. It\u0027s good to explain what is Keystone\u0027s thought about them  for future integration (maybe K8S?), so as \"nbf\" and \"jti\"(while even I think we would not use them)","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"6bbe736368fc454d18c5e690a0574db46d64b49d","unresolved":false,"context_lines":[{"line_number":89,"context_line":"  who authenticated for the token"},{"line_number":90,"context_line":"* the `exp` claim will be a **required** numeric value for token expiration"},{"line_number":91,"context_line":"* the `iat` claim will be a **required** numeric value for the time a token was"},{"line_number":92,"context_line":"  issued"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"The following private claims will be used to relay additional required"},{"line_number":95,"context_line":"information:"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_9f4a66aa","line":92,"in_reply_to":"3f79a3b5_e3c4c043","updated":"2018-09-21 15:52:19.000000000","message":"So - would \"iss\" be keystone? If the user is the user, what would that make the aud?","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":8482,"name":"Colleen Murphy","email":"colleen@gazlene.net","username":"krinkle"},"change_message_id":"705ff5256797de6194cbfedc4d3289747bcb7b14","unresolved":false,"context_lines":[{"line_number":157,"context_line":"At this point, tokens issued from any API server can be validated anywhere. In"},{"line_number":158,"context_line":"the event a single API server needs to rotate keypairs:"},{"line_number":159,"context_line":""},{"line_number":160,"context_line":"1. A new key pair is created for `K1` called `K1-new.private` and `K1-new.pub`."},{"line_number":161,"context_line":"   Consider this key pair staged as `K1` is not yet configured to start signing"},{"line_number":162,"context_line":"   tokens with `K1-new.private`."},{"line_number":163,"context_line":"2. `K1-new.pub` is copied to the public key repository of each API server."}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_84c4f90f","line":160,"updated":"2018-09-13 22:02:14.000000000","message":"Right now the keystone-manage fernet tooling uses a numbering scheme for key file names, should we do the same here? Obviously naming the file -new stops making sense after the first time.","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"6bbe736368fc454d18c5e690a0574db46d64b49d","unresolved":false,"context_lines":[{"line_number":157,"context_line":"At this point, tokens issued from any API server can be validated anywhere. In"},{"line_number":158,"context_line":"the event a single API server needs to rotate keypairs:"},{"line_number":159,"context_line":""},{"line_number":160,"context_line":"1. A new key pair is created for `K1` called `K1-new.private` and `K1-new.pub`."},{"line_number":161,"context_line":"   Consider this key pair staged as `K1` is not yet configured to start signing"},{"line_number":162,"context_line":"   tokens with `K1-new.private`."},{"line_number":163,"context_line":"2. `K1-new.pub` is copied to the public key repository of each API server."}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_5fbdae65","line":160,"in_reply_to":"3f79a3b5_84c4f90f","updated":"2018-09-21 15:52:19.000000000","message":"Yeah - that\u0027s a good question. I thought when we were discussing this at the PTG; we said that operators would handle key creation?","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":8482,"name":"Colleen Murphy","email":"colleen@gazlene.net","username":"krinkle"},"change_message_id":"2302da00cac5d36877a95327654e5dc4b5795bab","unresolved":false,"context_lines":[{"line_number":169,"context_line":"   acceptable amount of time, depending on token validity (e.g. 2 hours if"},{"line_number":170,"context_line":"   tokens expire after 1 hour), `K1.private` can be removed from `K1` and"},{"line_number":171,"context_line":"   `K1.pub` can be removed from `K1`, `K2`, and `K3`."},{"line_number":172,"context_line":""},{"line_number":173,"context_line":"Alternatives"},{"line_number":174,"context_line":"------------"},{"line_number":175,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_06c40d91","line":172,"updated":"2018-09-19 10:59:38.000000000","message":"We should also talk about revocation lists. I think Morgan was making it sound more complicated than it needed to be when we discussed it in person but we should still address it explicitly.","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"6bbe736368fc454d18c5e690a0574db46d64b49d","unresolved":false,"context_lines":[{"line_number":169,"context_line":"   acceptable amount of time, depending on token validity (e.g. 2 hours if"},{"line_number":170,"context_line":"   tokens expire after 1 hour), `K1.private` can be removed from `K1` and"},{"line_number":171,"context_line":"   `K1.pub` can be removed from `K1`, `K2`, and `K3`."},{"line_number":172,"context_line":""},{"line_number":173,"context_line":"Alternatives"},{"line_number":174,"context_line":"------------"},{"line_number":175,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_5f304e07","line":172,"in_reply_to":"3f79a3b5_06c40d91","updated":"2018-09-21 15:52:19.000000000","message":"Done","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":8482,"name":"Colleen Murphy","email":"colleen@gazlene.net","username":"krinkle"},"change_message_id":"705ff5256797de6194cbfedc4d3289747bcb7b14","unresolved":false,"context_lines":[{"line_number":173,"context_line":"Alternatives"},{"line_number":174,"context_line":"------------"},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"Not applicable, this is an additive change. The alternative is not to add it or"},{"line_number":177,"context_line":"to find a different token format."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"Recently, there have been various efforts that help solve authenticated"},{"line_number":180,"context_line":"encryption. One of these efforts was sparked by a `concern`_ with JWT, namely"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_c41e71ba","line":177,"range":{"start_line":176,"start_character":0,"end_line":177,"end_character":33},"updated":"2018-09-13 22:02:14.000000000","message":"Let\u0027s remove this, it doesn\u0027t make sense when there is actually some discussion in this section","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"6bbe736368fc454d18c5e690a0574db46d64b49d","unresolved":false,"context_lines":[{"line_number":173,"context_line":"Alternatives"},{"line_number":174,"context_line":"------------"},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"Not applicable, this is an additive change. The alternative is not to add it or"},{"line_number":177,"context_line":"to find a different token format."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"Recently, there have been various efforts that help solve authenticated"},{"line_number":180,"context_line":"encryption. One of these efforts was sparked by a `concern`_ with JWT, namely"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_7f33ca13","line":177,"range":{"start_line":176,"start_character":0,"end_line":177,"end_character":33},"in_reply_to":"3f79a3b5_c41e71ba","updated":"2018-09-21 15:52:19.000000000","message":"Done","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":8482,"name":"Colleen Murphy","email":"colleen@gazlene.net","username":"krinkle"},"change_message_id":"705ff5256797de6194cbfedc4d3289747bcb7b14","unresolved":false,"context_lines":[{"line_number":176,"context_line":"Not applicable, this is an additive change. The alternative is not to add it or"},{"line_number":177,"context_line":"to find a different token format."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"Recently, there have been various efforts that help solve authenticated"},{"line_number":180,"context_line":"encryption. One of these efforts was sparked by a `concern`_ with JWT, namely"},{"line_number":181,"context_line":"the `JOSE`_ header."},{"line_number":182,"context_line":""},{"line_number":183,"context_line":"There is a proof-of-concept implementation for Platform Agnostic Security"},{"line_number":184,"context_line":"Tokens, or `PASETO`_ that takes a more strict stance on algorithm validation"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_449ca10d","line":181,"range":{"start_line":179,"start_character":0,"end_line":181,"end_character":19},"updated":"2018-09-13 22:02:14.000000000","message":"Without going and visiting the link this warning seems really vague and it\u0027s unclear how much of a concern it is. A brief summary of the issue and why it\u0027s not really a concern in our context would be good.","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"6bbe736368fc454d18c5e690a0574db46d64b49d","unresolved":false,"context_lines":[{"line_number":176,"context_line":"Not applicable, this is an additive change. The alternative is not to add it or"},{"line_number":177,"context_line":"to find a different token format."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"Recently, there have been various efforts that help solve authenticated"},{"line_number":180,"context_line":"encryption. One of these efforts was sparked by a `concern`_ with JWT, namely"},{"line_number":181,"context_line":"the `JOSE`_ header."},{"line_number":182,"context_line":""},{"line_number":183,"context_line":"There is a proof-of-concept implementation for Platform Agnostic Security"},{"line_number":184,"context_line":"Tokens, or `PASETO`_ that takes a more strict stance on algorithm validation"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_822a0d7b","line":181,"range":{"start_line":179,"start_character":0,"end_line":181,"end_character":19},"in_reply_to":"3f79a3b5_449ca10d","updated":"2018-09-21 15:52:19.000000000","message":"Done","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":8482,"name":"Colleen Murphy","email":"colleen@gazlene.net","username":"krinkle"},"change_message_id":"705ff5256797de6194cbfedc4d3289747bcb7b14","unresolved":false,"context_lines":[{"line_number":215,"context_line":"including one library written in Python."},{"line_number":216,"context_line":""},{"line_number":217,"context_line":"In most cases, JSON Web Tokens will have a header, payload, and signature where"},{"line_number":218,"context_line":"each section is delimited by a period (``.``). The header contains an import"},{"line_number":219,"context_line":"piece of information, which is how the token\u0027s integrity is protected. This is"},{"line_number":220,"context_line":"stored as the ``alg`` attribute of the header. The library verifying the token"},{"line_number":221,"context_line":"uses the algorithm specified in the header to perform an integrity check and"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_a4f01568","line":218,"range":{"start_line":218,"start_character":70,"end_line":218,"end_character":76},"updated":"2018-09-13 22:02:14.000000000","message":"important?","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"6bbe736368fc454d18c5e690a0574db46d64b49d","unresolved":false,"context_lines":[{"line_number":215,"context_line":"including one library written in Python."},{"line_number":216,"context_line":""},{"line_number":217,"context_line":"In most cases, JSON Web Tokens will have a header, payload, and signature where"},{"line_number":218,"context_line":"each section is delimited by a period (``.``). The header contains an import"},{"line_number":219,"context_line":"piece of information, which is how the token\u0027s integrity is protected. This is"},{"line_number":220,"context_line":"stored as the ``alg`` attribute of the header. The library verifying the token"},{"line_number":221,"context_line":"uses the algorithm specified in the header to perform an integrity check and"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_c22b2579","line":218,"range":{"start_line":218,"start_character":70,"end_line":218,"end_character":76},"in_reply_to":"3f79a3b5_a4f01568","updated":"2018-09-21 15:52:19.000000000","message":"Done","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":8482,"name":"Colleen Murphy","email":"colleen@gazlene.net","username":"krinkle"},"change_message_id":"705ff5256797de6194cbfedc4d3289747bcb7b14","unresolved":false,"context_lines":[{"line_number":225,"context_line":"allowing clients to dictate algorithms used for token verification. This is a"},{"line_number":226,"context_line":"concern specifically with applications that support asymmetric and symmetric"},{"line_number":227,"context_line":"signing. An attacker could effectively bypass the verification check of a"},{"line_number":228,"context_line":"token by using a published, or known, public key to generate a JWT with an"},{"line_number":229,"context_line":"symmetric signing algorithm."},{"line_number":230,"context_line":""},{"line_number":231,"context_line":"This would be applicable if keystone supported signed tokens and encrypted"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_c48f51cb","line":228,"range":{"start_line":228,"start_character":72,"end_line":228,"end_character":74},"updated":"2018-09-13 22:02:14.000000000","message":"a","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"6bbe736368fc454d18c5e690a0574db46d64b49d","unresolved":false,"context_lines":[{"line_number":225,"context_line":"allowing clients to dictate algorithms used for token verification. This is a"},{"line_number":226,"context_line":"concern specifically with applications that support asymmetric and symmetric"},{"line_number":227,"context_line":"signing. An attacker could effectively bypass the verification check of a"},{"line_number":228,"context_line":"token by using a published, or known, public key to generate a JWT with an"},{"line_number":229,"context_line":"symmetric signing algorithm."},{"line_number":230,"context_line":""},{"line_number":231,"context_line":"This would be applicable if keystone supported signed tokens and encrypted"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_624c9175","line":228,"range":{"start_line":228,"start_character":72,"end_line":228,"end_character":74},"in_reply_to":"3f79a3b5_c48f51cb","updated":"2018-09-21 15:52:19.000000000","message":"Done","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":8482,"name":"Colleen Murphy","email":"colleen@gazlene.net","username":"krinkle"},"change_message_id":"705ff5256797de6194cbfedc4d3289747bcb7b14","unresolved":false,"context_lines":[{"line_number":237,"context_line":"* Ensuring keystone doesn\u0027t blindly allow end users to specify which algorithm"},{"line_number":238,"context_line":"  is used to verify the integrity of a token (e.g. only implementing support"},{"line_number":239,"context_line":"  for ``RS256``)"},{"line_number":240,"context_line":"* Ensure the ``alg`` supplied in the token header is only ever populated by"},{"line_number":241,"context_line":"  keystone"},{"line_number":242,"context_line":"* Including an extra `algorithm` claim that is supplied by keystone and must"},{"line_number":243,"context_line":"  match the ``alg`` property of the header"},{"line_number":244,"context_line":"* Ensure keystone only issues tokens of a single encryption or signing strategy"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_24064523","line":241,"range":{"start_line":240,"start_character":2,"end_line":241,"end_character":10},"updated":"2018-09-13 22:02:14.000000000","message":"How do we do this? When a user presents a token to keystone for validation, the signature is signing both the header (which includes the alg claim) and the payload, so keystone can\u0027t inject its own header in the token.\n\nWhat we could do is first decode the header and make sure it matches RS256 (or maybe in the future an algorithm specified in keystone.conf) before proceeding to validate the signature.","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"6bbe736368fc454d18c5e690a0574db46d64b49d","unresolved":false,"context_lines":[{"line_number":237,"context_line":"* Ensuring keystone doesn\u0027t blindly allow end users to specify which algorithm"},{"line_number":238,"context_line":"  is used to verify the integrity of a token (e.g. only implementing support"},{"line_number":239,"context_line":"  for ``RS256``)"},{"line_number":240,"context_line":"* Ensure the ``alg`` supplied in the token header is only ever populated by"},{"line_number":241,"context_line":"  keystone"},{"line_number":242,"context_line":"* Including an extra `algorithm` claim that is supplied by keystone and must"},{"line_number":243,"context_line":"  match the ``alg`` property of the header"},{"line_number":244,"context_line":"* Ensure keystone only issues tokens of a single encryption or signing strategy"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_a245c945","line":241,"range":{"start_line":240,"start_character":2,"end_line":241,"end_character":10},"in_reply_to":"3f79a3b5_24064523","updated":"2018-09-21 15:52:19.000000000","message":"Oh, yeah. I see what you mean. Technically validating the signature should be enough. I suppose I can remove this, but we could also make sure the algorithm supplied in the header matches only algorithms we support (or are configured), which seems like diaper defense. Maybe I\u0027m too paranoid?","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":8482,"name":"Colleen Murphy","email":"colleen@gazlene.net","username":"krinkle"},"change_message_id":"7774d30199c625dc3d9ba5d814c4a2b8273de795","unresolved":false,"context_lines":[{"line_number":237,"context_line":"* Ensuring keystone doesn\u0027t blindly allow end users to specify which algorithm"},{"line_number":238,"context_line":"  is used to verify the integrity of a token (e.g. only implementing support"},{"line_number":239,"context_line":"  for ``RS256``)"},{"line_number":240,"context_line":"* Ensure the ``alg`` supplied in the token header is only ever populated by"},{"line_number":241,"context_line":"  keystone"},{"line_number":242,"context_line":"* Including an extra `algorithm` claim that is supplied by keystone and must"},{"line_number":243,"context_line":"  match the ``alg`` property of the header"},{"line_number":244,"context_line":"* Ensure keystone only issues tokens of a single encryption or signing strategy"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_387c886f","line":241,"range":{"start_line":240,"start_character":2,"end_line":241,"end_character":10},"in_reply_to":"3f79a3b5_a245c945","updated":"2018-09-21 16:55:34.000000000","message":"Thinking about this again I understand the bullet point better and I think it\u0027s fine. When keystone issues the token it adds the alg header which is what you mean by \"populated by keystone\". Then keystone signs that. When the user presents it back to keystone it will be unchanged. So this is fine, sorry for the confusion.","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":8482,"name":"Colleen Murphy","email":"colleen@gazlene.net","username":"krinkle"},"change_message_id":"705ff5256797de6194cbfedc4d3289747bcb7b14","unresolved":false,"context_lines":[{"line_number":239,"context_line":"  for ``RS256``)"},{"line_number":240,"context_line":"* Ensure the ``alg`` supplied in the token header is only ever populated by"},{"line_number":241,"context_line":"  keystone"},{"line_number":242,"context_line":"* Including an extra `algorithm` claim that is supplied by keystone and must"},{"line_number":243,"context_line":"  match the ``alg`` property of the header"},{"line_number":244,"context_line":"* Ensure keystone only issues tokens of a single encryption or signing strategy"},{"line_number":245,"context_line":"  (e.g. not allowing users to get signed token and encrypted tokens from the"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_4411015d","line":242,"range":{"start_line":242,"start_character":21,"end_line":242,"end_character":32},"updated":"2018-09-13 22:02:14.000000000","message":"Double backticks here?","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"6bbe736368fc454d18c5e690a0574db46d64b49d","unresolved":false,"context_lines":[{"line_number":239,"context_line":"  for ``RS256``)"},{"line_number":240,"context_line":"* Ensure the ``alg`` supplied in the token header is only ever populated by"},{"line_number":241,"context_line":"  keystone"},{"line_number":242,"context_line":"* Including an extra `algorithm` claim that is supplied by keystone and must"},{"line_number":243,"context_line":"  match the ``alg`` property of the header"},{"line_number":244,"context_line":"* Ensure keystone only issues tokens of a single encryption or signing strategy"},{"line_number":245,"context_line":"  (e.g. not allowing users to get signed token and encrypted tokens from the"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_a2b3894d","line":242,"range":{"start_line":242,"start_character":21,"end_line":242,"end_character":32},"in_reply_to":"3f79a3b5_4411015d","updated":"2018-09-21 15:52:19.000000000","message":"Done","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":8482,"name":"Colleen Murphy","email":"colleen@gazlene.net","username":"krinkle"},"change_message_id":"705ff5256797de6194cbfedc4d3289747bcb7b14","unresolved":false,"context_lines":[{"line_number":240,"context_line":"* Ensure the ``alg`` supplied in the token header is only ever populated by"},{"line_number":241,"context_line":"  keystone"},{"line_number":242,"context_line":"* Including an extra `algorithm` claim that is supplied by keystone and must"},{"line_number":243,"context_line":"  match the ``alg`` property of the header"},{"line_number":244,"context_line":"* Ensure keystone only issues tokens of a single encryption or signing strategy"},{"line_number":245,"context_line":"  (e.g. not allowing users to get signed token and encrypted tokens from the"},{"line_number":246,"context_line":"  same server, thus mixing asymmetric and symmetric key usage at runtime)"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_bf51fedb","line":243,"updated":"2018-09-13 22:02:14.000000000","message":"I\u0027m not really sure how much we gain from this","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"6bbe736368fc454d18c5e690a0574db46d64b49d","unresolved":false,"context_lines":[{"line_number":240,"context_line":"* Ensure the ``alg`` supplied in the token header is only ever populated by"},{"line_number":241,"context_line":"  keystone"},{"line_number":242,"context_line":"* Including an extra `algorithm` claim that is supplied by keystone and must"},{"line_number":243,"context_line":"  match the ``alg`` property of the header"},{"line_number":244,"context_line":"* Ensure keystone only issues tokens of a single encryption or signing strategy"},{"line_number":245,"context_line":"  (e.g. not allowing users to get signed token and encrypted tokens from the"},{"line_number":246,"context_line":"  same server, thus mixing asymmetric and symmetric key usage at runtime)"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_e2966194","line":243,"in_reply_to":"3f79a3b5_bf51fedb","updated":"2018-09-21 15:52:19.000000000","message":"I agree, I\u0027m not sure why I included this, but I think signature validation and then making sure we only validate specific algorithms would be sufficient (which you already commented on).","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":8482,"name":"Colleen Murphy","email":"colleen@gazlene.net","username":"krinkle"},"change_message_id":"705ff5256797de6194cbfedc4d3289747bcb7b14","unresolved":false,"context_lines":[{"line_number":299,"context_line":"Work Items"},{"line_number":300,"context_line":"----------"},{"line_number":301,"context_line":""},{"line_number":302,"context_line":"* Decide on an implementation library"},{"line_number":303,"context_line":"* Refactor the fernet utilities modules to be generic enough to work with JWT"},{"line_number":304,"context_line":"  or inheritable"},{"line_number":305,"context_line":"* Add a ``keystone-manage`` command to set up and rotate JWT signing/encryption"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_1f6cb29b","line":302,"updated":"2018-09-13 22:02:14.000000000","message":"I think we\u0027re confident in using PyJWT at this point","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"6bbe736368fc454d18c5e690a0574db46d64b49d","unresolved":false,"context_lines":[{"line_number":299,"context_line":"Work Items"},{"line_number":300,"context_line":"----------"},{"line_number":301,"context_line":""},{"line_number":302,"context_line":"* Decide on an implementation library"},{"line_number":303,"context_line":"* Refactor the fernet utilities modules to be generic enough to work with JWT"},{"line_number":304,"context_line":"  or inheritable"},{"line_number":305,"context_line":"* Add a ``keystone-manage`` command to set up and rotate JWT signing/encryption"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_620491c6","line":302,"in_reply_to":"3f79a3b5_1f6cb29b","updated":"2018-09-21 15:52:19.000000000","message":"Done","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":8482,"name":"Colleen Murphy","email":"colleen@gazlene.net","username":"krinkle"},"change_message_id":"705ff5256797de6194cbfedc4d3289747bcb7b14","unresolved":false,"context_lines":[{"line_number":302,"context_line":"* Decide on an implementation library"},{"line_number":303,"context_line":"* Refactor the fernet utilities modules to be generic enough to work with JWT"},{"line_number":304,"context_line":"  or inheritable"},{"line_number":305,"context_line":"* Add a ``keystone-manage`` command to set up and rotate JWT signing/encryption"},{"line_number":306,"context_line":"  keys"},{"line_number":307,"context_line":"* Generalize the ``TokenFormatter`` class to support JWT"},{"line_number":308,"context_line":"* Refactor the fernet token provider module to be inheritable or generic"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_df65dab0","line":305,"range":{"start_line":305,"start_character":69,"end_line":305,"end_character":79},"updated":"2018-09-13 22:02:14.000000000","message":"Just signing for now","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"6bbe736368fc454d18c5e690a0574db46d64b49d","unresolved":false,"context_lines":[{"line_number":302,"context_line":"* Decide on an implementation library"},{"line_number":303,"context_line":"* Refactor the fernet utilities modules to be generic enough to work with JWT"},{"line_number":304,"context_line":"  or inheritable"},{"line_number":305,"context_line":"* Add a ``keystone-manage`` command to set up and rotate JWT signing/encryption"},{"line_number":306,"context_line":"  keys"},{"line_number":307,"context_line":"* Generalize the ``TokenFormatter`` class to support JWT"},{"line_number":308,"context_line":"* Refactor the fernet token provider module to be inheritable or generic"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_c26325aa","line":305,"range":{"start_line":305,"start_character":69,"end_line":305,"end_character":79},"in_reply_to":"3f79a3b5_df65dab0","updated":"2018-09-21 15:52:19.000000000","message":"Done","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":8482,"name":"Colleen Murphy","email":"colleen@gazlene.net","username":"krinkle"},"change_message_id":"705ff5256797de6194cbfedc4d3289747bcb7b14","unresolved":false,"context_lines":[{"line_number":315,"context_line":""},{"line_number":316,"context_line":"There are three different libraries we can use to implement this functionality."},{"line_number":317,"context_line":""},{"line_number":318,"context_line":"1. `PyJWT`_"},{"line_number":319,"context_line":""},{"line_number":320,"context_line":"   This library only supports token signing, or JWS. It does not support JWE,"},{"line_number":321,"context_line":"   or authenticated encryption, yet. A minimum version of **1.0.1** is"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_3f0c0eeb","line":318,"updated":"2018-09-13 22:02:14.000000000","message":"I think we\u0027re confident in this on at this point","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"6bbe736368fc454d18c5e690a0574db46d64b49d","unresolved":false,"context_lines":[{"line_number":315,"context_line":""},{"line_number":316,"context_line":"There are three different libraries we can use to implement this functionality."},{"line_number":317,"context_line":""},{"line_number":318,"context_line":"1. `PyJWT`_"},{"line_number":319,"context_line":""},{"line_number":320,"context_line":"   This library only supports token signing, or JWS. It does not support JWE,"},{"line_number":321,"context_line":"   or authenticated encryption, yet. A minimum version of **1.0.1** is"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_a2686987","line":318,"in_reply_to":"3f79a3b5_3f0c0eeb","updated":"2018-09-21 15:52:19.000000000","message":"Done","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"60bcc2f5cccaaa918d4434f159f838d7394478b6","unresolved":false,"context_lines":[{"line_number":332,"context_line":""},{"line_number":333,"context_line":"   This library supports both JWS and JWE, but it is not included in OpenStack"},{"line_number":334,"context_line":"   global requirements."},{"line_number":335,"context_line":""},{"line_number":336,"context_line":"We need to decided on one of the above libraries before merging this"},{"line_number":337,"context_line":"specification."},{"line_number":338,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_03e53cdc","line":335,"updated":"2018-09-14 02:36:59.000000000","message":"and other one authlib https://authlib.org/ which is under AGPLV3+ license.","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"6bbe736368fc454d18c5e690a0574db46d64b49d","unresolved":false,"context_lines":[{"line_number":332,"context_line":""},{"line_number":333,"context_line":"   This library supports both JWS and JWE, but it is not included in OpenStack"},{"line_number":334,"context_line":"   global requirements."},{"line_number":335,"context_line":""},{"line_number":336,"context_line":"We need to decided on one of the above libraries before merging this"},{"line_number":337,"context_line":"specification."},{"line_number":338,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_02783d28","line":335,"in_reply_to":"3f79a3b5_03e53cdc","updated":"2018-09-21 15:52:19.000000000","message":"Added, thanks!","commit_id":"1ab559a2e0fbc384f543a3439057cb3efc32c273"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"35c19ce105c588e9d41da3ce8f95391b1dde9879","unresolved":false,"context_lines":[{"line_number":89,"context_line":"Similar to the Fernet, JWTs will require a key repository be set up to use for"},{"line_number":90,"context_line":"signing tokens. A new ``keystone-manage`` command will be added to handle"},{"line_number":91,"context_line":"secret generation and rotation which will likely re-use much of the utilities"},{"line_number":92,"context_line":"in the ``fernet_setup`` and ``fernet_rotate`` commands. The recommended"},{"line_number":93,"context_line":"algorithm to be used is ``RS256``, which uses RSASSA-PKCS1-v1_5 SHA-256."},{"line_number":94,"context_line":"Keystone should not expose the ability to end users to ask for a specific JWS"},{"line_number":95,"context_line":"algorithm. Support should be limited to only supported or trusted algorithms"},{"line_number":96,"context_line":"that the end user cannot specify. JWS tokens will be integrity verified with a"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f79a3b5_8c45949d","line":93,"range":{"start_line":92,"start_character":57,"end_line":93,"end_character":72},"updated":"2018-10-02 17:34:30.000000000","message":"as covered by Simo, ES256 (ECDSA) should be the choice here.","commit_id":"5b584c12530b5787c5503ed9a2148572486edbc9"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"a1aaa3e0371845e416e5139743bdb799d8a36a95","unresolved":false,"context_lines":[{"line_number":89,"context_line":"Similar to the Fernet, JWTs will require a key repository be set up to use for"},{"line_number":90,"context_line":"signing tokens. A new ``keystone-manage`` command will be added to handle"},{"line_number":91,"context_line":"secret generation and rotation which will likely re-use much of the utilities"},{"line_number":92,"context_line":"in the ``fernet_setup`` and ``fernet_rotate`` commands. The recommended"},{"line_number":93,"context_line":"algorithm to be used is ``RS256``, which uses RSASSA-PKCS1-v1_5 SHA-256."},{"line_number":94,"context_line":"Keystone should not expose the ability to end users to ask for a specific JWS"},{"line_number":95,"context_line":"algorithm. Support should be limited to only supported or trusted algorithms"},{"line_number":96,"context_line":"that the end user cannot specify. JWS tokens will be integrity verified with a"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f79a3b5_76de4f6b","line":93,"range":{"start_line":92,"start_character":57,"end_line":93,"end_character":72},"in_reply_to":"3f79a3b5_8c45949d","updated":"2018-10-08 16:21:13.000000000","message":"Done","commit_id":"5b584c12530b5787c5503ed9a2148572486edbc9"}]}
