How kili69/t1jit works
T1JIT provides temporary local-administrator access on Active Directory member servers. The web workflow authenticates a user, presents delegated servers and duration limits, and submits a request for logging; documented downstream processing validates delegation and assigns a TTL-bound AD group membership. Group Policy maps that group to local Administrators, and AD expires the membership. KjitWeb also exposes active elevations and service diagnostics; the shared core loads and validates JIT configuration. Some downstream processing and provisioning are documented but not represented by sampled runtime source.
Main entry points: HomeController.cs Web workflow · KjitCore.cs Shared core facade · Program.cs KjitWeb host · ActiveDirectoryService.cs AD discovery
Components 22
Web access
- KjitWeb host
src/C#/Kjitweb/Program.cs - Authentication
src/C#/Kjitweb/Services/BasicAuthenticationHandler.cs - Web workflow
src/C#/Kjitweb/Controllers/HomeController.cs - Request and elevation view
src/C#/Kjitweb/Models/ServerSelectionViewModel.cs
Directory and configuration
- AD discovery
src/C#/Kjitweb/Services/ActiveDirectoryService.cs - Config path resolution
src/C#/Kjitweb/Services/JitConfigPathResolver.cs - Shared core facade
src/C#/KjitCore/KjitCore.cs - JIT configuration loading
src/C#/KjitCore/Services/JitConfigurationReader.cs - JIT configuration model
src/C#/KjitCore/Models/JitConfigurationObject.cs - Identity normalization
src/C#/KjitCore/Services/IdentityNormalizer.cs - Distinguished-name parsing
src/C#/KjitCore/Services/DistinguishedNameService.cs
Privilege assignment
- Scheduled gMSA processor
- Server admin group
- Group Policy
- Local Administrators
- AD TTL expiry
Audit and diagnostics
- Windows Event Log
src/C#/Kjitweb/Services/EventLogWriter.cs - Event log health
src/C#/Kjitweb/Services/EventLogHealthMonitor.cs - Connection audit
src/C#/Kjitweb/Services/ConnectionAuditLogger.cs - Debug file logging
src/C#/Kjitweb/Services/DebugLogFileWriter.cs
Other components
- Administrator requester
- PowerShell client
Connections 18
- Administrator requester → KjitWeb host: uses web
- PowerShell client → Scheduled gMSA processor: submits request
- KjitWeb host → Authentication: registers
src/C#/Kjitweb/Program.cs - KjitWeb host → Web workflow: routes requests
- Web workflow → AD discovery: queries directory
src/C#/Kjitweb/Controllers/HomeController.cs - Web workflow → Request and elevation view: populates view
src/C#/Kjitweb/Controllers/HomeController.cs - Web workflow → Windows Event Log: writes request
src/C#/Kjitweb/Controllers/HomeController.cs - AD discovery → Config path resolution: resolves config
src/C#/Kjitweb/Services/ActiveDirectoryService.cs - Shared core facade → JIT configuration loading: loads config
src/C#/KjitCore/KjitCore.cs - JIT configuration loading → JIT configuration model: creates model
src/C#/KjitCore/Services/JitConfigurationReader.cs - Shared core facade → Identity normalization: exposes service
src/C#/KjitCore/KjitCore.cs - Shared core facade → Distinguished-name parsing: exposes service
src/C#/KjitCore/KjitCore.cs - Scheduled gMSA processor → Server admin group: adds TTL membership
- Server admin group → Group Policy: is mapped by
- Group Policy → Local Administrators: grants membership
- AD TTL expiry → Server admin group: removes expired membership
- Event log health → Windows Event Log: checks health
src/C#/Kjitweb/Services/EventLogHealthMonitor.cs - Connection audit → Debug file logging: writes audit
src/C#/Kjitweb/Services/ConnectionAuditLogger.cs