refactor(proto)!: use well-known time types (#3113)

* refactor(proto)!: use well-known time types

Signed-off-by: Derek Carr <decarr@redhat.com>

* fix(proto): preserve time migration behavior

Signed-off-by: Derek Carr <decarr@redhat.com>

* fix(proto): preserve timestamp boundary semantics

Signed-off-by: Derek Carr <decarr@redhat.com>

* fix(proto): convert sandbox token expiry to timestamp

Signed-off-by: Derek Carr <decarr@redhat.com>

* fix(proto): preserve time compatibility semantics

Signed-off-by: Derek Carr <decarr@redhat.com>

* fix(proto): preserve exact endpoint and profile times

Signed-off-by: Derek Carr <decarr@redhat.com>

* test(e2e): use duration for interactive exec timeout

Signed-off-by: Derek Carr <decarr@redhat.com>

* fix(sdk-go)!: remove legacy profile duration fields

BREAKING CHANGE: Go provider profile callers must use RefreshBefore, MaxLifetime, and CacheTTL with ProfileDuration instead of the whole-second fields.

Signed-off-by: Derek Carr <decarr@redhat.com>

---------

Signed-off-by: Derek Carr <decarr@redhat.com>
This commit is contained in:
Derek Carr
2026-09-16 19:51:45 +00:00
committed by GitHub
parent 7c592196e7
commit d68b7069c3
124 changed files with 5860 additions and 2674 deletions
+2 -1
View File
@@ -1075,10 +1075,11 @@ class SandboxClient:
command=list(command),
workdir=workdir or "",
environment=dict(env or {}),
timeout_seconds=timeout_seconds or 0,
stdin=stdin or b"",
no_login_shell=no_login_shell,
)
if timeout_seconds:
request.execution_timeout.seconds = timeout_seconds
# Use whichever is larger: the default client timeout or the command
# timeout plus headroom for SSH setup / teardown overhead.
grpc_deadline = self._timeout