> ## 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 domain 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 ConfigMaps

> Where to store Kubernetes ConfigMaps in the applications-live repository, how they differ from Secrets, and how to reference them from connector values.

The applications-live repository for your installation supports Kubernetes ConfigMaps as a separate resource type next to Secrets. Store non-sensitive configuration, such as endpoints, feature settings, or mapping files, in a ConfigMap. Store sensitive values in a Secret encrypted with Secrets Operations (SOPS).

## ConfigMap or Secret

The following table compares ConfigMaps and Secrets.

| Property | ConfigMap | Secret |
| :- | :- | :- |
| Content | Non-sensitive configuration | Credentials, tokens, certificates, and other sensitive values |
| Path | `runtimes/<env>/configmaps/` | `runtimes/<env>/secrets/` |
| Accepted `kind` | `ConfigMap` only | `Secret` only |
| Format in the repository | Plain YAML | SOPS-encrypted YAML |

> [!WARNING]
>
> Don't put sensitive values in a ConfigMap. You store ConfigMaps as plain YAML. Store sensitive values in a SOPS-encrypted Secret instead.

## Path and kind rules

Place ConfigMap manifests under `runtimes/<env>/configmaps/`, where `<env>` is the runtime, such as `dev` or `test`:

```text theme={"system"}
runtimes
└── <env>
    ├── apps
    ├── configmaps    # ConfigMap manifests (plain YAML)
    ├── secrets       # SOPS-encrypted Secret manifests
    └── values
```

The following rules apply:

* The `configmaps/` folder accepts only resources with `kind: ConfigMap`.
* The `secrets/` folder accepts only resources with `kind: Secret`.
* Use the `.yaml` or `.yml` file extension.
* Place manifests directly in the `configmaps/` folder. Argo CD doesn't sync subfolders.

The pull request check for the `applications-live` repository fails if the `configmaps/` folder contains anything other than a ConfigMap, or if the `secrets/` folder contains a ConfigMap. If the check fails, don't merge the change. Move the file to the correct folder or correct its `kind`, and then push again.

Argo CD syncs the `configmaps/` folder automatically with pruning and self-healing. If you remove a file from the folder, Argo CD deletes the ConfigMap from the cluster. If you change a ConfigMap directly in the cluster, Argo CD reverts the change.

If you need details about how a specific installation enforces these rules, contact your Managed Hosting team representative.

## Create a ConfigMap

As with Secrets, don't set the `metadata.namespace` field in the manifest. The platform creates the ConfigMap in the default namespace of the runtime. For more information about namespaces, see [Deployment namespace](https://agenticbanking.backbase.io/platform/developer-guides/run.md#deployment-namespace).

In the following minimal example, you save the manifest as `runtimes/test/configmaps/my-connector-config.yaml`. The name and keys are examples:

```yaml theme={"system"}
apiVersion: v1
kind: ConfigMap
metadata:
  name: my-connector-config
data:
  LOG_LEVEL: "INFO"
  settings.properties: |
    feature.example.enabled=true
```

## Use a ConfigMap in a connector

Reference the ConfigMap by its `metadata.name` from the workload that runs in the same namespace. The following snippets show the standard Kubernetes mechanisms. How you pass them through the connector's values depends on the chart, so check the chart's values reference for the matching fields.

To pass a single key as an environment variable, use `configMapKeyRef`:

```yaml theme={"system"}
env:
  - name: LOG_LEVEL
    valueFrom:
      configMapKeyRef:
        name: my-connector-config
        key: LOG_LEVEL
```

To pass all keys as environment variables, use `envFrom`:

```yaml theme={"system"}
envFrom:
  - configMapRef:
      name: my-connector-config
```

To mount keys as files, define a volume in the pod spec and mount it in the container spec:

```yaml theme={"system"}
# Pod spec
volumes:
  - name: connector-config
    configMap:
      name: my-connector-config
# Container spec
volumeMounts:
  - name: connector-config
    mountPath: /etc/connector-config
    readOnly: true
```

Kubernetes updates mounted ConfigMap files over time, but it doesn't update environment variables in a running pod. It also doesn't update files that you mount with `subPath`. Restart the workload after you change a ConfigMap that you consume as environment variables or through a `subPath` mount.

## Migrate ConfigMaps out of `secrets/`

If you previously stored a ConfigMap under `runtimes/<env>/secrets/`, move it:

1. Move the manifest to `runtimes/<env>/configmaps/`.
2. Recreate the manifest as plain YAML with the same keys and values. Confirm that the manifest contains no sensitive values. If you can't recreate the manifest, contact your Managed Hosting team representative.
3. Remove any manually set `metadata.namespace`.
4. Keep the same `metadata.name` so that references continue to work.
5. Open a pull request and check the sync status in Argo CD after the merge.

For more information about managing Secrets, see [Configure connectors](https://agenticbanking.backbase.io/banking-os-connectors/configure-connectors.md#prepare-the-runtime).
