Commit graph

66 commits

Author SHA1 Message Date
7ffb080c7e
feat: sessions core implementation 2025-06-01 09:42:16 -06:00
a357effe12
feat: added func to load session token 2025-06-01 09:40:39 -06:00
b2111ddcb2
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-06-01 09:40:21 -06:00
Devon Bautista
ff80934134
fix: adjust secret store precedence in collect command 2025-06-01 09:37:13 -06:00
81055f1cdb
refactor: moved internal functions to pkg and updated refs 2025-06-01 09:29:33 -06:00
Alex Lovell-Troy
11f0cde59a
feat(secrets): implement SecretStore interface and StaticStore/LocalStore for credential management 2025-06-01 09:26:52 -06:00
85b4789b3f
updated all references 2025-05-30 21:56:54 -06:00
7515307cce
Changed DeleteScannedAssets to work correct and added db tag 2025-05-30 11:03: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
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
David Allen
c5ee0c6a4c
fix: update goimports in update.go 2025-03-13 11:32:47 -06:00
David Allen
ac4f591061
Merge branch 'main' into 71-bug-redfishv1updateserviceactionssimpleupdate-gives-errors-for-openbmc
Signed-off-by: David Allen <16520934+davidallendj@users.noreply.github.com>
2025-03-13 11:10:18 -06:00
Alex Lovell-Troy
9615f523f1
feat: enhance firmware update functionality and add BMC identification support 2025-03-13 10:58:36 -06:00
524a38a475
collect: return collection output from CollectInventory() 2025-03-13 10:54:55 -06:00
1477da9693
refactor: moved internal functions to pkg and updated refs 2025-03-13 10:52:37 -06:00
Alex Lovell-Troy
853e27c312
feat(secrets): implement SecretStore interface and StaticStore/LocalStore for credential management 2025-03-13 10:50:32 -06:00
5bbd0b8998
fix: changed 'update' cmd to use gofish 2025-03-13 10:48:29 -06:00
ebcd3ff917
refactor: moved internal functions to pkg and updated refs 2025-03-13 10:47:28 -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
Alex Lovell-Troy
d8e47cd1a1
feat: enhance firmware update functionality and add BMC identification support 2025-02-06 17:25:56 -05:00
4f6011381b
crawler: include IP in manager's ethernet interfaces 2024-10-22 14:23:24 -06:00
ac78e21ee8
crawler: change check to exclude ethernet interfaces without IPs 2024-10-17 18:38:29 -06:00
c9ae96ab76
crawler: add check to get IP address from manager's ethernet interface 2024-10-17 15:54:45 -06:00
e1cc0bfd38
crawler: add function to fetch manager data 2024-10-15 13:51:38 -06:00
David Allen
9991f02631
Updated warning message and changed SMD client to use pointer receivers 2024-08-27 15:55:16 -06:00
David Allen
e3ef9d4276
Fixed field tag in crawler 2024-08-27 15:40:43 -06:00
David Allen
5d811f31ab
Changed interface func from GetClient() to GetInternalClient() 2024-08-27 14:40:23 -06:00
David Allen
abd83454ad
Added Init() to Client interface 2024-08-27 14:38:03 -06:00