NitorCreations / vault

Encrypted AWS key-value storage
0 stars 2 forks source link

Java library for AWS Java SDK v2 #41

Open jsyrjala opened 4 years ago

jsyrjala commented 4 years ago

Implement java library for using AWS Java SDK v2 https://docs.aws.amazon.com/sdk-for-java/v2/developer-guide/welcome.html

Make separate maven library for this, e.g com.nitorcreations:aws-vault-v2 so that projects using v2 SDK do not have include v1 stuff.

jsyrjala commented 4 years ago

Let's also make VaultException to be RuntimeException.

psiniemi commented 4 years ago

This is now in master. Will release once we get node cli and integration tests that cover all the language versions via the cli

jsyrjala commented 4 years ago

I am wondering this difference:

Default stack names are "vault" and "vault2". Why the difference? I think you should be able to use the same CloudFormation stack with both libs.

psiniemi commented 4 years ago

Yes, good catch. Refactoring bug... BTW this does not work yet - needs to be tested properly.

jsyrjala commented 4 years ago

Also old vault lib has a problem where VaultException is not thrown on all errors, some times you get AWS exceptions, like when key does not exist.