Commit graph

466 commits

Author SHA1 Message Date
Devon Bautista
7cfca8c875
feat: add secret store support to update 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
Devon Bautista
88bd791718
feat(crawl): improved logs; add partial credential overriding
The order of precedence is:

1. --username/--password
2. URI-specific credentials in store
3. Default credentials in store

The "partial" overriding means that specifying only one of --username or
--password will cause the crawl command to fetch the specific node
credentials for the BMC (falling back to the default) but override the
result with the value of the passed flag.

For instance,

magellan crawl <uri> --username foo

will fetch the username and password for <uri> in the secret store, but
override the username being sent to 'foo'. This does not change the
username stored in the secret store.
2025-04-14 16:37:34 -06:00
Devon Bautista
63dc2c07a6
chore: run gofmt 2025-04-14 16:37:20 -06:00
b9213c5fae
chore: updated error/warn messages to be more informative 2025-04-14 14:11:00 -06:00
522ddb985d
readme: added tip about default secrets 2025-03-31 16:06:16 -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
David Allen
2fca8f9166
Merge pull request #83 from OpenCHAMI/allend/secrets-cmd
Add `secrets` command for managing BMC credentials
2025-03-25 16:51:50 -06:00
414f8d34f2
readme: update with secrets and emulator sections 2025-03-25 16:48:41 -06:00
a47a71b039
cmd: allow short opts for username/password 2025-03-25 16:34:04 -06:00
6d68bbd28f
makefile: corrected golangci-lint install string 2025-03-25 15:26:14 -06:00
667fd39213
lint: apply changes from golint 2025-03-25 14:54:09 -06:00
0c53fa7495
makefile: updated golangci-lint version 2025-03-25 14:52:58 -06:00
841a97dce4
refactor: changed var name for clarity and added logging details 2025-03-25 14:16:19 -06:00
3a1fc3fe38
fix: added username/password to collect params 2025-03-25 14:15:39 -06:00
David Allen
13bb391ed1
Merge pull request #84 from OpenCHAMI/davidallendj-patch-1
Fix emulator image in `rf-emulator.yml`
2025-03-25 13:45:07 -06:00
David Allen
185a5d914d
Fix emulator image in rf-emulator.yml
Signed-off-by: David Allen <16520934+davidallendj@users.noreply.github.com>
2025-03-25 13:37:42 -06:00
d4d0bc8a2c
fix: collect not falling back to CLI args correctly 2025-03-25 09:53:58 -06:00
c88a29be00
refactor: added check for secretID in secrets store 2025-03-24 15:32:47 -06:00
67e2d40606
refactor: changed logging to use consistent JSON format 2025-03-24 14:43:34 -06:00
10b3f55b53
refactor: use vars for cred flags 2025-03-24 14:29:47 -06:00
8f96a2f686
refactor: changed short opts for secret store 2025-03-24 14:29:16 -06:00
daa7a32b14
refactor: added basic input format and cleanup 2025-03-24 13:36:02 -06:00
7cd927d503
refactor: minor changes to error messages 2025-03-24 11:36:53 -06:00
34af75c1d2
refactor: change error message to warning 2025-03-24 11:35:37 -06:00
6c5fc993b0
refactor: export function to save JSON secrets 2025-03-20 10:18:22 -06:00
01a88beb97
fix: secrets remove not updating local store and return error when not found 2025-03-20 10:17:33 -06:00
e38402edc3
refactor: changed removing secret from store returns error 2025-03-20 09:28:24 -06:00
17350ab99b
fix: changed number of minimum args for secrets list 2025-03-20 09:27:39 -06:00
7990ec097d
refactor: added flag to set secrets file for crawl 2025-03-20 09:11:21 -06:00
41346aebbb
refactor: changed to use local store with static store fallback 2025-03-20 08:59:48 -06:00
df77e075ef
refactor: changed required number of args for secrets list 2025-03-20 08:59:15 -06:00
d428dbfd27
refactor: added exact number of args to list cmd 2025-03-20 08:58:06 -06:00
053773d90c
fix: added secrets file path to collect parameters 2025-03-19 15:46:53 -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
5b79031afa
refactor: updated secrets cmd implementation 2025-03-17 18:34:08 -06:00
23bd31a1aa
feat: add 'secrets' command to root 2025-03-17 11:39:23 -06:00
73c3323cc8
chore: updated go deps 2025-03-17 10:37:18 -06:00
f18d279468
refactor: updated description/example and added 'secrets-file' flag to cmd 2025-03-17 10:37:04 -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
48a53f6d5d
Merge pull request #82 from OpenCHAMI/fix-imports
Update goimports in update.go
2025-03-13 11:33:48 -06:00
David Allen
c5ee0c6a4c
fix: update goimports in update.go 2025-03-13 11:32:47 -06:00
David Allen
a1877a3d32
Merge pull request #81 from OpenCHAMI/71-bug-redfishv1updateserviceactionssimpleupdate-gives-errors-for-openbmc
Change manual update request to use `gofish` instead
2025-03-13 11:10:31 -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