Jira and ServiceNow
Gardience works with Jira (Cloud, Data Center, and Server) and ServiceNow in both directions.
- Findings become issues. One click, or an automatic rule, opens a Jira issue or a ServiceNow incident for a CVE, a failed STIG rule, a CMMC requirement that is not met, or a scheduled patch run that failed. Each finding has one issue: when the finding changes (more machines, fewer machines), Gardience updates that issue instead of opening another one.
- Fixed findings close their issues. When Gardience sees a finding fixed, it adds a comment with the evidence (which run fixed it, when, who approved it, and a link back to the run) and moves the issue to done.
- Change tickets hear about their runs. A run that carries a change ticket comments on that ticket when it is approved, when it starts, and when it finishes, with each machine's result. Optionally, a run starts only while its ticket is approved.
Everything is set up under Administration > Integrations (admins only). Nothing else in Gardience ever waits on Jira or ServiceNow: if one is down, runs go ahead as usual, the page says what failed, and the next sync tries again. The one exception is the approved ticket rule described below, which fails closed on purpose.
Connect Jira
#Create the credential Gardience signs in with.
- Jira Cloud uses an account's email address and an API token. Sign in to id.atlassian.com as that account and choose Security > API tokens > Create API token.
- Jira Data Center and Server use a personal access token. In Jira, open your profile and choose Personal Access Tokens > Create token.
Use a service account that can create, comment on, and transition issues in the project, and read your change tickets if you use Jira for those.
- Open Administration > Integrations and fill in Connect Jira. Choose Jira Cloud or Jira Data Center or Server, then enter the address (for example
https://acme.atlassian.net, orhttps://jira.acme.com/jirawith a context path), the account email (Cloud only), the token, the project key (SEC for issues like SEC-12), and the issue type for findings (Task by default; Bug and Vulnerability are common choices). - Optionally map Gardience severities to your Jira priorities, add labels (
gardienceby default) and components, and name the done transition (for exampleDone). Leave a priority empty and Gardience does not set one. - Choose Save, then Test connection. The test reads the project and confirms the issue type exists in it.
Gardience calls Jira's REST API version 2, which Jira Cloud, Data Center, and Server all support.
Connect ServiceNow
#- Create a ServiceNow user with the itil role (it creates and updates incidents or problems, and reads and adds work notes to change requests), or an OAuth bearer token.
- Open Administration > Integrations and fill in Connect ServiceNow. Enter the instance address (for example
https://acme.service-now.com), the user and password (leave the user empty to use a bearer token), and whether findings become incidents or problems. - Optionally set an assignment group, the resolved state number (6 on a standard incident table), and a close code (for example
Solved (Permanently)). Without a resolved state, Gardience adds the evidence as a work note and leaves closing the record to people. - Choose Save, then Test connection.
How credentials are kept
#The token or password is write-only. It is sealed in the vault, never shown again, and bound to the address and account it was saved with. If you change the address or the account, the saved credential is discarded and you enter it again, so a saved credential can never be pointed at another server. Saving a credential is recorded in the audit log as itsm.credential_set, without the value.
Addresses must be https. For a Jira Data Center or ServiceNow server inside your network that has no HTTPS, tick Allow plain HTTP to an internal address. Gardience then accepts http only when the name resolves to a private address (10.x, 172.16 to 172.31, 192.168.x, or an IPv6 unique local address). The token crosses that network unencrypted, so use HTTPS whenever you can. Gardience never calls loopback, link-local, or cloud metadata addresses, or its own services, and it does not follow redirects.
Open issues for findings
#Choose where findings go under What Gardience does with them > Findings go to. If only one system is connected, findings go there.
- On Security > Vulnerabilities, each CVE in the list has a Create Jira issue (or Create ServiceNow incident) button, and so does a CVE you look up. The issue has the CVE, the number of machines it is on, whether CISA lists it as actively exploited and its CISA due date, the EPSS chance of exploitation, the vendor's severity, every exposed machine, and the fix (the packages or updates to install). An actively exploited CVE is critical and its due date is CISA's date.
- On Security > STIG, the card at the bottom lists every failed rule with the number of machines it fails on. Each issue names the rule, its category, and every failing machine. Its due date is 30, 90, or 180 days after the issue was opened (CAT I, II, or III), the same as on the POA&M.
- On Security > CMMC Level 2, the card at the bottom lists every requirement that is not met or partly met. Each issue carries the requirement, its SPRS points, your plan of action and milestone date (the due date), who is responsible, the objectives not met yet, and the Gardience checks that fail.
Once an issue exists, its key and status show next to the finding instead of the button. Admins and Compliance people open issues for findings. People limited to some node groups cannot, because an issue lists every machine a finding is on.
An issue that someone deletes in Jira or ServiceNow is not recreated by the sync. Choosing the button again opens a new one.
Automatic rules
#Under What Gardience does with them:
- With Open an issue for each actively exploited (CISA KEV) CVE on the fleet, once on, after each vulnerability check every CISA KEV CVE on any machine that has no issue yet gets one, up to 20 at a time. A CVE this rule opened an issue for is never opened again by the rule, even if the issue is deleted.
- With Open an issue when a scheduled patch run fails on machines on, Gardience opens one issue per schedule, listing the machines that failed and why. If the same schedule fails again, that issue gets a comment and its machine list is updated. When the schedule next succeeds, the issue is closed with that run as the evidence.
Both are off until an admin turns them on.
When a finding is fixed
#Gardience syncs every 15 minutes, and soon after each vulnerability check and STIG scan. For each linked issue it reads the issue's status, shown next to the finding and on Administration > Integrations, and checks whether the finding is fixed:
- A CVE is fixed when no machine has it and every machine it was on has been checked again since the issue was opened.
- A STIG rule is fixed when it fails on no machine and every machine it failed on has been scanned again.
- A CMMC requirement is fixed when it is recorded as met or not applicable.
- A failed schedule is fixed when its next run succeeds.
When a finding is fixed, Gardience comments on the issue with the evidence: when Gardience last checked, the run that changed those machines (its name and link, who launched it, who approved it, when it finished, and its change ticket), or a note that no Gardience run changed them. Then it moves the issue through the done transition you named (in Jira, the transition with that name, or the one that leads to a status with that name) or sets the resolved state (in ServiceNow). If the finding comes back later, the issue gets a comment saying so; reopening it is left to people.
While a finding is still open, Gardience keeps its issue current: when the machine list or the due date changes, it updates the summary, description, and due date. It never changes the priority, labels, components, or assignee after the issue is opened, so your team's triage stays.
Sync now on the Integrations page runs a sync at once.
Change tickets
#Change tickets are set up under Settings > Change tickets (see Workflows and approvals). On the Integrations page, choose where your change tickets live under Change tickets live in. A ticket like SEC-12 is a Jira issue; one like CHG0012345 is a ServiceNow change request.
With Comment on a run's change ticket on (the default), every run that carries a ticket comments on it:
- when a second person approves it (or turns it down), with who and when;
- when it starts, with who launched it;
- when it finishes, with the result, how many machines succeeded and failed, each failed machine and why, and a link to the run.
ServiceNow change requests get these as work notes. Each comment is posted once. If Jira or ServiceNow cannot be reached, the run goes ahead and the comment is tried again at each sync for a day. Each posted comment is recorded in the audit log as itsm.change.commented with the ticket number.
Only approved change tickets
#With Start a run only while its change ticket is in an approved state on, Gardience asks Jira or ServiceNow for the ticket's status when the run is requested, and again when a second person approves it in Gardience. The run starts only if the status is one of the approved statuses you list (Jira, by default Approved) or, for ServiceNow, the change request's state or approval is one of them (by default Approved, Scheduled, and Implement).
This rule fails closed. If the ticket is in another status, if it does not exist, or if Jira or ServiceNow cannot be reached, nothing starts and the person sees why, for example "Change ticket SEC-12 is In Review in Jira, not approved (Approved). Nothing was started; try again once it is approved." It applies to runs that carry a ticket; to make every change carry one, set Settings > Change tickets to Required for every change.
Status webhook (optional)
#Without the webhook, statuses update at each sync. With it, Jira or ServiceNow tells Gardience at once when a status changes. The webhook only changes the status Gardience shows next to a finding. It cannot open, change, or run anything.
- On the Integrations page, choose Make a secret and copy it. It is shown once.
- In Jira, create a webhook for the issue updated event that calls the Jira address shown on the page, and enter the secret as the webhook's secret (Jira signs each call with it). If your Jira cannot sign webhooks, add
?token=and the secret to the address instead. - In ServiceNow, create a business rule on your incident or problem table that posts JSON such as
{"number": "INC0012345", "state": "Resolved"}to the ServiceNow address shown on the page, with the secret in anX-Gardience-Tokenheader.
Making a new secret stops the old one from working.
Limits and safety
#- Calls to each system are paced to at most four a second. When Jira or ServiceNow answers that it is busy (HTTP 429 or 503), Gardience waits as long as it asks (up to 30 seconds) and tries again a few times, then leaves the rest for the next sync. A sync makes at most 300 calls.
- Every call times out after 15 seconds.
- Issues carry machine names, CVE and rule IDs, package names, and run results. They never carry a secret: text from runs is cleaned of anything that looks like a password, token, or key, and of markup that could turn a name into a link or macro.
- Project keys, issue keys, issue types, priorities, labels, components, statuses, and table names are checked before anything is saved or sent.
- Every issue opened, updated, or closed is recorded in the audit log (
itsm.issue.created,itsm.issue.updated,itsm.issue.resolved) with the issue key only, as are connections, tests, rule changes, and disconnects. - Disconnect deletes the saved credential. Linked issues stay listed, but are no longer kept in sync.