Commit graph

71 commits

Author SHA1 Message Date
1405b42f97
updated all references 2025-06-28 08:38:08 -06:00
David Allen
04e1fb26c9
Split the collect Command For Customization (#93)
* feat: initial implementation of command split

* feat: update collect and new send cmd

* chore: cleanup unused code

* chore: refactored getting username

* chore: more refactoring and cleanup

* feat: update send cmd implementation

* chore: changed/updated example config

* chore: made cmd more consistent and added formatting

* refactor: removed --host flag from scan

* chore: cleaned up and fixed issue with client

* chore: cleaned up CLI flags in collect cmd

* feat: updated crawl to include managers and output YAML optionally

* refactor: updated and improved send implementation

* refactor: minor improvements

* refactor: added util func to check for empty slices

* fix: issue with reading from stdin

* refactor: added scheme trimming function for URIs

* refactor: changed host arg back to positional

* refactor: removed unused vars and added --output-dir flag

* fix: make -f for secrets persistent

* refactor: removed --host flag and request in collect

* refactor: changed --output flag to --output-file

* fix: updated flags for collect

* fix: typo in crawler error

* fix: dir being created when outputDir not set

* fix: reading stdin and data args

* fix: made output using -v and -o consistent

* readme: added info about command split

* updated changelog adding missing version entries

* chore: updated example to use host as positional arg

* fix: issue with reading --data arg

* fix: remove unused import from collect pkg

Signed-off-by: Devon Bautista <devonb@lanl.gov>

---------

Signed-off-by: David Allen <16520934+davidallendj@users.noreply.github.com>
Signed-off-by: Devon Bautista <devonb@lanl.gov>
Co-authored-by: Devon Bautista <devonb@lanl.gov>
2025-05-29 15:15:46 -04:00
233be46bee
fix: changed persistent flags in collect to fix binding 2025-04-21 12:17:28 -06:00
Devon Bautista
a6bf6cc1b6
fix: clarify that override is temporary 2025-04-17 09:47:29 -06:00
Devon Bautista
9b887e4bdc
fix: only do it once 2025-04-17 09:43:03 -06:00
Devon Bautista
f6864bd3f5
fix: log override for local store too 2025-04-17 09:39:52 -06:00
Devon Bautista
db6d958934
fix: move BMC credentials getter that logs to util func 2025-04-16 22:42:19 -06:00
Devon Bautista
722345cf93
fix(collect): properly set secret when overriding with flags 2025-04-16 21:43:59 -06:00
Devon Bautista
9c8ea2575a
fix(collect): don;t require both creds flags 2025-04-16 17:31:20 -06:00
Devon Bautista
0deeb233f8
fix(collect): make sure secret store is set 2025-04-16 17:31:04 -06:00
Devon Bautista
1847a5ed41
fix: adjust secret store precedence in collect command 2025-04-16 16:33:07 -06:00
b9213c5fae
chore: updated error/warn messages to be more informative 2025-04-14 14:11:00 -06:00
82e1c45036
feat: add default secret to local store 2025-03-31 15:35:15 -06:00
c950532e88
refactor: improvements to CLI and update pkg 2025-03-28 13:12:38 -06:00
a47a71b039
cmd: allow short opts for username/password 2025-03-25 16:34:04 -06:00
3a1fc3fe38
fix: added username/password to collect params 2025-03-25 14:15:39 -06:00
34af75c1d2
refactor: change error message to warning 2025-03-24 11:35:37 -06:00
053773d90c
fix: added secrets file path to collect parameters 2025-03-19 15:46:53 -06:00
f18d279468
refactor: updated description/example and added 'secrets-file' flag to cmd 2025-03-17 10:37:04 -06:00
Alex Lovell-Troy
1f2e72dab6
feat(secrets): implement SecretStore interface and StaticStore/LocalStore for credential management 2025-03-07 17:10:31 -05:00
555990c6b6
collect: return collection output from CollectInventory() 2025-02-26 16:18:42 -07:00
5843bc1768
refactor: moved internal functions to pkg and updated refs 2025-02-20 17:09:21 -07:00
David Allen
fd54f367b8
cmd: exported commands for external use 2025-02-04 13:51:57 -07:00
David Allen
4597f63d12
Fixed issue with host string and added internal url package 2024-08-14 10:57:30 -06:00
David Allen
15de7c16c0
Fixed viper flag binding in collect cmd 2024-08-13 13:40:26 -06:00
David Allen
81ec43a923
Minor changes to fix lint errors 2024-08-13 10:41:06 -06:00
David Allen
dce823c6d8
Added URL sanitization for SMD host and moved auth from util 2024-08-12 13:04:52 -06:00
f7159c9b66
Fixed issue with collect requests and other minor changes 2024-08-11 14:25:21 -06:00
David Allen
8a2541717d
Added flag to show cache info with list command and other minor changes 2024-08-09 07:42:28 -06:00
David Allen
2c841906b2
Updated 'cmd' package 2024-08-07 10:58:03 -06:00
David Allen
b27e6b6a73
Renamed vars and switched to use zerolog 2024-07-30 14:02:12 -06:00
David Allen
d73575ab05
Fixed imports and removed unused query params 2024-07-24 10:24:12 -06:00
David Allen
f7b08da064
Added more API documentation 2024-07-23 16:18:21 -06:00
David Allen
c537e496da
Fixed issue with required param 2024-07-22 14:20:06 -06:00
David Allen
1ab5c8a7df
Added initial round of comments for API documentation 2024-07-18 18:18:03 -06:00
David Allen
796a67d5ab
Tidied up CLI flag names 2024-07-17 15:42:00 -06:00
David Allen
472735fb9d
Added an error catch for CollectAll in cmd 2024-05-16 15:41:07 -06:00
David J. Allen
f4540ea4ce
Changed db.path flag to cache 2024-05-10 14:54:34 -06:00
David J. Allen
ac86a12ce0
Made user and pass flags required together 2024-05-10 13:52:00 -06:00
David J. Allen
886a5d4d82
Fixed default output path for flag 2024-05-10 13:46:51 -06:00
David J. Allen
9663b677ba
Removed and updated flags 2024-05-10 10:09:37 -06:00
David J. Allen
b6d429f072
Changed the default storage location for scanning cache 2024-05-09 14:53:44 -06:00
David J. Allen
0403b2bcbc
Changed the wording of error messages slightly 2024-05-08 13:39:51 -06:00
David J. Allen
60770dadc0
Removed GET request in collect and minor changes 2024-05-08 12:48:02 -06:00
David J. Allen
e91460528b
Added access token to params passed to CollectAll func 2024-05-07 16:57:11 -06:00
David J. Allen
b873613939
Minor changes and fixes 2024-05-07 16:51:07 -06:00
David J. Allen
6bf9035d96
Fixed cert flags 2024-05-07 15:51:51 -06:00
David J. Allen
2b421e8af5
Merge branch 'main' into config-file 2024-05-07 14:57:34 -06:00
David J. Allen
b5c0d9ce2a
Changed cert flags and added cert for gofish 2024-05-06 14:01:29 -06:00
David J. Allen
09c5af44b9
Added checks for access token when running command 2024-03-15 17:43:25 -06:00