Configuration store monitoring with Topologix
Infrastructure & Networking
Where Spring Boot applications keep their configuration — a Spring Cloud Config Server, or the Git repository behind it on GitLab, GitHub or Bitbucket. Topologix reads what each app is configured to connect to (databases, brokers, HTTP services) and draws it in Topology as a declared link from the app's workload to the database instance or service it names — dotted until network flows show the traffic, then a normal call edge. Only the endpoint (kind, host, port, database name) and the property KEY (for example spring.datasource.url) are kept: every value is parsed where it is read and dropped, and keys that look like credentials are never read. Nothing is ever written to the store.
Requirements
- A Spring Cloud Config Server reachable over HTTP(S) with a read-only user (or a bearer token) — or a Git config repository with a read-only token (GitLab
read_repository; GitHub contents read; Bitbucket repository read). - Reach from the Topologix server, or from a proxy agent picked on the integration (proxy 1.346.0 or later — the form says so). With a proxy the values never leave your network: the proxy parses them and sends only the endpoints and key names.
- To place the links on the right workload: the Kubernetes integration's Declared endpoints switch on (it reports each workload's
SPRING_APPLICATION_NAME/SPRING_PROFILES_ACTIVE/ config server host — names, never other values), or an app map row per app.
1 · Set up the integration
- Open the Integrations pageClick Integrations in the toolbar and pick Configuration store from the catalogue.
- Pick the storeSpring Cloud Config Server: its URL, the read-only user + password (or a bearer token), optionally the Apps always read and a Label. Git config repository: the Git host (GitLab, GitHub, Bitbucket), the API URL (empty for gitlab.com / api.github.com / api.bitbucket.org), the project (
group/repo) or repository (owner/repo), the branch and the token. The credential is sealed at rest. - Profiles, interval, proxyProfiles (default prod — a workload's own
SPRING_PROFILES_ACTIVEwins), Read every (default 360 minutes, 30–1440) and Read by (the server or a proxy). The In effect box shows every value and whether it is set here or the default. - Create, then verifyClick Create, reopen it and click Test — one read of one app (Config Server) or the tree and the first matching file (Git), reporting counts only: keys seen, endpoints found, keys skipped by the credential filter. Never a value.
2 · Add it to a flow
- No flow sourceA configuration store has no metric source. A job reads it at most every interval (and re-maps the cached entries every 15 minutes, so a new workload or app map row shows quickly); Read now on the integration reads it at once.
- Map the appsReopen the integration: Configuration read shows the last read, the entries per app (key names and endpoints) and the Unmapped apps. Pick the workload, catalogue service or server / VM each one configures and click Save mapping (an inline Undo follows) — or take the AI's suggestion (Accept, Accept all ≥ X; the confident ones are applied for you and say mapped by AI with an Undo). No link is drawn from a guess: every AI mapping is a row of the app map you can change.
- See the linksIn Topology the app's service gets a link to each database / broker / service its configuration names; the link's details say declared in <store> (<origin>) with the property key — the same endpoint declared in the pod's environment too is one link with both sources.
3 · What is read — and what never leaves
Every value is parsed in place (the same parser as the Kubernetes / Docker declared endpoints) and dropped. The answer carries apps, profiles, origins (config-server:<app>/<profiles>, git:<path>), property key names and the parsed endpoints — nothing else is stored, logged, sent to the AI or put into an error.
The credential filter
A key is skipped unread when the full dotted key, or any one of its segments, names a credential: password / passwd / pass / pwd / secret / token / key / credential / auth / jaas / sasl / salt, and private / signing / cert / pem / jwt / hmac / cipher / cookie / licence / signature / nonce / otp; a segment that is exactly pw or encrypt (anywhere in the key); every value starting {cipher}. Userinfo in a URL (user:pass@), query strings and paths are stripped by the parser on top of that.
Placeholders
${db.host}:5432 is resolved one level, only from the same answer / file, and only when the referenced key passes the credential filter and holds a host, a port or a database name. ${x:default}, ${random.*} and ${vcap.*} are never resolved — such a value yields nothing.
Errors
A failure is reported as HTTP <status> on <path>, unreachable, too large or a TLS sentence — never the store's response body.
4 · Per store
Least privilege: read and list only, on the configuration that matters.
Spring Cloud Config Server
One GET /{app}/{profile,…}[/{label}] per app (a label with / is sent as (_)); /actuator, /encrypt and /decrypt are never called. A Config Server has no list of apps and answers 200 for any name with the shared application* sources, so an answer counts as the app's own only when a property source names …/{app}.yml or …/{app}-{profile}.yml; otherwise it is the shared configuration. The apps read are the Apps always read, the Spring names of your workloads, the app map — and, with Also try the workloads' own names (off by default), up to 100 workload names a pass, a name that answered only the shared configuration not asked again for 24 h. At most 300 reads a pass, 4 at a time, 256 KB each. With a Git backend set refreshRate on the server, so each GET does not run a git fetch.
Config Server: a read-only user
# application.yml of the Config Server (Spring Security)
spring:
security:
user:
name: topologix-reader
password: <a long random password — enter it above>
# recommended for a Git backend: do not git-fetch on every request
spring.cloud.config.server.git.refreshRate: 60
# Topologix calls only GET /{app}/{profiles}[/{label}] — never /actuator, /encrypt or /decryptGit config repository
The tree of the branch (GitLab paged, GitHub git/trees?recursive=1, Bitbucket the ref's commit and its file list), then the files matching the paths (default **/application*.y*ml, **/*-*.y*ml, **/*.properties, **/values*.yaml, plus {app}.yml of every known app; dot-folders never). Only changed files are read again — an unchanged repository costs its tree call. At most 2,000 files of 256 KB and 32 MB a pass. App and profile come from the file name as Spring Cloud Config lays them out: {app}-{profile}.yml, {app}.yml (every profile), application[-{profile}].yml (shared by every app), Helm values[-{profile}].yaml (the chart folder is the app); a YAML document's own spring.config.activate.on-profile wins. A folder-per-app layout names the app from its folder: …/{profile}/{app}/application[-{profile}].yml (e.g. configs/prod/account-profile-adapter/application.yml → app account-profile-adapter, profile prod; the file's own -{profile} wins over the folder) and …/{app}/{profile}/application.yml. A shared application[-{profile}].yml inside a profile folder applies to that profile only (configs/prod/application.yml → shared, profile prod; configs/application.yml stays shared for every profile). Folders like configs/, deploy/, overlays/ or a source tree's src/main/resources/ never name an app, and Spring's own {app}/application.yml search path with an app nobody declared and no profile folder stays shared (list the app under Apps always read to claim it). Only the name is derived — a workload still needs a confirmed match (its Spring name or the app map). A proxy-read store needs proxy 1.349.0 or later for this; an older proxy keeps filing these files under the shared configuration, and the integration's notes say so.
GitLab: a project access token
Settings → Access tokens → a project access token
Role: Reporter (or Guest on a public project)
Scope: read_repository onlyGitHub: a fine-grained token
Repository access: only the config repository
Permissions → Repository → Contents: Read-only (Metadata: Read-only is implied)
No other permission.Bitbucket: a read-only token
Bitbucket Cloud: a repository access token with scope repository (read) — or an app password with Repositories: Read (enter its username too)
Bitbucket Server / Data Center: an HTTP access token with Repository read5 · Which workload an app configures
Each app is mapped to the workloads it configures; the first rule that names one wins, and an app nothing names is listed under Unmapped apps — never guessed.
The rules
| Rule | Matches | Shown as |
|---|---|---|
| 1 · The app map | A row you saved on the integration: app → a Kubernetes workload, a catalogue service, or a server / VM (for an app that runs outside Kubernetes — the links then start at the machine). A row whose workload, service or server is gone leaves the app unmapped with the reason — it never falls through to the rules below | mapped here |
| 2 · The Spring name | A workload whose SPRING_APPLICATION_NAME / SPRING_CLOUD_CONFIG_NAME is the app; for a Config Server, a workload pointing at another config server is not its client | Spring app name (+ this config server) |
| 3 · The name | A workload named like the app, else a catalogue service of that name (case-insensitive; - _ . equal) | same name |
| 4 · The near name | The same after ONE affix is stripped from ONE side (the other bare): -service -svc -app -api -server -backend -deployment -prod or prod- (never -v2) — payments ↔ payments-api. Workloads first, then catalogue services; only when exactly one target name matches and no other shares the stem | near name |
| 5 · AI | For the apps still unmapped: the store owner's AI (the analysis role) is shown each app's name, profiles, a few property KEY names and its endpoint hosts — never a value — and the owner's ≤ 15 most similar workloads / catalogue services / servers / VMs (a server: its name, OS family and addresses), and proposes one each with a confidence. At or above the threshold (default 90 %) it is applied at once; below it waits for Accept / Reject / Accept all ≥ X. Every AI mapping is an app map row (rule 1) you can change; Undo removes it and the pair is never proposed again | mapped by AI (auto-applied) / mapped by AI, accepted by <name> |
AI suggestions — when and how much
A run asks the AI after a read (or a re-map) that leaves apps unmapped AND changes which apps are unmapped without a proposal yet, or when you press Suggest with AI (once per 10 minutes; not while a run is in progress). At most 60 apps a request and 4 requests a run; every request counts against the AI pack. The knobs sit on the panel, each with its value and whether it is set here or the default: Auto-apply (on), Auto-apply threshold (90 %), AI requests per day per integration (4; 0 = no AI). The prompt is redacted with your organisation's rules for the AI path. No AI provider, or the AI pack used up: the panel says so and the rules above still run. A run whose model failed (or whose results could not be stored) still counts its requests and is not repeated on every pass: the next automatic run waits until the set of unmapped apps changes — Suggest with AI asks again at once. A proposal whose target disappears (the workload, service or server is gone) is withdrawn by the next run, and accepting one is refused; a proposal whose target another app already maps is never applied automatically. A saved mapping table names the version it was based on — a save after an AI mapping landed meanwhile is refused with “changed meanwhile”, never lost.
Profiles and shared configuration
The profiles are the workload's SPRING_CLOUD_CONFIG_PROFILE / SPRING_PROFILES_ACTIVE (a later profile wins, as in Spring), else the app map row's, else the integration's. From Git, a profile file wins over the app's plain file; the shared application*.yml applies only to keys the app has no value of its own for. A Config Server already merges the shared sources into the app's answer.
Good to know
- The links are owner-scoped: a store's entries map only onto workloads, services and servers / VMs of the same owner, and the app map refuses a workload of a cluster (or a server) another owner holds; the pickers and the AI suggestions list only what you may use.
- A store's endpoints are its integration's addresses for Hide addresses outside my organisation, like the Kubernetes declared endpoints — the addresses its hostnames resolved to included.
- An internal service name in a property (
http://game-stat-service,game-stat-service.core.svc.cluster.local) that exactly one catalogue service carries links to that service (matched by name: … = the catalogue service …), like the Kubernetes declared endpoints; the panel shows the owner's Internal names → catalogue service switch (default on) with its value and source. - Hostnames (
internal-prod-kafka-1.corp.example:9092) are resolved on the store's proxy (proxy ≥ 1.350.0) after each read and linked to what their addresses name — the same rules as the Kubernetes declared endpoints. The panel lists each hostname: resolves to …, does not resolve, needs proxy ≥ 1.350.0, or — for a store the Topologix server reads itself — resolve names through a proxy. - Vault, AWS SSM Parameter Store and AWS Secrets Manager are planned as the next phase.
More Infrastructure & Networking integrations
See it on your own infrastructure
Book a demo and we will walk you through Topologix with your systems in mind: on our cloud, or self-hosted in your own network.