Describe the bug Fetching configs using rest API stopped and does not returnin propertySources but an empty array, it literally did work this morning, and I have not modified the server since yesterday, server restarts do not help

I double checked and the repository is being cloned, and it just does not list the properties

  • jdk17
  • spring boot 3.2.6
  • cloud 2023.0.1

Sample

curl localhost:8888/my-command/dev or curl localhost:8888/my-command/dev/main returns the latest commit info but no property sources

{
    "label": null,
    "name": "my-command",
    "profiles": [
        "dev"
    ],
    "propertySources": [],
    "state": null,
    "version": "803cf2c86599e2f12f4bd9b69231207c5b078188"
}

server:
  port: 8888

management:
  endpoints:
    web:
      exposure:
        include: health,info

spring:
  application:
    name: config.server
  cloud:
    config:
      server:
        git:
          uri: git@ssh.gitlab/Example/app-configs.git
          strictHostKeyChecking: false
          ignoreLocalSshSettings: true
          search-paths: {application}
          default-label: main
          clone-on-start: true
          force-pull: true
          try-master-branch: false
          basedir: repo
          private-key: |

Repostitory files

├── my-command
│   ├── application-DEV.yaml
│   └── application-SBX.yaml

Comment From: ryanjbaxter

Can you provide a complete, minimal, verifiable sample that reproduces the problem? It should be available as a GitHub (or similar) project or attached to this issue as a zip file.

Comment From: sqilz

I have changed the repository to a public github one with configs, that does not need pk configuration and can still reproduce demo.zip

Comment From: ryanjbaxter

The placeholder in search-paths needs to be quoted https://docs.spring.io/spring-cloud-config/docs/current/reference/html/#_placeholders_in_git_search_paths