Currently the SSH key will automatically get removed at 6:20, but the Chrome profile will remain. This should be removed automatically at the end of the day, to protect against accidentally leaving the profile on a machine.
Signout can be automated by:
// navigate to: chrome://settings-frame/
// <wait for page load here>
document.evaluate('//*[@id="profiles-list"]//*[(@role="listitem") and contains(descendant-or-self::*/text(), "MyProfileNameHere")]/button', document, null, XPathResult.ANY_TYPE, null).iterateNext().click();
// <wait for #delete-profile-ok to exist here>
document.getElementById('delete-profile-ok').click();
(error checking needed!)
The load script could add a crontab entry to run this.
Concerns:
Will this run when a screensaver is active? When the machine is locked?
What if the machine is shutdown? Could add a crontab entry for shutdown as well as scheduled time, but sometimes restarts are performed during the day which should not remove the profile.
What if the user still wants to use the browser? Is it possible to display an alert that something will happen (with a countdown), with an option to cancel / postpone?
The script above requires knowing the profile name, and assumes that no other profiles have a similar name
Currently the SSH key will automatically get removed at 6:20, but the Chrome profile will remain. This should be removed automatically at the end of the day, to protect against accidentally leaving the profile on a machine.
Signout can be automated by:
(error checking needed!)
The load script could add a crontab entry to run this.
Concerns: