Issue 2551064
Created on 2019-10-06 22:11 by rouilj, last changed 2021-12-12 00:13 by rouilj.
msg6698 |
Author: [hidden] (rouilj) |
Date: 2019-10-06 22:11 |
|
With 2.0 we have minimal suport for json web tokens. They allow login
as a user and a restricted permissions set based on the role embedded
in the JWT.
This ticket can be used as a grab bag of ideas that others may want to
tackle if JWT's are deemed more useful.
JWT can have own rate limit
===========================
Currently rate limiting in the rest interface is done based on the
user/subject. Consider adding a separate rate limit in the body of the
JWT. This restricts the amount of resources usable by the JWT which
may be lower than that allowed for the user. The user's level needs to
be able to support say an AJAX web interface to roundup which may
need many more hits than the JWT token needs to do its work.
More ideas can be added to this ticket and migrated to separate
tickets as they get implemented.
|
msg6777 |
Author: [hidden] (rouilj) |
Date: 2019-10-26 16:53 |
|
Consider including array of ip's (or cdir network spec) in token.
Token can only be used if sent from an ip in the list.
X-Forwarded-For is available from roundup-server, so it may be
possible to get the real source ip in other deployment modes.
|
msg7397 |
Author: [hidden] (rouilj) |
Date: 2021-12-05 16:14 |
|
issue2551177 suggests looking at macaroons for some of the JWT use cases
above. E.G. An existing macaroon could be modified by a user to create
a token that restricted a token with read write access to all
issues the user has accessible from anywhere at any time to a token that:
allowed read only access
to one issue
for the next 6 hours
from a specific subnet or set of addresses
|
msg7415 |
Author: [hidden] (rouilj) |
Date: 2021-12-12 00:13 |
|
Also consider how we rotate keys.
see: https://itsdangerous.palletsprojects.com/en/2.0.x/concepts/#key-rotation
for key rotation ideas.
May need to have multiple keys live at the same time and way to add/remove them.
|
|
Date |
User |
Action |
Args |
2021-12-12 00:13:02 | rouilj | set | messages:
+ msg7415 components:
+ Web interface |
2021-12-05 16:14:30 | rouilj | set | messages:
+ msg7397 |
2019-10-26 16:53:29 | rouilj | set | messages:
+ msg6777 |
2019-10-11 02:34:43 | rouilj | set | priority: low type: rfe |
2019-10-06 22:11:50 | rouilj | create | |
|