Gate endpoint UI refresh on fresh telemetry and land endpoint agent
A command reaching 'succeeded' only proves the agent ran the action, not that it posted a new telemetry snapshot. Reloading panels on command success alone re-rendered stale service/process rows, so a stopped process could still show running right after Refresh Status. Add a lightweight telemetrymeta probe exposing lastreportedat and gate both the header Refresh Status action and inline row Start/Stop on that stamp advancing past a pre-action baseline. Polling is bounded so an offline or idle agent never hangs the button, and messaging distinguishes a confirmed refresh from a queued one. Bring the .NET endpoint agent source (service, tray, installer) into the repo so Cameron can merge and test, with an agent/.gitignore keeping bin/obj/publish out. Includes the DncMain launch-path fix, tray single-file host env scrub, and best-effort file logger.
This commit is contained in:
19
Dockerfile
19
Dockerfile
@@ -23,10 +23,21 @@ FROM node:20-slim AS frontendbuild
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
# Trust the site's corporate root CA so npm's TLS to the registry validates
|
||||
# behind an inspecting proxy. Without it npm 10.x fails silently and leaves an
|
||||
# incomplete node_modules.
|
||||
COPY corp-root-ca.pem /usr/local/share/ca-certificates/corp-root-ca.crt
|
||||
# Optionally trust the site's corporate root CA so npm's TLS to the registry
|
||||
# validates behind an inspecting proxy. The .pem is gitignored and absent from a
|
||||
# clean checkout, so the copy is made optional by pairing it with a file that
|
||||
# always exists; the cert is installed only when actually provided. Without it
|
||||
# npm 10.x behind an inspecting proxy fails silently and leaves an incomplete
|
||||
# node_modules; a clean build with no proxy is unaffected.
|
||||
COPY corp-root-ca.pem* frontend/package.json /tmp/corpca/
|
||||
# node:20-slim ships without the ca-certificates package (no update-ca-certificates
|
||||
# and no /usr/local/share/ca-certificates), so install it before trusting the cert.
|
||||
RUN if [ -f /tmp/corpca/corp-root-ca.pem ]; then \
|
||||
apt-get update && apt-get install -y --no-install-recommends ca-certificates && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
cp /tmp/corpca/corp-root-ca.pem /usr/local/share/ca-certificates/corp-root-ca.crt && \
|
||||
update-ca-certificates; \
|
||||
fi
|
||||
ENV NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/corp-root-ca.crt
|
||||
|
||||
# Copy only the manifests first so `npm ci` caches on dependency changes.
|
||||
|
||||
Reference in New Issue
Block a user