docs(hooks): correct the cloud-protected denial claim
hooks/README.md said the win2019-1 denial happened because Zerto cannot insert a tagged checkpoint on an AWS-protected VPG. That is not what happened, and it is not true on 10.9.10. The insert succeeded. The checkpoint is in the journal as cp 56, stamped about a minute after the hook had already reported failure. What actually happened is that wait_for_tag gave up after its hardcoded 45s, which is generous on a VPG that checkpoints every 5s and far too short on one that checkpoints every 630s. So the documented "verified" example was a false denial. The deny path works; that particular denial was wrong. Recorded as a known issue, because a guard that silently refuses legitimate work on every cloud-protected VM while looking correct is a worse failure than the one it exists to prevent. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_016yVfC5nvZowoLFnEGWhLGn
This commit is contained in:
1 parent
a51b512bab
commit
0263f3797a
1 file changed
+28
-7
+28
-7
@@ -38,10 +38,8 @@ The hook is synchronous: the host waits. That is the point, because the
|
|||||||
checkpoint has to exist before the change does.
|
checkpoint has to exist before the change does.
|
||||||
|
|
||||||
Budget for the slow path, not the fast one. A successful tag took about 4s
|
Budget for the slow path, not the fast one. A successful tag took about 4s
|
||||||
against a healthy VPG, but a **refusal took 63s**: `wait_for_tag` waits 45s for
|
against a healthy vSphere-protected VPG, but a **refusal took 63s**, because
|
||||||
a checkpoint that is never going to appear, which is exactly what happens on a
|
`wait_for_tag` spends 45s before giving up.
|
||||||
VPG whose protected site is AWS or Azure, where tagged checkpoints are not
|
|
||||||
supported.
|
|
||||||
|
|
||||||
So:
|
So:
|
||||||
|
|
||||||
@@ -59,9 +57,8 @@ Against a live ZVM 10.9.10, all six rows of the table above. Two worth naming:
|
|||||||
|
|
||||||
- `jp-ubuntu` (healthy, local VPG) tagged checkpoint 7180 and allowed the call,
|
- `jp-ubuntu` (healthy, local VPG) tagged checkpoint 7180 and allowed the call,
|
||||||
passing the tag back through `additionalContext`.
|
passing the tag back through `additionalContext`.
|
||||||
- `win2019-1` (VPG `CMH-AWS-1`, protected site AWS) was **denied**: Zerto cannot
|
- `win2019-1` (VPG `CMH-AWS-1`, protected site AWS) was **denied**. The deny path
|
||||||
insert a tagged checkpoint there, so the change would not have been
|
works, but see the known issue below: that particular denial was wrong.
|
||||||
recoverable.
|
|
||||||
|
|
||||||
Both decisions held with `permission_mode: bypassPermissions`. A hook still
|
Both decisions held with `permission_mode: bypassPermissions`. A hook still
|
||||||
blocks when the user has turned permissions off, which is when an agent is most
|
blocks when the user has turned permissions off, which is when an agent is most
|
||||||
@@ -70,3 +67,27 @@ likely to be running unattended.
|
|||||||
## Log
|
## Log
|
||||||
|
|
||||||
`~/.zerto-guard-hook.log`, or `ZERTO_HOOK_LOG`. One line per decision.
|
`~/.zerto-guard-hook.log`, or `ZERTO_HOOK_LOG`. One line per decision.
|
||||||
|
|
||||||
|
## Known issue: false denials on cloud-protected VPGs
|
||||||
|
|
||||||
|
The `win2019-1` denial above was a **false negative**, and it is worth
|
||||||
|
understanding before relying on this hook in an estate with cloud-protected
|
||||||
|
workloads.
|
||||||
|
|
||||||
|
`wait_for_tag` gives up after a hardcoded 45s. That is generous for a
|
||||||
|
vSphere-protected VPG, which checkpoints every 5s and surfaces a tag in about
|
||||||
|
4s. It is far too short elsewhere: a tag takes ~34s to appear on an
|
||||||
|
Azure-protected VPG and ~128s on an AWS-protected one, because journal cadence
|
||||||
|
is set by the protected site (5s vSphere, 60s Azure, 630s AWS).
|
||||||
|
|
||||||
|
So the hook denied the change, and the checkpoint landed anyway. It is in the
|
||||||
|
journal as `cp 56`, timestamped a minute after the hook reported failure. The
|
||||||
|
guard told the agent there was no rewind point while Zerto was in the middle of
|
||||||
|
creating one.
|
||||||
|
|
||||||
|
That failure mode is worse than the one the hook guards against, because it is
|
||||||
|
silent and looks correct: legitimate work is refused on every cloud-protected VM
|
||||||
|
while the log reads like the guard is doing its job.
|
||||||
|
|
||||||
|
Until `wait_for_tag` becomes cadence-aware, scope this hook's matcher to
|
||||||
|
vSphere-protected workloads.
|
||||||
Reference in new issue
Block a user