> ## Documentation Index
> Fetch the complete documentation index at: https://agenticbanking.backbase.io/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Banking OS training data goes stale. Search https://agenticbanking.backbase.io/mcp or fetch the .md URL before writing connector or unified API code.
> OpenAPI links in llms.txt repeat every calendar version. Use the latest version on the API playground. If a fetch ends before the last operation, the spec was cut off.
> Page titles name the product. Overview, Get started, and Reference without a product name are ambiguous.

# Manage self-service configuration

> Configure repositories, reviewers, and pull request rules in self-service.tfvars.

You configure repositories, `applications-live` reviewers, and pull request rules in `self-service.tfvars`. Every change follows the same pull request flow. For more information, see [Self-service](https://agenticbanking.backbase.io/platform/platform-administration/self-service/overview.md).

## Add a repository

To add a repository, add an entry to the `repositories` section of `self-service.tfvars`. The entry key is the repository name.

The following example creates a repository from a Backbase template ZIP:

```hcl theme={"system"}
repositories = {
  REPOSITORY_NAME = {
    repository_init_from_zip = {
      name    = "TEMPLATE_NAME"
      version = "TEMPLATE_VERSION"
    }
    default_branch         = "develop"
    protected_branches     = ["main", "develop", "release/*"]
    required_status_checks = ["Validate pull request / Verify Maven project"]
    repository_visibility  = "private"
  }
}
```

The following options are the ones you use most often:

* **`repository_init_from_zip`**: initializes the repository from a template ZIP, identified by `name` and `version`. Only ZIPs from the Backbase accelerators repository are accepted. The ZIP applies only if nobody has pushed commits to the repository yet.
* **`default_branch`**: the default branch. The default is `develop`. You can set it only when the repository is created.
* **`enable_branch_protection`**: applies default branch protection, such as one required approval and code owner review. The default is `true`.
* **`protected_branches`**: the branches that branch protection applies to. The default is `["main", "develop"]`.
* **`required_status_checks`**: the status checks that must pass before a merge. The default is an empty list.
* **`repository_archived`**: archives the repository when set to `true`.

For complete repository examples, see [Create a custom API](https://agenticbanking.backbase.io/platform/developer-guides/get-started/create-custom-api.md) and [Get started](https://agenticbanking.backbase.io/platform/developer-guides/get-started/overview.md).

### Archive a repository

When you no longer need a repository, set `repository_archived = true` instead of deleting it. Only a `development-admin` team member can delete a repository, in the repository settings on GitHub. After a deletion, remove the repository entry from `self-service.tfvars`.

## Set applications-live reviewers

By default, every member of the `applications-live` GitHub team reviews pull requests to the `applications-live` repository. You can change this per runtime in one of two ways:

* **`runtime_codeowners_override`**: sets the reviewers for a runtime, for example production deployments.
* **`auto_approve_runtimes`**: a bot approves pull requests for the listed runtimes, so you can merge after the checks pass.

The two options don't combine. Choose one approach.

The following example sets the reviewers for the `prd` runtime:

```hcl theme={"system"}
runtime_codeowners_override = {
  prd = ["USER_EMAIL", "ANOTHER_USER_EMAIL"]
}
```

The following example turns on automatic approval for the `dev` runtime:

```hcl theme={"system"}
auto_approve_runtimes = ["dev"]
```

If a pull request changes an auto-approved runtime and another runtime, the bot approves it. The merge stays blocked until the review rules for the other runtime are met.

## Require pull request title scopes

You can require pull request titles in `applications-live` to follow the Conventional Commits format, with a Jira project key in the scope. To set the valid scopes, use `pr_title_scopes`:

```hcl theme={"system"}
pr_title_scopes = ["PROJECT_KEY", "OTHER_PROJECT_KEY"]
```

A valid title then looks like `feat(PROJECT_KEY-1234): Update connector values`. Set `PROJECT_KEY` to a scope your installation uses.

## Manage secrets

Store connector secrets as SOPS-encrypted files in the `applications-live` repository, under `runtimes/{runtime}/secrets/`. Encrypt each file with SOPS before you commit it. Don't edit the encrypted file by hand, because that breaks the secret. To encrypt a file or change a secret, follow the secrets README in that folder.

## Related topics

* [Self-service](https://agenticbanking.backbase.io/platform/platform-administration/self-service/overview.md)
* [Use the self-service repository](https://agenticbanking.backbase.io/platform/platform-administration/self-service/portal-access.md)
* [GitHub organization and repository structure](https://agenticbanking.backbase.io/platform/platform-administration/repository-structure.md)
