-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rust improvements #331
Merged
Merged
Rust improvements #331
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
216bc02
update clap
Esgrove 2946b23
bump rust version to 0.5.0
Esgrove b2fd4f6
use lto for release binary
Esgrove 5c31297
tweak readme
Esgrove 2581246
separate std imports
Esgrove f6441db
add env variable for aws region
Esgrove 197e611
simplify error context
Esgrove c23885e
rust version 0.6.0
Esgrove b9ea497
run formatting checks only when needed
Esgrove b744e7a
Merge branch 'master' into rust-improvements
Esgrove 35863ca
package updates
Esgrove abfb8ab
change to patch version update
Esgrove File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
[package] | ||
name = "nitor-vault" | ||
version = "0.5.0" | ||
version = "0.5.1" | ||
edition = "2021" | ||
description = "Encrypted AWS key-value storage utility." | ||
license = "Apache-2.0" | ||
repository = "https://github.com/nitorcreations/vault" | ||
keywords = ["secrets", "s3", "cli"] | ||
authors = [ | ||
"Kalle Ahlström <[email protected]", | ||
"Akseli Lukkarila <[email protected]>", | ||
] | ||
description = "Encrypted AWS key-value storage" | ||
license = "Apache-2.0" | ||
repository = "https://github.com/nitorcreations/vault" | ||
keywords = ["secrets", "s3"] | ||
|
||
[dependencies] | ||
aes-gcm = "0.10.3" | ||
|
@@ -18,14 +18,17 @@ aws-config = { version = "1.1.2", features = ["behavior-version-latest"] } | |
aws-sdk-cloudformation = "1.11.0" | ||
aws-sdk-kms = "1.10.0" | ||
aws-sdk-s3 = "1.12.0" | ||
base64 = "0.21.5" | ||
clap = { version = "4.4.13", features = ["derive", "env"] } | ||
base64 = "0.21.7" | ||
clap = { version = "4.4.16", features = ["derive", "env"] } | ||
rand = "0.8.5" | ||
serde = { version = "1.0.195", features = ["derive"] } | ||
serde_json = "1.0" | ||
serde_json = "1.0.111" | ||
thiserror = "1.0.56" | ||
tokio = { version = "1", features = ["full"] } | ||
|
||
[[bin]] | ||
name = "vault" | ||
path = "src/main.rs" | ||
|
||
[profile.release] | ||
lto = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, how does this work aka which gets priority. E.g.
AWS_REGION=eu-west-1 vault --region eu-central-1 lookup secret
, which one is the one that is used? I'd assume it's the flag one, but unsureThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested this, works as expected, the command above targets
eu-central-1