ComplianceAsCode / auditree-framework

The Auditree framework tool to run compliance control checks as unit tests.
https://auditree.github.io/
Apache License 2.0
59 stars 23 forks source link

Implement extra lockers. #138

Closed smithsz closed 2 years ago

smithsz commented 2 years ago

Allows multiple lockers to be configured.

What

You can configure multiple remote lockers using the extra configuration, for example:

  "locker": {
    "repo_url": "https://github.com/foo/evidence-locker",
    "extra": [
      {
        "repo_url": "https://github.com/foo/evidence-locker-bar"
      },
      {
        "repo_url": "https://github.com/foo/evidence-locker-baz"
      }
    ]
  }

The extra lockers are only used when checking evidence. If evidence is not found in the primary locker then Auditree will look in any extra lockers that have been configured. Only the primary locker can be used to store new evidence.

Why

This is useful if you're running lots of Auditree agents and storing evidence in multiple lockers. It allows you to check all evidence centrally.

Test

Tested locally.

Context

Closes https://github.com/ComplianceAsCode/auditree-framework/issues/134.