Stacks
A stack is a folder of infrastructure code, such as a Terraform folder, that Nimzo found in one of your repositories. Use the Stacks page to see all your stacks, and open one to see how it does against your policies.
Before you start
Section titled “Before you start”Nimzo finds stacks in the repositories you connect. Connect a Git provider in Git connections, then add a repository on the Repositories page. To name a stack, declare its environments, or keep folders out of the scan, see Configure a scan with nimzo.yaml.
Browse your stacks
Section titled “Browse your stacks”Select Stacks in the sidebar, under Infrastructure. The page counts your stacks and repositories, for example “3 stacks in 2 repositories”. While Nimzo reads your repositories, a banner shows Indexing your repositories with its progress.
Each stack shows:
- Its name.
- The spaces it belongs to, or No space. For spaces, see Spaces.
- Its environments, each with a dot for the status of its latest audit: Failing, Warning, Passing, Auditing or Stale. A stack with more than three environments shows the first one and the number of others.
- The repository it comes from.
Select a stack to open it.
To find a stack:
- Type in Search stacks to narrow the list by name.
- Select Filters, then pick what to filter by: Space, Status, Environment, Repository, Severity, Bundle, Language or Last audit. The Space filter shows only when you have spaces.
- Pick one or more values. Each value shows how many stacks hold it.
The filters you apply show under the search box. Change a filter between is, is any of and is not to keep or leave out the stacks that hold the values. Select Clear to remove them all. When nothing matches, the page says No stack matches these filters. or No stack matches your search.
To change how the list looks, select View options, then Cards or Table. The table has the columns Stack, Spaces, Environments and Repository. On a card, the button at the top right switches the number the card shows between Findings, Last audit and Coverage. Each card keeps its own choice.
Add a stack
Section titled “Add a stack”Select Add a stack and follow the steps on the page. Nimzo discovers the stacks of the repository you connect. With no stack yet, the page says No stacks yet.
Delete a stack
Section titled “Delete a stack”- In the table view, select the actions button of the stack, then Delete stack.
- Select Delete to confirm.
The stack and its environments are removed, but its audits stay. A repository scan can find the stack again if its code is still there.
Switch the branch, environment or stack
Section titled “Switch the branch, environment or stack”On a stack page, the header shows switchers next to the organization switcher.
- Switch stack goes to another stack. All stacks goes back to the Stacks page.
- Switch environment narrows the page to one environment, or All environments.
- Switch branch shows the stack as it is on another branch of its repository. The default branch is marked default. Select Refresh branches to ask your Git host for the current branches. A stack from a registry has no branch, so the switcher does not show.
The branch and the environment you pick apply to Overview, Findings and Audits. A stack page also opens a menu of its own with Overview, Findings, Pull requests and Audits. Select Back to Stacks to leave it.
Overview
Section titled “Overview”The Overview page opens when you select a stack. Under the stack name, the header shows its repository, its number of branches, environments and bundles, and when it was last audited. Outdated means the last audit read an older commit than the head of the branch. Select Run audit to start an audit.
The page holds these sections:
- Environments lists each environment with its kind, its variables file and when it was last audited, then the findings of that audit, or Audit failed. Without an environment, the section says to add a
.tfvarsfile to the stack and scan the repository again. - Health shows Open findings, today and over the last 30 days, by severity. Until Nimzo computes a grade, it says No health grade yet.
- Policy parameters sets the values the policies read when they check this stack. For the organization values, see Governance settings.
- Policy enforcement sets what a failed check does to a pull request on this stack. It follows the mode of your organization until you override it. Select Remove override to go back.
To read the stack’s facts, select the side panel button in the header. About shows the language, repository, path, branch, which severities the stack Blocks on, and its dates. Relations lists the stacks it Uses, the Modules it calls and the stacks Used by others. Select a related stack to open it.
Run an audit
Section titled “Run an audit”- Select Run audit.
- Under Environments, check the environments to run. By default, each runs on the latest commit of its own branch. A stack without environments runs on the latest commit of its branch, without environment variables.
- Check the bundles that will run. Add more with Add bundles, or use Advanced to give a Git ref or Additional bundles for this run only.
- Select Run audit. Nimzo shows Audit started with a View button.
Findings
Section titled “Findings”The Findings page lists the open findings of the stack on the branch and environment you picked. It has two tabs.
- Findings lists each failing policy with the columns Finding, Where, First detected and Open. When a finding has a suggested fix, a Fix status column shows too. Expand a row to see its resources, and select one to open its details: why it fails, the value found and the value expected, the history, and a suggested fix when one exists.
- Runs lists the audits and pull request checks of the stack with the columns Run, Where, Source, Checked and Result.
Pull requests
Section titled “Pull requests”The Pull requests page lists the pull requests of the stack and the result of the latest check Nimzo ran on each. Nimzo checks a pull request when it changes the stack. The columns are Pull request, State, Result, Author, Commit, Runs and Last run.
Select Filters, then State, to show only Open, Merged or Closed pull requests. Select a row to open the result of its latest check. A pull request Nimzo never checked has no result to open. Without any, the page says No pull request yet.
Audits
Section titled “Audits”The Audits page lists every audit run on the stack, newest first, on the branch and environment you picked. The columns are When, Environment, Status, Findings, Commit and By. An audit of the whole stack shows Whole stack. Select a row to read the report of the audit. Select Run audit to start another.
Without any, the page says No audit yet. The page reads the newest 100 audits, so an older audit may not show.
Troubleshooting
Section titled “Troubleshooting”- “Could not load your stacks.” Reload the page. If it stays, check your connection.
- “Could not load this stack. Check your connection and try again.” Select Retry.
- “Could not load the audits of this stack.” Select Retry.