16.2. Configuring Red Hat Advanced Cluster Security for Kubernetes
Create a new integration in Red Hat Advanced Cluster Security for Kubernetes by using the Jira server URL and user credentials.
Procedure
-
In the RHACS portal, go to Platform Configuration
Integrations. - Scroll down to the Notifier Integrations section and select Jira Software.
- Click New integration.
- Enter a name for Integration name.
- Enter the user credentials in the Username and Password or API token fields.
- For Issue type, enter a valid Jira Issue Type, for example Task, Sub-task, or Bug.
- Enter the Jira server URL in the Jira URL field.
- Enter the key of the project in which you want to create issues in the Default project field.
Optional: Use the Annotation key for project field to create issues in different Jira projects by completing the following steps. You can use annotations to dynamically create issues.
Add an annotation similar to the following example in your namespace or deployment YAML file, where
jira/project-keyis the annotation key that you specify in your Jira integration. You can create an annotation for the deployment or the namespace.annotations: # ... jira/project-key: <jira_project_key> # ...-
Use the annotation key
jira/project-keyin the Annotation key for project field.
- If you use custom priorities in your Jira project, use the Priority Mapping toggle to configure custom priorities.
If you use mandatory custom fields in your Jira project, enter them as JSON values in the Default Fields JSON field. For example:
{ "customfield_10004": 3, "customfield_20005": "Alerts", }- Select Test to test that the integration with Jira is working.
- Select Create to generate the configuration.
16.2.1. Creating issues in different Jira projects 复制链接链接已复制到粘贴板!
You can configure Red Hat Advanced Cluster Security for Kubernetes to create issues in different Jira projects so that they directly go to the correct team. After completing the configuration, if a deployment has an annotation in the YAML file, RHACS creates issues in the project specified for that annotation. Otherwise, RHACS creates issues in the default project.
Prerequisites
- You must have an account with access to each project that you want to send the alerts to.
Procedure
Add an annotation similar to the following example in your namespace or deployment YAML file:
annotations: # ... jira/project-key: <jira_project_key> # ...-
Use the annotation key
jira/project-keyin the Annotation key for project field when you configure Red Hat Advanced Cluster Security for Kubernetes.
16.2.2. Configuring custom priorities in Jira 复制链接链接已复制到粘贴板!
If you are using custom priorities in your Jira project, you can configure them in Red Hat Advanced Cluster Security for Kubernetes.
Procedure
- While configuring Jira integration in Red Hat Advanced Cluster Security for Kubernetes, turn on the Priority Mapping toggle. Red Hat Advanced Cluster Security for Kubernetes gets the JIRA project schema, and auto fills the values for the CRITICAL_SEVERITY, HIGH_SEVERITY, MEDIUM_SEVERITY, and LOW_SEVERITY fields.
- Verify or update the priority values based on your JIRA project configuration.
- Select Test to test that the integration with Jira is working.
- Select Create to generate the configuration.
If you get an error, follow the instructions in the Troubleshooting Jira integration section.