2491c6bd1c
chore: updated .gitignore
2025-05-01 23:26:48 -06:00
0fbd7d8fa3
chore: updated go deps
2025-05-01 23:25:58 -06:00
5e3332e080
chore: updated utility functions
2025-05-01 23:25:27 -06:00
040e9ac808
feat: added 'list device' command
2025-05-01 23:23:36 -06:00
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
a9a3ebee20
refactor: updated references
2025-04-26 17:54:41 -06:00
f3ede4117f
updated all references
2025-04-26 17:54:41 -06:00
0f811543f5
Changed DeleteScannedAssets to work correct and added db tag
2025-04-26 17:50:29 -06:00
738685095f
readme: updated information about default secrets
2025-04-26 17:46:52 -06:00
ad30eb297d
fix: added check to stop collect on error
2025-04-26 17:46:52 -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
e4a521971a
fix(bmc): check for default key
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
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