d34ba3f754
chore: update references and imports
2025-04-26 18:12:21 -06:00
665cd4bc14
refactor: exported more cmd variables
2025-04-26 17:54:41 -06:00
f3ede4117f
updated all references
2025-04-26 17:54:41 -06:00
5d9b382921
fix: changed persistent flags in collect to fix binding
2025-04-26 17:46:52 -06:00
Devon Bautista
979841d762
fix: clarify that override is temporary
2025-04-26 17:46:52 -06:00
Devon Bautista
ed9db6d943
fix: only do it once
2025-04-26 17:46:51 -06:00
Devon Bautista
26e39d777b
fix: log override for local store too
2025-04-26 17:46:51 -06:00
Devon Bautista
5d9afebcb1
fix: move BMC credentials getter that logs to util func
2025-04-26 17:46:51 -06:00
Devon Bautista
939be12da7
fix(collect): properly set secret when overriding with flags
2025-04-26 17:46:51 -06:00
Devon Bautista
7bcd2f9462
fix(collect): don;t require both creds flags
2025-04-26 17:46:51 -06:00
Devon Bautista
0ed861e3a7
fix(collect): make sure secret store is set
2025-04-26 17:46:50 -06:00
Devon Bautista
541fb6ebb0
fix: adjust secret store precedence in collect command
2025-04-26 17:46:50 -06:00
Devon Bautista
0909254550
feat: add secret store support to update command
2025-04-26 17:46:50 -06:00
Devon Bautista
93010587c6
refactor: split BMC data structures into pkg/bmc package
2025-04-26 17:46:50 -06:00
Devon Bautista
e62a38183f
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-26 17:46:50 -06:00
Devon Bautista
a6dadfcdb5
chore: run gofmt
2025-04-26 17:46:50 -06:00
ee99d6e06d
chore: updated error/warn messages to be more informative
2025-04-26 17:46:50 -06:00
38e22ff24c
feat: add default secret to local store
2025-04-26 17:46:49 -06:00
92b05a81c7
refactor: improvements to CLI and update pkg
2025-04-26 17:46:49 -06:00
5b28ea4575
cmd: allow short opts for username/password
2025-04-26 17:46:01 -06:00
5e200edab5
lint: apply changes from golint
2025-04-26 17:46:00 -06:00
6c5e958863
fix: added username/password to collect params
2025-04-26 17:46:00 -06:00
2b0245e17b
refactor: added check for secretID in secrets store
2025-04-26 17:46:00 -06:00
cc112e72e4
refactor: changed logging to use consistent JSON format
2025-04-26 17:46:00 -06:00
5c4ca34976
refactor: use vars for cred flags
2025-04-26 17:45:59 -06:00
d1042d77aa
refactor: changed short opts for secret store
2025-04-26 17:45:59 -06:00
1ba78539fb
refactor: added basic input format and cleanup
2025-04-26 17:45:59 -06:00
4dd01867f7
refactor: change error message to warning
2025-04-26 17:45:59 -06:00
6ae0121af7
fix: secrets remove not updating local store and return error when not found
2025-04-26 17:45:59 -06:00
c3e1b40e3b
fix: changed number of minimum args for secrets list
2025-04-26 17:45:58 -06:00
8866dff307
refactor: added flag to set secrets file for crawl
2025-04-26 17:45:58 -06:00
149fcaec6d
refactor: changed to use local store with static store fallback
2025-04-26 17:45:58 -06:00
07e3d0eb7a
refactor: changed required number of args for secrets list
2025-04-26 17:45:58 -06:00
0569329529
refactor: added exact number of args to list cmd
2025-04-26 17:45:58 -06:00
d4443ac6c9
fix: added secrets file path to collect parameters
2025-04-26 17:45:57 -06:00
35cf2222a0
refactor: added func to remove secrets from store
2025-04-26 17:45:57 -06:00
9e831914df
refactor: updated secrets cmd implementation
2025-04-26 17:45:57 -06:00
51ff7b098c
feat: add 'secrets' command to root
2025-04-26 17:45:57 -06:00
842e864384
refactor: updated description/example and added 'secrets-file' flag to cmd
2025-04-26 17:44:49 -06:00
abe0b5e27a
bugfix: fixed URL param not being set for UpdateFirmwareRemote
2025-04-26 17:19:12 -06:00
Alex Lovell-Troy
ee1fc327e2
feat(secrets): implement SecretStore interface and StaticStore/LocalStore for credential management
2025-04-26 17:19:12 -06:00
ccce61694b
fix: changed 'update' cmd to use gofish
2025-04-26 17:17:04 -06:00
e19af0ce0c
refactor: moved internal functions to pkg and updated refs
2025-04-26 17:15:16 -06:00
Alex Lovell-Troy
b31ed136f6
feat: add --insecure flag to allow insecure connections for firmware updates
2025-04-26 17:03:15 -06:00
c0e498766f
refactor: exported more cmd variables
2024-12-11 14:13:51 -07:00
94a1ea33fd
cmd: exported scan and collect commands for external use
2024-12-11 10:14:35 -07:00
e529e0fda3
updated references in cmd/cache.go
2024-11-03 21:25:52 -07:00
David Allen
19f7803f9a
Merge pull request #6 from davidallendj/update-refs
...
Update refs
2024-11-03 19:54:39 -07:00
d889082e80
updated all references
2024-11-03 19:53:48 -07:00
David Allen
170df80621
Merge branch 'main' into cache-cmd
2024-11-03 19:37:29 -07:00