Spring / Spring CredHub Interview questions
How does Spring CredHub represent an actor in a permission entry?
An actor is modeled by the Actor class in org.springframework.credhub.support.permissions, built with a static factory method matching the kind of identity being granted access: Actor.app(appGuid) for a Cloud Foundry application, Actor.user(userGuid) for a UAA user, or Actor.client(clientName) for a UAA client.
Internally each of these produces a prefixed identifier that mirrors what the CredHub API itself expects — for example an app becomes mtls-app:<guid> and a UAA client becomes uaa-client:<name> — which is also exactly what you'd see if you inspected permissions with the CredHub CLI.
A Permission then pairs that actor with a set of Operation values to say what the actor is allowed to do.
More Related questions...