iam icon indicating copy to clipboard operation
iam copied to clipboard

IAM should highlight how long a client has not been used

Open enricovianello opened this issue 2 years ago • 5 comments

This introduces the need of track a "last-used" information for a client (last token issued, last userinfo/introspection call, etc.).

enricovianello avatar May 16 '23 06:05 enricovianello

I would rather give an administrator the opportunity to search for such clients and then delete them

giacomini avatar May 16 '23 07:05 giacomini

Ok, it makes sense. In any case, he needs more information in order to identify the unused ones. Instead of deleting them, IAM could highlight them to the administrator.

enricovianello avatar May 16 '23 07:05 enricovianello

Now that we have a draft PR, we should define well what "used" means: some access via the client credentials is done? the client fields are changed via the dashboard or via the API? something else?

giacomini avatar Dec 04 '23 16:12 giacomini

Probably it makes sense to track when a new access token is issued for a client but not all the times such access token is used to access the API. I would also track whenever the client details are updated. What do you think?

Also, I decided to track the date of last use, not the full timestamp, as it may be faster to store a less precise time indication and we don't need ms precision. Do you think it makes sense?

darcato avatar Dec 04 '23 16:12 darcato

Probably it makes sense to track when a new access token is issued for a client but not all the times such access token is used to access the API. I would also track whenever the client details are updated. What do you think?

We can start with those cases and, if needed, extend the list in the future.

Also, I decided to track the date of last use, not the full timestamp, as it may be faster to store a less precise time indication and we don't need ms precision. Do you think it makes sense?

I don't think it makes much sense, not without an actual profiling. I even suspect that extracting the date from the timestamp is actually more work.

giacomini avatar Dec 05 '23 08:12 giacomini