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

[GT-184] Extend API Credential Management to handle periodic renewal #438

Open
gregcorbett opened this issue Mar 8, 2023 · 4 comments
Open
Assignees

Comments

@gregcorbett
Copy link
Member

As a follow on from #437, we should extend the management of API Credentials to deal with the periodic renewal of credentials.

I.e., the case where somebody has set up a useless periodic API operation, and subsequently stopped needing it, but the access continues indefintely.

We would want a suitable user of GOCDB to have to say the access is still needed every X months.

I imagine this could be done by renaming the existing ManageAPICredentialsActions functionality warnUsers() to warnUsersOfInactivity() and adding a warnUsersOfRenewal() method. deleteCreds would also have to be similarly reworked.

@gregcorbett
Copy link
Member Author

Alternatively, we could rename the existing scripts to ManageUnusedAPICredentials... and add new scripts that share code along the lines of ManageUnrenewedAPICredentials....

That may be better than having one giant script that does everything.

@gregcorbett
Copy link
Member Author

Alternatively, we could rename the existing scripts to ManageUnusedAPICredentials... and add new scripts that share code along the lines of ManageUnrenewedAPICredentials....

That may be better than having one giant script that does everything.

Looking at the exact implementation of this in #447, a hypothetical ManageUnneededAPICredentials.php script would be very similiar to the ManageUnusedAPICredentials.php script - except for using lastRenewTime instead of lastUseTime.

We could have seperate scripts for unneeded and unused credentials, so long as most of the code is suitably shared. Another option would be to have a single script (i.e. undo the renaming) and add an option to determine if we are managing unneeded or unused credentials. Something to think about and discuss.

@gregcorbett
Copy link
Member Author

a hypothetical ManageUnneededAPICredentials.php script would be very similiar to the ManageUnusedAPICredentials.php script - except for using lastRenewTime instead of lastUseTime.

This isn't exactly true. The email message would be different as well - maybe that additional difference warrents two thin wrapper scripts over some shared functionality.

@gregcorbett
Copy link
Member Author

This and #453 may best be tackled at a similar time.

@gregcorbett gregcorbett changed the title Extend API Credential Management to handle periodic renewal [GT-184] Extend API Credential Management to handle periodic renewal Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants