Repository navigation
Block server side restore in save&restore - #4021
georgweiss wants to merge 3 commits into
Conversation
jacomago
left a comment
There was a problem hiding this comment.
I'm not quite sure why this is a configuration property rather than an access role?
If it is to be configuration should it be start time or runtime? I.e. should it be a flag that an admin can reset, for example turn off restores during maintenance, turn on during operations?
|
Server side restore was added for a scenario where the Phoebus client is unable to perform write operations. But such a limitation may be intentional (e.g. ESS), so server side restore may be unwanted. On top of that, users may not know how to use the current UI where both alternatives are presented. During the codathon it was decided to make the server side restore a "global" option. Additionally the Phoebus UI would - based on the presence of the restore endpoints - be able to decide how to present this in the UI. So no, dynamic or role-based behavior is not in scope. |
Ah right, it's not all restore operations. I remember now. |
|



Restore of snapshots from the service may pose a security issue as it may circumvent EPICS access control. As discussed in recent codathon meeting, the server side restore feature should be optional.
This PR adds a property controlling the presence of the restore endpoint, which by default will be disabled. To enable the endpoints, service must be launched with property
serverRestoreAllowed=true.The
infoendpoint (default endpoint) has been updated to return aServerInfoobject wrapping the data that might be of interest, e.g. if server side restore is enabled and statistics on the Elastic indices (see below).Testing:
Documentation:
Info endpoint response example: