Ryan
08/26/2021, 4:54 PMKun Nan
08/27/2021, 6:32 AMSteven
08/27/2021, 6:03 PMJuan Alvarez
08/30/2021, 2:30 PMKun Nan
08/31/2021, 9:39 AMMadhur Jodhwani
08/31/2021, 12:58 PMStijn Pieters
08/31/2021, 2:29 PMLee Armet
08/31/2021, 7:13 PMjake
09/01/2021, 5:06 AMerror="rename msi: rename /tmp/orbit-package2439375703/orbit.msi orbit-osquery_0.0.3.msi: invalid cross-device link"
Could anyone point me in the right direction.Kun Nan
09/01/2021, 8:28 AMfleet_3 | 2021/09/01 07:08:44 http: TLS handshake error from 10.17.1.21:36762: remote error: tls: unknown certificate
Seth Hanford
09/01/2021, 5:16 PMNAME:
fleetctl get - Get/list resources
USAGE:
fleetctl get command [command options] [arguments...]
COMMANDS:
queries, query, q List information about one or more queries
packs, pack, p List information about one or more packs
labels, label, l List information about one or more labels
hosts, host, h List information about one or more hosts
enroll_secret, enroll_secrets, enroll-secret, enroll-secrets Retrieve the osquery enroll secrets
config Retrieve the Fleet configuration
carve Retrieve details for a carve by ID
carves Retrieve the file carving sessions
user_roles, user_role, ur List global and team roles for users
teams, t List teams
help, h Shows a list of commands or help for one command
OPTIONS:
--help, -h show help (default: false)
Lee Armet
09/01/2021, 6:22 PMJocelyn Bothe
09/01/2021, 7:46 PMVenkaiah
09/02/2021, 3:30 AMHi Team i am facing error " go run: no packages loaded from ./cmd/package" when i run command
go run ./cmd/package --type=pkg --fleet-url=localhost:8412 --insecure --enroll-secret=YOUR_FLEET_ENROLL_SECRET_HERE
Ryan
09/02/2021, 5:56 PMbenbass
09/02/2021, 8:52 PMMadhur Jodhwani
09/03/2021, 8:31 AMSK
09/03/2021, 1:56 PM/etc/environment
and I can successfully use proxy on the command line but fleet does not seem to respect it.
Seeing this error:
Sep 03 14:12:39 fleet[18823]: {"component":"crons","cron":"vulnerabilities","err":"sync cpe db: Get \"<https://api.github.com/repos/fleetdm/nvd/releases?per_page=1>\": dial tcp 140.82.121.5:443: connect: connection refused","level":"e
Sep 03 15:00:44 fleet[18823]: [mysql] 2021/09/03 15:00:44 packets.go:122: closing bad idle connection: EOF
Sep 03 15:00:44 fleet[18823]: [mysql] 2021/09/03 15:00:44 connection.go:158: driver: bad connection
Mystery Incorporated
09/04/2021, 6:57 PMjake
09/05/2021, 2:26 AMryan
09/06/2021, 9:43 AMMadhur Jodhwani
09/06/2021, 10:32 AMCommand:go run ./cmd/package --type pkg --enroll-secret=+6fOMFntLWUrMphCww64WTXP2P7LWlWo --fleet-url=<https://127.0.0.1:8080> --update-url=<http://localhost:8000> --update-roots='[{"keytype":"ed25519","scheme":"ed25519","keyid_hash_algorithms":["sha256","sha512"],"keyval":{"public":"058619f952fcd0d3504fedb65f37b714a9b32efd34a61070ae193d7a11ae1307"}}]' --insecure
Output:2021-09-06T15:59:55+05:30 FTL package failed error="initialize updates: failed to get orbit: exec new version: Incorrect Usage. flag needs an argument: -version\n\nNAME:\n Orbit osquery - A powered-up, (near) drop-in replacement for osquery\n\nUSAGE:\n orbit [global options] command [command options] [arguments...]\n\nCOMMANDS:\n help, h Shows a list of commands or help for one command\n\nGLOBAL OPTIONS:\n --type value Type of package to build\n --enroll-secret value Enroll secret for authenticating to Fleet server\n --fleet-url value URL (host:port) of Fleet server\n --fleet-certificate value Path to server cerificate bundle\n --identifier value Identifier for package product (default: \"com.fleetdm.orbit\")\n --version value Version for package product (default: \"0.0.2\")\n --insecure Disable TLS certificate verification (default: false)\n --service Install orbit/osquery with a persistence service (launchd, systemd, etc.) (default: true)\n --sign-identity value Identity to use for macOS codesigning\n --notarize Whether to notarize macOS packages (default: false)\n --osqueryd-channel value Update channel of osqueryd to use (default: \"stable\")\n --orbit-channel value Update channel of Orbit to use (default: \"stable\")\n --update-url value URL for update server (default: \"<https://tuf.fleetctl.com>\")\n --update-roots value Root key JSON metadata for update server (from fleetctl updates roots)\n --debug Enable debug logging (default: false)\n --help, -h show help (default: false)\n\x1b[90m2021-09-06T15:59:55+05:30\x1b[0m \x1b[1m\x1b[31mFTL\x1b[0m\x1b[0m package failed \x1b[31merror=\x1b[0m\x1b[31m\"flag needs an argument: -version\"\x1b[0m\n: exit status 1"
exit status 1
So I have been trying to figure out this that I have my own update server and I have added orbit and osqueryd binaries to it but I am unable to build orbit package as specified in the docs and I get the above error on running thequery as mentioned, any idea what I have done wrong coz I am trying to figure out the auto update part.Juan Alvarez
09/06/2021, 1:34 PMFLEET_MYSQL_MAX_IDLE_CONNS
and FLEET_MYSQL_MAX_OPEN_CONNS
? I started to see Error 1040: Too Many Connections
along with Authentication Error: Finding Host
so i think that MySQL was dropping an excessive amount of connections coming from the FleetDM. Our configuration was FLEET_MYSQL_MAX_IDLE_CONNS=50
and Max Open FLEET_MYSQL_MAX_OPEN_CONNS=400
which i think it was overwhelming the mysql that has a max_connections
variable of 151. Once i lowered `FLEET_MYSQL_MAX_OPEN_CONNS=100`i stopped seeing the errors. The question is, what is a typical configuration for those parameters when having deployments of several thousands clients? Should we configure FLEET_MYSQL_MAX_OPEN_CONNS
close to the max_connections
value in MySQL? And what would be FleetDM's behavior if he needs to check in the database but the max amount of connections is reached? Any guidance is appreciated!Manu Odago
09/06/2021, 3:05 PMkoo
09/06/2021, 5:11 PMChad
09/07/2021, 3:04 PMerror="initialize updates: failed to update metadata: update metadata: tuf: failed to decode timestamp.json: expired at 2021-09-06 09:41:08 -0700 -0700"
error when building an msi. Does the tuf stuff need to be resigned by you?SK
09/07/2021, 3:47 PM"cron":"vulnerabilities","leader":"Not the leader. Skipping..."
mean?defensivedepth
09/07/2021, 3:52 PMCptOfEvilMinions
09/07/2021, 8:10 PMKun Nan
09/08/2021, 1:03 AMfunc (mw logmw) RequestQueries(ctx context.Context, nodeKey string) (res *distributed.GetQueriesResult, reauth bool, err error) {
defer func(begin time.Time) {
resJSON, _ := json.Marshal(res)
uuid, _ := uuid.FromContext(ctx)
mw.logger.Log(
"method", "RequestQueries",
"uuid", uuid,
"res", string(resJSON),
"reauth", reauth,
"err", err,
"took", time.Since(begin),
)
}(time.Now())
res, reauth, err = mw.next.RequestQueries(ctx, nodeKey)
return
}
• the newest version
func (mw logmw) RequestQueries(ctx context.Context, nodeKey string) (res *distributed.GetQueriesResult, reauth bool, err error) {
defer func(begin time.Time) {
resJSON, _ := json.Marshal(res)
uuid, _ := uuid.FromContext(ctx)
logger := level.Debug(mw.logger)
if err != nil {
logger = <http://level.Info|level.Info>(mw.logger)
}
logger.Log(
"method", "RequestQueries",
"uuid", uuid,
"res", string(resJSON),
"reauth", reauth,
"err", err,
"took", time.Since(begin),
)
}(time.Now())
res, reauth, err = mw.next.RequestQueries(ctx, nodeKey)
return res, reauth, err
}