Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tx token lifetime guidance missing for replacement token #110

Closed
ashayraut opened this issue Jul 13, 2024 · 8 comments
Closed

Tx token lifetime guidance missing for replacement token #110

ashayraut opened this issue Jul 13, 2024 · 8 comments

Comments

@ashayraut
Copy link
Collaborator

There should be guidance for token lifetime of replacement token. A replacement token can have lifetime of whatever is left in the original token that was used to replacement or someone will keep using replacement token feature to keep increasing lifetime of the original incoming token.

@arndt-s
Copy link
Member

arndt-s commented Jul 15, 2024

I believe this is partly covered by Section 2.3 Txn-Token Lifetime

Except in the case where the request is made using a self-signed JWT, if the token or other credential presented to the Txn-Token service when requesting a Txn-Token has an expiration time, then the Txn-Token MUST NOT exceed the lifetime of the originally presented token or credential.

However, I agree that this is very focused on the original token and not in cases where transaction tokens are replaced.

@ashayraut
Copy link
Collaborator Author

Yes, I'd say we must include details about it so that there is some guidance for replacement tokens too. Default suggestion could be to set expiry time on replace token, same as expiryTimeOfOriginalToken. So it also discourages replacing a token multiple times.

other alternatives are to keep a counter on Tx Token Service side (or inside the token itself) where we can keep track on how many times it was replaced and limit on Tx token service side if a certain token is replaced too many times but unfortunately, it will be difficult to gauge value for "replaced too many times".. :-)

@tulshi
Copy link
Collaborator

tulshi commented Jul 15, 2024

The intent was that the replacement token should expire no later than the expiration of the original TraT, but I don't recollect whether that is in the spec or not.

@obfuscoder
Copy link
Collaborator

If there are long running batch processes involved, it may be necessary to extend lifetime of such TraTs (or issue TraTs out of bounds as discussed in other issues). However, the TraT Service should have the authority about what is possible.

@ashayraut
Copy link
Collaborator Author

I didn’t see Tx token lifetime for replacement token in draft. We should add it.

about long running process I have a proposal in other GitHub issue. In general the Trats service can decide to issue tokens with higher lifetime but with Trats tokens it’s a risk to have higher lifetime as they are bearer tokens can be used by anyone. So my proposal addresses that by using another token for it.

@obfuscoder
Copy link
Collaborator

I didn't mean that the TTS should issue TraTs with long lifetimes. That would be bad indeed. Instead the TTS should be able to issue new TraTs with short lifetime, but the lifetime can essentially exceed that of the presented one. As I suggested in #62, the presented TxT could even be expired aand the TTS could allow to issue a new TxT to that specific workload as the TTS knows that this workload is a long running batch processor.

@PieterKas
Copy link
Collaborator

Note- combine this with any PR on "refresh" tokens when time extension/replacement is needed to keep language consistent.

ashayraut added a commit to ashayraut/replacement_token_tts that referenced this issue Oct 20, 2024
Update Transaction Token Service responsibility when creating replacement tokens. Also contains minor changes for consistent language.
Related oauth-wg#110
@ashayraut
Copy link
Collaborator Author

Raised a PR with minor fixes #147

tulshi added a commit that referenced this issue Oct 23, 2024
Update Transaction Token Service responsibility for replacement tokens #110
@tulshi tulshi closed this as completed Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants