Show per-PC credentials across the admin interface
- Endpoints (shared key) page: the key is presented as what PCs use until they enroll, with enrollment progress, a link to Enrollment, rewritten guidance, and rotate/revoke confirmations that say how many PCs are not enrolled yet. - Settings cards describe the server certificate as what PCs actually receive, on IIS or Docker; Enrollment has its own icon (the icon set lacked the one the Server Certificate card already asked for). - Server Certificate page checks the certificate the site presents at its public address and compares its pin with the certificate file, warning when they differ. The host comes from site settings only; the check is a TLS handshake, never an HTTP request. - Fleet list: Credential column and filter (enrolled, pending, re-enroll blocked, shared key, not reporting), computed in the list query. - PC detail: credential state, prefix and dates for fleet readers, state only for others, with admin Revoke (optionally blocking re-enrollment) and Allow re-enrollment. - Dashboard: pending enrollment requests, and PCs blocked from re-enrolling for more than seven days. - Runbook: where to find each of these in the app.
This commit is contained in:
@@ -240,6 +240,19 @@ export const endpointsApi = {
|
||||
}
|
||||
return api.post(`/endpoints/${assetId}/agentupgrade`, body)
|
||||
},
|
||||
// Per-PC credential administration (admin role, re-checked server-side).
|
||||
// blockreenroll keeps the PC from enrolling again until allowReenroll.
|
||||
revokeCredential(assetId, opts = {}) {
|
||||
const body = {}
|
||||
if (opts.blockreenroll) {
|
||||
body.blockreenroll = true
|
||||
if (opts.reason) body.reason = opts.reason
|
||||
}
|
||||
return api.post(`/endpoints/enrollment/assets/${assetId}/revoke`, body)
|
||||
},
|
||||
allowReenroll(assetId) {
|
||||
return api.post(`/endpoints/enrollment/assets/${assetId}/allow-reenroll`)
|
||||
},
|
||||
listCommands(assetId) {
|
||||
return api.get(`/endpoints/${assetId}/commands`)
|
||||
},
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// (landing) read the merged catalog so plugins add settings cards with no core
|
||||
// edit. Fetched once into a module-level ref and shared across callers.
|
||||
import { ref, computed } from 'vue'
|
||||
import { Ruler, Wrench, Cog, Package, Settings, Puzzle, SlidersHorizontal, Palette, Bell, Network, Printer, Droplets, Terminal, KeyRound } from 'lucide-vue-next'
|
||||
import { Ruler, Wrench, Cog, Package, Settings, Puzzle, SlidersHorizontal, Palette, Bell, Network, Printer, Droplets, Terminal, KeyRound, ShieldCheck, BadgeCheck } from 'lucide-vue-next'
|
||||
import api from '../api'
|
||||
import router from '../router'
|
||||
import { settingsGroups } from '../views/settings/settingsNav'
|
||||
@@ -28,6 +28,9 @@ const iconMap = {
|
||||
// The endpoints agent-key card has asked for 'key' since it shipped and has
|
||||
// been silently drawing a puzzle piece the whole time.
|
||||
key: KeyRound,
|
||||
// Server Certificate asked for 'shield-check' and drew the puzzle fallback.
|
||||
'shield-check': ShieldCheck,
|
||||
'badge-check': BadgeCheck,
|
||||
}
|
||||
|
||||
function resolveIcon(key) {
|
||||
|
||||
Reference in New Issue
Block a user