Commit graph

40 commits

Author SHA1 Message Date
Ben McDonald
488ad241f6
ADd secure, remove username and password
Signed-off-by: Ben McDonald <ben.mcdonald@hpe.com>
2025-07-03 13:12:53 -07:00
Ben McDonald
4cfd48da63
Add support for scanning PDU components by probing JAWS as well as redfish
Signed-off-by: Ben McDonald <ben.mcdonald@hpe.com>
2025-07-03 13:11:29 -07: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
c950532e88
refactor: improvements to CLI and update pkg 2025-03-28 13:12:38 -06: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
bb49129d31
Changed showing target host to use debug instead of verbose flag 2024-08-13 16:48:34 -06:00
David Allen
81ec43a923
Minor changes to fix lint errors 2024-08-13 10:41:06 -06:00
David Allen
3287d76588
Separated auth from util and fixed help strings 2024-08-12 13:05:28 -06:00
fc6afc8559
Minor change 2024-08-09 17:35:24 -06:00
24fba89a98
Reformatted scan help message 2024-08-09 17:11:37 -06:00
David Allen
46fc35d4ad
Removed extra print statement 2024-08-08 12:23:10 -06:00
4cc3f7f7ac
Changed order of adding default ports to add host correctly 2024-08-07 19:57:37 -06:00
David Allen
dd829cd10e
Fixed '--subnet' flag not adding hosts to scan 2024-08-07 13:15:16 -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
eba9dfa1e7
Added more documentation and changed param names 2024-07-22 14:22:02 -06:00
David Allen
1ab5c8a7df
Added initial round of comments for API documentation 2024-07-18 18:18:03 -06:00
Chris Harris
6aeffc92f1
Add timestamp to scan results cache 2024-06-28 12:16:45 -04:00
David J. Allen
f4540ea4ce
Changed db.path flag to cache 2024-05-10 14:54:34 -06:00
David J. Allen
b3ba75ea9a
Added format flag to convery output to JSON and slighly changed scanning logic 2024-05-10 13:41:08 -06:00
David J. Allen
9663b677ba
Removed and updated flags 2024-05-10 10:09:37 -06:00
David J. Allen
e93f49eb82
Added more output for debugging 2024-05-09 13:18:38 -06:00
David J. Allen
0403b2bcbc
Changed the wording of error messages slightly 2024-05-08 13:39:51 -06:00
David J. Allen
2289209604
Made scanned results optional with verbose flag 2024-05-08 12:58:55 -06:00
David J. Allen
2b421e8af5
Merge branch 'main' into config-file 2024-05-07 14:57:34 -06:00
Alex Lovell-Troy
cccf0dfdf2 move to OpenCHAMI and update changelog 2023-11-03 09:47:57 -04:00
David J. Allen
955c9fb4bd Change import to use new repo 2023-10-31 07:55:03 -06:00
David J. Allen
2baae37f5f Initial implementation of config file 2023-10-19 17:08:36 -06:00
David J. Allen
c48b42407f Removed extra print statement 2023-10-17 14:48:26 -06:00
David J. Allen
48b2264053 Changed GenerateHosts implementation to take IP, CIDR, and subnet masks arguments for scanning 2023-10-17 14:45:35 -06:00
David J. Allen
555ecf679d Added function implementations to generate hosts by subnet and CIDR 2023-10-16 14:37:23 -06:00
David J. Allen
f59d68797d Moved ScannedResult to scan.go and implemented redfish probe 2023-10-09 11:20:36 -06:00
David J. Allen
dc8689c26b Added check for scanned database directory 2023-09-19 13:56:21 -06:00
Alex Lovell-Troy
3351de48a6 inital release refactor 2023-09-14 15:10:08 -04:00
David J. Allen
c5a6d2a2be Add goroutine to info collect
Signed-off-by: David J. Allen <allend@lanl.gov>
2023-09-13 11:21:49 -06:00
David J. Allen
2edb9fdbb0 Refactored flags and added xnames to add endpoint to hms-smd 2023-09-05 14:26:53 -06:00
David J. Allen
118c12fa14 Minor changes and fixes 2023-08-30 14:43:13 -06:00
David J. Allen
c202469c50 Reorganized adding cobra commands 2023-08-29 14:36:57 -06:00