-
Notifications
You must be signed in to change notification settings - Fork 2
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
Consider also token expiration time for send submitted
email
#304
Comments
whenever the second "submitted" email is sent (after a delay), we need to give a bit more information about why this was needed. |
I am working on this point (#312): we want to consider also the token expiration time when deciding whether or not send another email with Is it correct? Or am I missing something? |
Maybe. I am not sure I do understand how you put it. intsub used for making the choice about submitting email should be |
This condition cannot actually work since once the token expires the request won't go through and fail before even reaching that point. I suggest to keep the same condition (with only What about sending an email to the user, informing that the token is expired ? And this would be sent instead of the multiple |
it can be a different request, with new token, for the same job_id. What if the job was last sent 1 minute ago? We had situations like this in the past. It was related to some dispatcher issues. This results in a storm of emails. They might still happen. 1 year go?
We should not do anything when token is expired. That's the whole point of expiring tokens - they should be treated as invalid. Sending emails for invalid tokens is a security problem. It might be that expired token is compromised. Anyone finding any expired token anywhere would storm us/someone with emails. We have already left some tokens in the wild. Luckily they have expired. These tokens may not be used for any real action, especially sending emails, and should be discarded promptly. We could however warn if the token is near-expired. It's tricky to know when. Like "your job is about to expire". Also regularly scanning existing directories might help. This it's done by dispatcher it's safe. edit: let me express this in clear user stories and discuss before any further substantial action. |
situation 1: as happens currently
as should happen
situation 2:
summary suggestion
|
No description provided.
The text was updated successfully, but these errors were encountered: