-
Notifications
You must be signed in to change notification settings - Fork 45
Pub Sub notifications
📝 This Wiki page has moved. For the latest content, see Notifications on the IAP JIT Access documentation page. |
---|
You can configure JIT Access to publish notification messages to Pub/Sub when certain events occur. Other applications can consume these messages to implement additional logic, such as posting to chat rooms or triggering additional workflows.
JIT Access currently supports the following notifications.
JIT Access publishes a message of type ActivationSelfApproved
when a user activates a role binding that permits self-approval.
The message body looks similar to the following:
{
type: "ActivationSelfApproved",
attributes: {
role: "roles/compute.viewer",
beneficiary: "alice@example.com",
start_time: "2023-11-28T22:13:44Z",
end_time: "2023-11-28T22:23:44Z",
justification: "Working on CASE-123, need to view VMs",
project_id: "project-1"
}
}
JIT Access publishes a message of type RequestActivation
when a user requests approval for activating a role binding that requires multi-party approval.
The message body looks similar to the following:
{
"type": "RequestActivation",
"attributes": {
"role": "roles/compute.admin",
"beneficiary": "alice@example.com",
"start_time": "2023-11-28T22:19:06Z",
"end_time": "2023-11-28T22:29:06Z",
"reviewers": [
"bob@example.com",
"carol@example.com"
],
"justification": "Working on CASE-123, need to redeploy VMs",
"action_url": "https://jitaccess.example.com/?activation=JhbGciOi...",
"request_expiry_time": "2023-11-28T23:19:06Z",
"base_url": "https://jitaccess.example.com/",
"project_id": "project-1"
}
}
JIT Access publishes a message of type ActivationApproved
when a user approves another user's activation request.
The message body looks similar to the following:
{
"type": "ActivationApproved",
"attributes": {
"role": "roles/compute.admin",
"beneficiary": "alice@example.com",
"start_time": "2023-11-28T22:19:06Z",
"end_time": "2023-11-28T22:29:06Z",
"reviewers": [
"bob@example.com",
"carol@example.com"
],
"justification": "Working on CASE-123, need to redeploy VMs",
"base_url": "https://jitaccess.example.com/",
"approver": "bob@example.com",
"project_id": "project-1"
}
}
Just-In-Time Access is an open-source project and not an officially supported Google product.
Overview
How-to guides
- Deploy JIT Access 🡥
- Upgrade JIT Access 🡥
- Configure multi party approval
- Configure Pub/Sub notifications
- Switch to a different catalog
- Grant access to VPC service perimeters
Reference
Development