Buckets:

download
raw
3.65 kB
{
"role_mappings": [
{
"role": "Subject",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "The bearer token is sent by the Cloud Foundry platform (Apps Manager) to the /cloudfoundryapplication actuator endpoints; that client lives outside the repo. Only tests send tokens to SecurityInterceptor in-repo."
},
{
"role": "Enforcer",
"status": "present",
"symbol": "preHandle",
"file": "module/spring-boot-cloudfoundry/src/main/java/org/springframework/boot/cloudfoundry/autoconfigure/actuate/endpoint/servlet/SecurityInterceptor.java",
"lines": "62",
"notes": "preHandle in SecurityInterceptor is invoked by SecureServletWebOperation.handle (servlet/CloudFoundryWebEndpointServletHandlerMapping.java:166), which returns the error response instead of calling the endpoint when it fails; the interceptor is wired in CloudFoundryActuatorAutoConfiguration.java:114. preHandle -> check (line 91) extracts the bearer token (getToken, line 104) and calls tokenValidator.validate at line 96."
},
{
"role": "Verifier",
"status": "present",
"symbol": "validate",
"file": "module/spring-boot-cloudfoundry/src/main/java/org/springframework/boot/cloudfoundry/autoconfigure/actuate/endpoint/servlet/TokenValidator.java",
"lines": "52",
"notes": "Reached from SecurityInterceptor.check (SecurityInterceptor.java:96). validate checks algorithm RS256, key id + RSA signature (validateKeyIdAndSignature, line 71), expiry, issuer and actuator.read scope, throwing CloudFoundryAuthorizationException on failure. A reactive twin exists in reactive/TokenValidator.java; the servlet one is used."
},
{
"role": "Key manager",
"status": "present",
"symbol": "fetchTokenKeys",
"file": "module/spring-boot-cloudfoundry/src/main/java/org/springframework/boot/cloudfoundry/autoconfigure/actuate/endpoint/servlet/SecurityService.java",
"lines": "104",
"notes": "Called from TokenValidator.validateKeyIdAndSignature (TokenValidator.java:75) when the cached key map lacks the token's kid; fetches public token keys from the UAA /token_keys endpoint and maps kid->PEM (extractTokenKeys, line 115). The PEM is turned into an RSA PublicKey by TokenValidator.getPublicKey (TokenValidator.java:107)."
},
{
"role": "Cryptographer",
"status": "external",
"symbol": "verify",
"file": "module/spring-boot-cloudfoundry/src/main/java/org/springframework/boot/cloudfoundry/autoconfigure/actuate/endpoint/servlet/TokenValidator.java",
"lines": "100",
"notes": "TokenValidator.hasValidSignature (line 94, called from validateKeyIdAndSignature line 84) uses JDK java.security.Signature SHA256withRSA (getInstance line 97, initVerify/update) and calls signature.verify(token.getSignature()) at line 100."
},
{
"role": "System",
"status": "present",
"symbol": "health",
"file": "module/spring-boot-cloudfoundry/src/main/java/org/springframework/boot/cloudfoundry/autoconfigure/actuate/endpoint/servlet/CloudFoundryHealthEndpointWebExtension.java",
"lines": "48",
"notes": "After preHandle succeeds, SecureServletWebOperation.handle calls this.delegate.handle (CloudFoundryWebEndpointServletHandlerMapping.java:170), invoking the Cloud Foundry actuator endpoint operations such as the health @ReadOperation in CloudFoundryHealthEndpointWebExtension (also info in CloudFoundryInfoEndpointWebExtension.java:43). Spring Boot is a framework, so these are its own actuator endpoints rather than app business logic."
}
]
}

Xet Storage Details

Size:
3.65 kB
·
Xet hash:
59a4cd2ffcf565ba39eca24c4e09ebb0937174c460b54061ce85e89fef00142f

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.