From ba849b150c8e42ab594e7c2862fb6f6c484b79ae Mon Sep 17 00:00:00 2001 From: Matt Date: Sun, 29 Mar 2026 10:54:55 -0700 Subject: [PATCH] cosmostat API more random --- defaults/main.yaml | 2 +- files/server/server.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/defaults/main.yaml b/defaults/main.yaml index 30b28e2..13e3539 100644 --- a/defaults/main.yaml +++ b/defaults/main.yaml @@ -52,7 +52,7 @@ api_service_folder: "{{ service_folder }}/api" venv_folder: "{{ service_folder }}/venv" api_service_exe: "{{ venv_folder }}/bin/python -u {{ api_service_folder }}/app.py" custom_api_port: "5000" -REAL_API_KEY: "DEADBEEF" +REAL_API_KEY: "{{ lookup('password', '/dev/null length=64 chars=ascii_letters,digits,punctuation') }}" # dashboard vars service_control_web_folder: "{{ service_folder }}/web" diff --git a/files/server/server.php b/files/server/server.php index 5a27b81..35aa9df 100644 --- a/files/server/server.php +++ b/files/server/server.php @@ -98,7 +98,7 @@ $selectedHost = $clients[$selectedIdx]['hostname']; This will return the entire JSON descriptor variable.
The endpoint agent uses this descriptor to build out its local System Object.
The agent then reports back to the Cosmostat Server with all the data found in the descriptor.
- Full Source Code can be found at its Gitea page. + Full Source Code can be found at its Gitea page.