Commit graph

86 commits

Author SHA1 Message Date
Alex Lovell-Troy
6b0d66bfec
feat(secrets): implement SecretStore interface and StaticStore/LocalStore for credential management 2025-07-10 21:25:36 -06:00
a8e45ff1b4
refactor: updated PrintDrives() implementation 2025-07-10 20:57:28 -06:00
e85fd21922
refactor: updated cache editor implementation 2025-07-10 20:56:05 -06:00
0117f0355a
chore: made changes to build and fix issues 2025-07-10 20:56:04 -06:00
b165fe2927
chore: more miscellaneous updates 2025-07-10 20:56:04 -06:00
5b474b74be
feat: sessions core implementation 2025-07-10 20:56:03 -06:00
a9492c70f6
feat: added func to load session token 2025-07-10 20:56:03 -06:00
12969adf25
Add support for storage command and crawler output
Partially addresses issue #3 by adding a simple `magellan list devices` command to list storage devices. To close the issue, this PR still requires including storage device information in the `crawler`'s output.

Reviewed-on: towk/magellan-ng#5
2025-07-10 20:56:02 -06:00
Devon Bautista
01936cb77b
fix: adjust secret store precedence in collect command 2025-07-10 20:54:29 -06:00
86a8acd9a6
refactor: moved internal functions to pkg and updated refs 2025-07-10 20:54:27 -06:00
Alex Lovell-Troy
c844a46415
feat(secrets): implement SecretStore interface and StaticStore/LocalStore for credential management 2025-07-10 20:54:26 -06:00
fb3a936224
updated all references 2025-07-10 20:54:25 -06:00
Ben McDonald
96931cd8a3
Add include flag
Signed-off-by: Ben McDonald <ben.mcdonald@hpe.com>
2025-07-08 11:12:14 -07:00
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
8fb8908883
fix: added another check for power 2025-06-25 15:34:45 -06:00
ffe5132d8e
fix: panic from invalid chassis in crawler 2025-06-25 15:20:09 -06:00
e170787958
chore: added power control odata.id to cralwer output 2025-06-25 11:49:34 -06:00
cb1d90b840
refactor: added tags to power struct 2025-06-19 16:53:43 -06:00
f12a6c6713
refactor: power struct and actions 2025-06-19 16:51:55 -06:00
448c5fb1ca
refactor: changed links to store ODataID instead of ID 2025-06-19 16:13:41 -06:00
c6b80c8ddc
refactor: updated crawler to add relevant power output 2025-06-18 16:10:16 -06:00
Ben McDonald
068478d9bc
Run gofmt 2025-06-17 11:21:42 -07:00
Ben McDonald
940e7fee2a
Add socket type and construct correct xname 2025-06-13 09:26:10 -07:00
Ben McDonald
6b3d317086
Remove system info 2025-06-12 15:25:48 -07:00
Ben McDonald
266b3df0b7
Print data in SMD format 2025-06-06 13:53:53 -07:00
Ben McDonald
56522a3f29
Add some code to query PDUs 2025-06-06 13:25:19 -07:00
Ben McDonald
7aeb3aa6c5
Add some initial files 2025-06-05 15:33:03 -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
Ben McDonald
bff549bcfa
Remove https from RedfishEndpoints post 2025-05-28 09:57:20 -07:00
jose-angel gomez-lopez
17ec8b07a7
#92 making sure that the argument of net.ParseIP is a pure IP address (x.x.x.x), without any prefix 2025-05-26 10:15:00 +02:00
cf1fcc7646
fix: added check to stop collect on error 2025-04-21 15:37:15 -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
b50b31ff40
fix(bmc): check for default key 2025-04-16 17:41:46 -06:00
Devon Bautista
1847a5ed41
fix: adjust secret store precedence in collect command 2025-04-16 16:33:07 -06:00
Devon Bautista
ad0708d2ad
refactor: split BMC data structures into pkg/bmc package 2025-04-16 16:33:06 -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
667fd39213
lint: apply changes from golint 2025-03-25 14:54:09 -06:00
841a97dce4
refactor: changed var name for clarity and added logging details 2025-03-25 14:16:19 -06:00
d4d0bc8a2c
fix: collect not falling back to CLI args correctly 2025-03-25 09:53:58 -06:00
7cd927d503
refactor: minor changes to error messages 2025-03-24 11:36:53 -06:00
6c5fc993b0
refactor: export function to save JSON secrets 2025-03-20 10:18:22 -06:00
e38402edc3
refactor: changed removing secret from store returns error 2025-03-20 09:28:24 -06:00
ceeaa5d891
refactor: minor changes to store in collect 2025-03-19 15:31:24 -06:00
a8f0c12505
fix: added missing funcs for secret store implementations 2025-03-19 11:36:29 -06:00
932daeafe1
refactor: added func to remove secrets from store 2025-03-19 11:10:26 -06:00
5ecc051fef
refactor: added optional secrets file parameter and lookup in collect 2025-03-17 10:34:53 -06:00
c3a7ebf975
chore: added pre-condition guards for secrets 2025-03-17 10:14:36 -06:00
a1276360fe
refactor: added function to open secrets store by checking env var 2025-03-14 13:28:47 -06:00