Disabling Caching in IndexedDB

Overview

Data from the Interactive Map is cached in IndexedDB, a database that is built into the browser that users use for logging in to SecureTrack. This sensitive data is saved in the browser, while it is open and is automatically deleted when the user logs out from SecureTrack, or closes their browser. However, there is still a risk of unauthorized access to the data if the user leaves their workstation without logging out or closing their browser.

To mitigate this risk, in R21-3 we added a new configuration setting to the SecureTrack database. If selected:

  • Topology information is not cached in IndexedDB

  • Data for the Interactive Map is loaded from the backend, and this will impact the performance the first time the user opens the Interactive Map

  • IndexedDB is automatically cleared each time the user logs into SecureTrack

This setting is relevant for both TOS Classic and TOS Aurora. Due to the performance impact, by default this setting is not selected.

Disable caching

  1. Go into the TSS pod.

    kubectl exec -it deploy/tss -c tss  -- bash
  2. In the SecureTrack database, add the following property:

    psql -Upostgres securetrack -h stolon-proxy -p 5432
    insert into properties values ('TOPOLOGY_MAP_USE_INDEX_DB','0');
  3. Log into SecureTrack.

  4. Go to the Interactive Map, and run a fast topology sync.

    See Refreshing the Map

  5. Log out of SecureTrack

    The next time a user logs into SecureTrack, the topology data will be automatically cleared from IndexedDB, and no new data will be saved in it.