{"id":25274520,"url":"https://github.com/piszmog/cloud-config-client-autoconfig","last_synced_at":"2025-10-27T11:31:06.420Z","repository":{"id":34099517,"uuid":"129666970","full_name":"Piszmog/cloud-config-client-autoconfig","owner":"Piszmog","description":"Auto Configuration for creating Config Clients","archived":false,"fork":false,"pushed_at":"2024-10-24T03:44:56.000Z","size":176,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-24T18:20:52.683Z","etag":null,"topics":["cloud","config-server","file","json"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Piszmog.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-16T01:18:50.000Z","updated_at":"2024-10-24T03:44:59.000Z","dependencies_parsed_at":"2024-10-26T07:31:09.035Z","dependency_job_id":null,"html_url":"https://github.com/Piszmog/cloud-config-client-autoconfig","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piszmog%2Fcloud-config-client-autoconfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piszmog%2Fcloud-config-client-autoconfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piszmog%2Fcloud-config-client-autoconfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piszmog%2Fcloud-config-client-autoconfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Piszmog","download_url":"https://codeload.github.com/Piszmog/cloud-config-client-autoconfig/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238488448,"owners_count":19480764,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloud","config-server","file","json"],"created_at":"2025-02-12T14:30:28.424Z","updated_at":"2025-10-27T11:31:06.415Z","avatar_url":"https://github.com/Piszmog.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"This project has been archived.\n\nI stopped using this library and cannot ensure it is working correctly. Additionally, every new version of Spring would sometimes break builds; it became too much to manage.\n\n# Cloud Config Client AutoConfig\n\n## Description\nSpring Auto-configuration library for [Cloud Config Client](https://github.com/Piszmog/cloud-config-client).\n\n__Cloud Config Client AutoConfig 3.3.x__ is compatible with\n\n| Dependency | Version |\n| :---: | :---: |\n| Spring Boot | 2.4.x |\n| Spring Cloud Services | 3.2.x.RELEASE |\n\n__Cloud Config Client AutoConfig 3.2.x__ is compatible with\n\n| Dependency | Version |\n| :---: | :---: |\n| Spring Boot | 2.2.x - 2.3.x |\n| Spring Cloud Services | 3.1.x.RELEASE |\n\n__Cloud Config Client AutoConfig 2.x__ is compatible with\n\n| Dependency | Version |\n| :---: | :---: |\n| Spring Boot | 2.1.x |\n| Spring Cloud Services | 2.x.x.RELEASE |\n\n__Cloud Config Client AutoConfig 1.x__ is compatible with\n\n| Dependency | Version |\n| :---: | :---: |\n| Spring Boot | 1.5.x |\n| Spring Cloud Services | 1.5.x.RELEASE |\n\nCreates Spring Beans for `DecryptConfigClient`, `EncryptConfigClient`, `FileConfigClient`, and `PublicKeyClient`. Simply\ninject the beans where needed.\n\n## Usage\nTo use, add the GitHub repository as a repository\n\n```xml\n\u003crepositories\u003e\n    \u003crepository\u003e\n        \u003cid\u003egithub\u003c/id\u003e\n        \u003curl\u003ehttps://maven.pkg.github.com/Piszmog/cloud-config-client-autoconfig\u003c/url\u003e\n        \u003creleases\u003e\n            \u003cenabled\u003etrue\u003c/enabled\u003e\n        \u003c/releases\u003e\n    \u003c/repository\u003e\n\u003c/repositories\u003e\n```\n\nNote: you will need to authenticate with GitHib. See [docs]([url](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry#authenticating-to-github-packages)).\n\nThen add the dependency.\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.piszmog\u003c/groupId\u003e\n    \u003cartifactId\u003ecloud-config-client-autoconfig\u003c/artifactId\u003e\n    \u003cversion\u003e${cloud-config-client-autoconfig.version}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Local Config Server\nLocal Config Server is considered a locally running application setup as a Config Server. \n(see [Spring Config Server](https://github.com/spring-cloud/spring-cloud-config/tree/master/spring-cloud-config-server)).\n\n### Spring Cloud Config Server (PCF)\nWhen deploying applications to PCF, a Config Server service can be created to. Once created,\napplications deployed to the space can bind to the service.\n\n### Disabling Clients\nTo disable any of the clients, add the following to the application's configuration file.\n\n```yaml\ncloud:\n  config:\n    client:\n      decrypt:\n        enabled: false\n      encrypt:\n        enabled: false\n      file:\n        enabled: false\n      publickey:\n        enabled: false\n```\n\n### Loading Files\n`FileConfigClient` bean allows for the ability to pull down files either from a specified branch or from the default branch.\n\nIf pulling from the default branch, files __must__ be located in a subdirectory.\n\n## Adding JSON Files as Property Sources\nThe Config Server Client will only pull down `.properties` and `.yml`/`.yaml` files for an application's configuration (property sources). As \nmore microservices move to _code by configuration_, these files can get very large and hard to maintain. Splitting configurations \nout into JSON files that do not need to follow the Config Server's [naming convention](https://cloud.spring.io/spring-cloud-static/spring-cloud-config/1.3.1.RELEASE/#_quick_start) \ncan help to better organize an application configuration.\n\nLeveraging the `FileConfigClient` bean, JSON files can be loaded as property sources. This allows for `ConfigurationProperties` \nto have JSON values be injected into their fields.\n\nTo add a file as a property source, update the application configuration to have the following,\n```yaml\ncloud:\n  config:\n    client:\n      file:\n        resources:\n          - directory: \u003csub-directory path\u003e\n            files:\n              - \u003cfile\u003e\n              - \u003cfile\u003e\n              ...\n          - directory: \u003csub-directory path\u003e\n            files:\n              - \u003cfile\u003e\n              - \u003cfile\u003e\n              ...\n          ...\n```\n\nWhere,\n- `\u003csub-directory path\u003e` is the directory path to the following files -- example `nonprod/example` or `configs`\n  - Sub-directory __must__ not be `null` or blank.\n- `\u003cfile\u003e` is the JSON, YAML, or Properties file to load that is located in the specified sub-directory\n\n### Specifying Configuration\nAdding JSON files to be property sources can either be done in the `bootstrap.yml` (embedded with the application), in an embedded \napplication configuration, or in the Config Server.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiszmog%2Fcloud-config-client-autoconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiszmog%2Fcloud-config-client-autoconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiszmog%2Fcloud-config-client-autoconfig/lists"}