Skip to main content

Set up a private policy repository

Compare private repository hosting options and prepare the access and synchronization requirements for custom policy development.

If a repository is already available, follow Access the policy repository for user access and cloning.

Choose a Hosting Option​

OptionResponsibility
Cloudaware-managedAsk your Technical Account Manager (TAM) to create and manage the private repository.
Customer-managedYour organization creates and maintains the repository and coordinates its connection with Cloudaware.

Confirm the repository owner, Git URL, and administrator. Use Repository Structure to understand the expected layout.

Configure GitHub Service-Account Access​

For a GitHub repository, have its administrator grant access to the Cloudaware Compliance Engine service account. Confirm the required permission level with your TAM. Arrange any additional Cloudaware staff access through your TAM.

Grant developers their own repository access separately; service-account access does not provide personal clone or contribution permissions.

Non-GitHub Platforms​

For repositories hosted elsewhere including on-premises, consult your TAM for connection instructions.

The repository must be reachable by Cloudaware over the internet while its contents can remain private. Confirm the host URL, authentication method, and network requirements before proceeding.

Confirm Repository Connection and Branch​

With your TAM and repository administrator, confirm:

  • Who connects the repository to your Compliance Engine setup.
  • Which branch Cloudaware uses for evaluation.
  • How changes reach the engine and when they take effect.
  • How you will verify that an evaluation used the intended revision.

A successful clone verifies your Git access, but does not establish that the service connection is active. Follow Review policy runs when checking subsequent evaluations.

Manage Upstream Updates​

Keep your repository aligned with Cloudaware policy updates using an upstream remote. In your local clone, inspect existing remotes first:

git remote -v

If upstream is absent, add it:

git remote add upstream https://github.com/cloudaware/compliance-policies.git

Fetch changes and inspect available upstream branches:

git fetch upstream
git branch -r

Before merging, commit or stash local work and select the branch designated by your repository maintainer. Replace YOUR_WORKING_BRANCH and UPSTREAM_BRANCH below with the confirmed names:

git checkout YOUR_WORKING_BRANCH
git merge upstream/UPSTREAM_BRANCH

Review the changes, resolve conflicts, and test affected policies before submitting them through your team's review process. The upstream example uses master; confirm branch names rather than assuming your repository uses the same convention.

Merging updates locally does not activate them in the service. Follow the agreed connection and deployment process described in Deploy and maintain custom policies.