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
3074e7323a
readme: added tip about default secrets
2025-04-26 17:46:49 -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
b7761c2cbf
readme: update with secrets and emulator sections
2025-04-26 17:46:49 -06:00
5b28ea4575
cmd: allow short opts for username/password
2025-04-26 17:46:01 -06:00
e20b6a3b8e
makefile: corrected golangci-lint install string
2025-04-26 17:46:01 -06:00
5e200edab5
lint: apply changes from golint
2025-04-26 17:46:00 -06:00
69abd2041d
makefile: updated golangci-lint version
2025-04-26 17:46:00 -06:00
94a339e39e
refactor: changed var name for clarity and added logging details
2025-04-26 17:46:00 -06:00
6c5e958863
fix: added username/password to collect params
2025-04-26 17:46:00 -06:00
b7cf7233a8
fix: collect not falling back to CLI args correctly
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
da8b1a1756
refactor: minor changes to error messages
2025-04-26 17:45:59 -06:00
4dd01867f7
refactor: change error message to warning
2025-04-26 17:45:59 -06:00
5c624de821
refactor: export function to save JSON secrets
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
0333caa403
refactor: changed removing secret from store returns error
2025-04-26 17:45:58 -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
a4928b9ebb
refactor: minor changes to store in collect
2025-04-26 17:45:57 -06:00
b49b1f761d
fix: added missing funcs for secret store implementations
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
22af66f95c
chore: updated go deps
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
f9059c50a1
refactor: added optional secrets file parameter and lookup in collect
2025-04-26 17:44:48 -06:00
9396de11c2
chore: added pre-condition guards for secrets
2025-04-26 17:44:48 -06:00
cdf380bd64
refactor: added function to open secrets store by checking env var
2025-04-26 17:44:48 -06:00
David Allen
5aacfceb0d
Fix emulator image in rf-emulator.yml
...
Signed-off-by: David Allen <16520934+davidallendj@users.noreply.github.com>
2025-04-26 17:44:48 -06:00
David Allen
d45bfa333d
fix: update goimports in update.go
2025-04-26 17:43:17 -06:00
397571c441
collect: return collection output from CollectInventory()
2025-04-26 17:42:00 -06:00
David Allen
983985464b
chore: fix critical dependabot issues by updating crypto
2025-04-26 17:39:09 -06:00
Alex Lovell-Troy
9b1147d177
feat(secrets): implement SecretStore interface and StaticStore/LocalStore for credential management
2025-04-26 17:37:04 -06:00
f47869069b
collect: return collection output from CollectInventory()
2025-04-26 17:37:04 -06:00