javuto
12/18/2025, 7:55 PMVikas Krishnan
12/18/2025, 8:48 PMsudo make docker-dev) after configuring the .env and generating the certificates following the instructions in the README.md inside the deploy/docker directoryVikas Krishnan
12/18/2025, 8:49 PMVikas Krishnan
12/18/2025, 8:51 PMubuntu@node09ob48:~$ curl -sk <https://172.27.48.89/2f8ad0c8-b6a2-46d9-ad4d-bcfcdfd5d42c/371vf45IPt91USm0LmflI1IQ3nT/enroll.sh> | sh
[+] _OS=linux
[+] _SECRET_FILE=/etc/osquery/osctrl-dev.secret
[+] _FLAGS=/etc/osquery/osquery.flags
[+] _CERT=/etc/osquery/certs/osctrl-dev.crt
[+] IMPORTANT! If osquery is not installed, it will be installed.
/usr/bin/osqueryi
[+] Installed version of osquery is 5.20.0
[+] Stopping osqueryd
[+] Preparing osquery secret in /etc/osquery/osctrl-dev.secret
zaT4rizZiD83ccvPBvPCuLOc4qLzj12cE7zGMDc_S3d8ICne9G88pq8Bd8VuFDMr
[+] Preparing osquery flags in /etc/osquery/osquery.flags
[+] Preparing osquery certificate in /etc/osquery/certs/osctrl-dev.crt
[+] Starting osqueryd
Synchronizing state of osqueryd.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable osqueryd
Created symlink /etc/systemd/system/multi-user.target.wants/osqueryd.service → /usr/lib/systemd/system/osqueryd.service.
[+] Congratulations! The node has been enrolled in osctrl-dev
[+] REMINDER! osqueryd has been started and enabled.
ubuntu@node09ob48:~$
ubuntu@node09ob48:~$
ubuntu@node09ob48:~$ sudo systemctl status osqueryd.service
● osqueryd.service - The osquery Daemon
Loaded: loaded (/usr/lib/systemd/system/osqueryd.service; enabled; preset: enabled)
Active: active (running) since Thu 2025-12-18 20:43:54 UTC; 4s ago
Main PID: 145725 (osqueryd)
Tasks: 12 (limit: 18941)
Memory: 14.3M (peak: 14.9M)
CPU: 91ms
CGroup: /system.slice/osqueryd.service
├─145725 /opt/osquery/bin/osqueryd --flagfile /etc/osquery/osquery.flags --config_path /etc/osquery/osquery.conf
└─145770 /opt/osquery/bin/osqueryd
Dec 18 20:43:54 node09ob48 systemd[1]: Starting osqueryd.service - The osquery Daemon...
Dec 18 20:43:54 node09ob48 systemd[1]: Started osqueryd.service - The osquery Daemon.
Dec 18 20:43:54 node09ob48 osqueryd[145725]: osqueryd started [version=5.20.0]
Dec 18 20:43:54 node09ob48 osqueryd[145770]: W1218 20:43:54.660670 145770 tls_enroll.cpp:101] Failed enrollment request to <https://osctrl-nginx/2f8ad0c8-b6a2-46d9-ad4d>>
Dec 18 20:43:55 node09ob48 osqueryd[145770]: W1218 20:43:55.692766 145770 tls_enroll.cpp:101] Failed enrollment request to <https://osctrl-nginx/2f8ad0c8-b6a2-46d9-ad4d>>
ubuntu@node09ob48:~$javuto
12/18/2025, 11:07 PMjavuto
12/18/2025, 11:09 PMopenssl x509 -in certfile -noout -text
to see what alt names you havejavuto
12/18/2025, 11:10 PM/etc/hosts using one of the domains in the certjavuto
12/18/2025, 11:12 PM/etc/osquery/osquery.flags for the tls hostname to be usedjavuto
12/18/2025, 11:12 PMjavuto
12/18/2025, 11:16 PM<https://osctrl-nginx>Vikas Krishnan
12/18/2025, 11:17 PMjavuto
12/18/2025, 11:17 PMVikas Krishnan
12/18/2025, 11:17 PMubuntu@node10ob48:~/osctrl$ hostname -f
node10ob48.maas
ubuntu@node10ob48:~/osctrl$ openssl x509 -noout -in deploy/docker/conf/tls/osctrl.crt -text | grep -A 1 -E "Subject Alternative | CN"
Issuer: emailAddress = dev@node10ob48.maas, CN = node10ob48.maas
Validity
--
Subject: emailAddress = dev@node10ob48.maas, CN = node10ob48.maas
Subject Public Key Info:
--
X509v3 Subject Alternative Name:
DNS:node10ob48.maas, DNS:osctrl-nginx, DNS:nginx, DNS:osctrljavuto
12/18/2025, 11:19 PM/etc/osquery/osquery.flags in the osquery containersjavuto
12/18/2025, 11:19 PMVikas Krishnan
12/18/2025, 11:19 PMjavuto
12/18/2025, 11:19 PMcurl -k <https://osctrl-nginx>javuto
12/18/2025, 11:20 PMVikas Krishnan
12/18/2025, 11:20 PMubuntu@node10ob48:~/osctrl$ curl -k <https://osctrl-nginx>
<a href="/login">Found</a>.Vikas Krishnan
12/18/2025, 11:21 PMVikas Krishnan
12/18/2025, 11:21 PMjavuto
12/18/2025, 11:21 PMjavuto
12/18/2025, 11:22 PMjavuto
12/18/2025, 11:22 PMVikas Krishnan
12/18/2025, 11:22 PMjavuto
12/18/2025, 11:22 PMjavuto
12/18/2025, 11:23 PMjavuto
12/18/2025, 11:23 PMVikas Krishnan
12/18/2025, 11:23 PMjavuto
12/18/2025, 11:24 PMjavuto
12/18/2025, 11:24 PMjavuto
12/18/2025, 11:24 PMjavuto
12/18/2025, 11:25 PMjavuto
12/18/2025, 11:25 PMVikas Krishnan
12/18/2025, 11:25 PMVikas Krishnan
12/18/2025, 11:25 PMjavuto
12/18/2025, 11:25 PM0.4.9 before the xmas breakjavuto
12/18/2025, 11:26 PMVikas Krishnan
12/18/2025, 11:26 PMjavuto
12/18/2025, 11:26 PMjavuto
12/18/2025, 11:26 PMjavuto
12/18/2025, 11:27 PMVikas Krishnan
12/18/2025, 11:27 PMVikas Krishnan
12/18/2025, 11:28 PMjavuto
12/18/2025, 11:28 PMVikas Krishnan
12/18/2025, 11:29 PMjavuto
12/18/2025, 11:29 PMVikas Krishnan
12/18/2025, 11:30 PMjavuto
12/18/2025, 11:30 PMdeploy.sh scriptjavuto
12/18/2025, 11:30 PMVikas Krishnan
12/18/2025, 11:30 PMVikas Krishnan
12/18/2025, 11:31 PM[+] Congratulations! The node has been enrolled in osctrl-dev
[+] REMINDER! osqueryd has been started and enabled.
[+] Your osctrl is ready 👌🏽
[+] -> <https://osctrl.dev:8443>
[+] -> <https://172.27.48.89:8443>
[+] -> 🔐 Credentials: admin / c98fca81beaada60d2d49a29f74cd4d8
[+] Completed in 4 minutes and 23 secondsVikas Krishnan
12/18/2025, 11:31 PMjavuto
12/18/2025, 11:32 PM8443 is the port for the admin uiVikas Krishnan
12/18/2025, 11:32 PMVikas Krishnan
12/18/2025, 11:32 PMjavuto
12/18/2025, 11:32 PMjavuto
12/18/2025, 11:33 PMVikas Krishnan
12/18/2025, 11:33 PMVikas Krishnan
12/18/2025, 11:34 PMjavuto
12/18/2025, 11:34 PM0.4.9 will be in good shapeVikas Krishnan
12/18/2025, 11:35 PMjavuto
12/18/2025, 11:35 PMVikas Krishnan
12/18/2025, 11:35 PMVikas Krishnan
12/18/2025, 11:36 PMjavuto
12/18/2025, 11:37 PMjavuto
12/18/2025, 11:38 PMprovision.sh script, and install all necessary in Ubuntu, it should have autoenrolled the machinejavuto
12/18/2025, 11:39 PMosctrl-tls component, which should be running in the 443 portVikas Krishnan
12/18/2025, 11:40 PMjavuto
12/18/2025, 11:40 PMjavuto
12/18/2025, 11:41 PMjavuto
12/18/2025, 11:41 PMVikas Krishnan
12/18/2025, 11:42 PMVikas Krishnan
12/18/2025, 11:42 PMVikas Krishnan
12/18/2025, 11:43 PMVikas Krishnan
12/18/2025, 11:43 PMVikas Krishnan
12/18/2025, 11:43 PMVikas Krishnan
12/18/2025, 11:44 PMjavuto
12/18/2025, 11:45 PMmain, all configuration is brokenVikas Krishnan
12/18/2025, 11:46 PMVikas Krishnan
12/18/2025, 11:46 PMVikas Krishnan
12/18/2025, 11:46 PMjavuto
12/18/2025, 11:46 PMVikas Krishnan
12/18/2025, 11:47 PMVikas Krishnan
12/18/2025, 11:48 PMubuntu@node10ob48:~/osctrl$ git status
On branch main
Your branch is up to date with 'origin/main'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: deploy/lib.sh
modified: docker-compose-dev.yml
Untracked files:
(use "git add <file>..." to include in what will be committed)
certs.pem
go1.25.5.linux-amd64.tar.gz
no changes added to commit (use "git add" and/or "git commit -a")
ubuntu@node10ob48:~/osctrl$ git log -1
commit 42f2de2bca36564a4ed7a0d5f04930b10a98ea88 (HEAD -> main, origin/main, origin/HEAD)
Merge: a83a2906 158aa00e
Author: Javier Marcos <1271349+javuto@users.noreply.github.com>
Date: Sun Nov 30 15:38:02 2025 +0100
Merge pull request #753 from jmpsec/dependencies-update-17
Dependencies upgrade
ubuntu@node10ob48:~/osctrl$javuto
12/18/2025, 11:48 PMjavuto
12/18/2025, 11:48 PMVikas Krishnan
12/18/2025, 11:49 PMVikas Krishnan
12/18/2025, 11:49 PMVikas Krishnan
12/18/2025, 11:49 PMjavuto
12/18/2025, 11:50 PMmake installjavuto
12/18/2025, 11:50 PMjavuto
12/18/2025, 11:51 PM/opt/osctrl/config directoryjavuto
12/18/2025, 11:52 PMunfuck button for a scriptVikas Krishnan
12/18/2025, 11:52 PMjavuto
12/18/2025, 11:52 PMjavuto
12/18/2025, 11:53 PMVikas Krishnan
12/18/2025, 11:53 PMjavuto
12/18/2025, 11:53 PMprovision.sh script do generate the configuration in /opt/osctrl/configjavuto
12/18/2025, 11:54 PMdb.json and redis.jsonjavuto
12/18/2025, 11:54 PMjavuto
12/18/2025, 11:55 PMVikas Krishnan
12/18/2025, 11:55 PMjavuto
12/18/2025, 11:55 PMjavuto
12/18/2025, 11:57 PMjavuto
12/18/2025, 11:57 PMVikas Krishnan
12/18/2025, 11:57 PMjavuto
12/18/2025, 11:58 PMosctrl-cli to check db connectivityjavuto
12/18/2025, 11:58 PMVikas Krishnan
12/18/2025, 11:58 PMVikas Krishnan
12/18/2025, 11:58 PMVikas Krishnan
12/18/2025, 11:58 PMubuntu@node10ob48:~/osctrl$ ./bin/osctrl-cli --api-file /opt/osctrl/config/api.json settings show
2025-12-17T02:47:58Z FTL main.go:2151 > ❌ loadAPIConfiguration - JSON key osctrl not found in /opt/osctrl/config/api.json
1 ubuntu@node10ob48:~/osctrl$ less /opt/osctrl/config/api.json
ubuntu@node10ob48:~/osctrl$ ./bin/osctrl-cli --api-file /opt/osctrl/config/api.json check-db
2025/12/17 02:49:47 /home/ubuntu/osctrl/pkg/backend/backend.go:104
[error] failed to initialize database, got error failed to connect to `user=postgres database=osctrl`: 127.0.0.1:5432 (127.0.0.1): failed SASL auth: FATAL: password authentication failed for user "postgres" (SQLSTATE 28P01)
2025-12-17T02:49:47Z FTL main.go:2151 > ❌ failed to create backend - Failed to get DB - failed to connect to `user=postgres database=osctrl`: 127.0.0.1:5432 (127.0.0.1): failed SASL auth: FATAL: password authentication failed for user "postgres" (SQLSTATE 28P01)Vikas Krishnan
12/18/2025, 11:59 PMVikas Krishnan
12/18/2025, 11:59 PMjavuto
12/18/2025, 11:59 PMosctrl-cli check-db -hjavuto
12/19/2025, 12:00 AMjavuto
12/19/2025, 12:00 AMVikas Krishnan
12/19/2025, 12:00 AMVikas Krishnan
12/19/2025, 12:01 AM./deploy/provision.sh -m dev --nginx --postgres --redis -p all --all-hostname "172.27.48.89" -Ejavuto
12/19/2025, 12:01 AMVikas Krishnan
12/19/2025, 12:01 AMVikas Krishnan
12/19/2025, 12:01 AMjavuto
12/19/2025, 12:02 AMVikas Krishnan
12/19/2025, 12:02 AMjavuto
12/19/2025, 12:02 AMVikas Krishnan
12/19/2025, 12:02 AMVikas Krishnan
12/19/2025, 12:02 AMjavuto
12/19/2025, 12:03 AMVikas Krishnan
12/19/2025, 12:03 AMjavuto
12/19/2025, 12:04 AMVikas Krishnan
12/19/2025, 12:05 AMjavuto
12/19/2025, 12:05 AMjavuto
12/19/2025, 12:06 AMVikas Krishnan
12/19/2025, 12:06 AMjavuto
12/19/2025, 12:07 AMjavuto
12/19/2025, 12:07 AMjavuto
12/19/2025, 12:08 AMVikas Krishnan
12/19/2025, 12:08 AMmake install) that you recommended, just as a fallbackVikas Krishnan
12/19/2025, 12:08 AMVikas Krishnan
12/19/2025, 12:09 AMjavuto
12/19/2025, 12:10 AMVikas Krishnan
12/19/2025, 12:15 AM