{"id":20678319,"url":"https://github.com/codecentric/net_core_admin","last_synced_at":"2025-11-08T06:05:21.992Z","repository":{"id":144965349,"uuid":"248760943","full_name":"codecentric/net_core_admin","owner":"codecentric","description":null,"archived":false,"fork":false,"pushed_at":"2020-06-19T11:29:15.000Z","size":161,"stargazers_count":3,"open_issues_count":12,"forks_count":0,"subscribers_count":3,"default_branch":"development","last_synced_at":"2025-03-10T19:28:30.617Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codecentric.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.TXT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-20T13:22:22.000Z","updated_at":"2024-09-20T02:25:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"5f05cb97-fb4e-4ecb-8c94-ec77b710efe3","html_url":"https://github.com/codecentric/net_core_admin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codecentric/net_core_admin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecentric%2Fnet_core_admin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecentric%2Fnet_core_admin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecentric%2Fnet_core_admin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecentric%2Fnet_core_admin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codecentric","download_url":"https://codeload.github.com/codecentric/net_core_admin/tar.gz/refs/heads/development","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecentric%2Fnet_core_admin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260838648,"owners_count":23070610,"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":[],"created_at":"2024-11-16T21:19:43.438Z","updated_at":"2025-10-26T18:37:21.545Z","avatar_url":"https://github.com/codecentric.png","language":"C#","readme":"# NetCoreAdmin\n\nThis package adds the abillity to use Spring Boot Admin with a Asp.Net Core Server.\n\n## Usage\n\n1. Install Package\n1. Add in ConfigureServices:\n\n```C#\nservices.AddNetCoreAdmin(Configuration);\n```\n\n1. Run Spring Boot Admin, e.g. in a Docker Container\n\n```bash\ndocker run -d -p 1111:1111 -e SPRING_BOOT_ADMIN_TITLE='SB Admin' -e SPRING_BOOT_ADMIN_SECURITY_ENABLED=false --name spring-boot-admin slydeveloper/spring-boot-admin:latest\n```\n\n1. Configure your application so that in can talk to SBA:\n\nConfigure in appsettings.json OR Code\n\n```json\n \"NetCoreAdmin\": {\n    \"springBootServerUrl\": \"http://localhost:1111/instances\",\n    \"retryTimeout\": \"0:00:10\",\n    \"Application\": {\n      \"BaseUrl\": \"http://host.docker.internal:5000\"\n    }\n  }\n```\n\nNote that host.docker.internal is required on Windows hosts, otherwise it should be localhost:1111\n\n1. Launch your application\n1. Navigate to SBA, you should be able to see your server\n\n## Issues\n\nNote that a lot of endpoints are exposed at /actuator/* - always secure them otherwise sensitive data WILL leak!.\n\n## Implemented Endpoints\n\n### Health\n\nPer default, we respond with an \"OK\" Health result.\nYou can customize this using [Health Checks](https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/health-checks?view=aspnetcore-3.1)\n\nPlease note that we use an internal Health check url, not the one configured by HealthCheck due to the need to conforms to Actuators Data format.\n\n### Beans\n\nThis maps to the Services registered via ASP.NET Cores DI.\nThe displayed NAME is the concrete type, e.g. a DataProvider\nThe Alias contains the Type we registered for, e.g. IDataProvider.\n\nIn case of Lists of objects, a \" | 1\" is appended, since Actuator does not know of this concept.\nThe Type might not be accurate, especially for Factories.\nDue to the DI limitations, it is not possible to show Dependencies.\n\n### LogFile\n\nAllows you to view the log of your app.\nDue to the limitations of Spring Boot Admins existing contract, it is needed to write an actual file with the log file somewhere.\nThe location of this file can be set through the configuration\n\n```json\n\"logFilePath\": \"C:\\\\dev\\\\nactuator\\\\NactuatorSample\\\\NactuatorSample\\\\log20200204.txt\"\n```\n\nOR implement a `ILogFileLocationResolver` and register it in the DI.\nThe latter is usually more appropiate for Serilog, because Serilogs FileSink regularly changes the name of the file. See this Sample for an Implementation.\n\n### Mappings / Routes\n\nThis returns a list of all registered routes.\nHeaders and Params are currently not supported\nThe infrastructure relies heavily on the same Attributes Swashbuckle uses (e.g. Consumes/Produces and Header).\nIn the future, we could probably leverage Swashbuckle itself, e.g. to get the headers, params and returns.\n\n### ThreadDump\n\nThis returns the ThreadDump of the running process.\nHERE BE DRAGONS!\n.Net does not have the capabillity of Java to get the running processes at Runtime. I am using Debugging Interfaces to obtain this info, but this can crash / introduce weird bugs etc.\nTherefore, you need to allow the ThreadDump explicity - ideally only on DEV/INT never on Production.\n\n```json\n\"enableThreadDump\": true\n```\n\n## Todo\n\n1. Add more endpoints\n\n    - Loggers\n    - Info\n    - Components( and move them off Environment?)\n    - Metrics\n    - Audit Log?\n    - Caches?\n1. Doku\n1. Auth\n1. Deregister\n1. Get Config Validation working\n1. Single-Property and EDIT for Env\n1. Swashbuckle for Mappings\n1. Move Threaddump to extra package\n\n\nVOR RELEASE:\nFlexible Implementation, sodass wir default Provider reingeben, aber diese ggf. ersetzen können.\nAUTH\nMETRICS","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecentric%2Fnet_core_admin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodecentric%2Fnet_core_admin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecentric%2Fnet_core_admin/lists"}