Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3 from tlisonbee/cerberus-client-5.3.1
Browse files Browse the repository at this point in the history
Release 1.0.0: Upgrading to cerberus-client-5.3.1
  • Loading branch information
tlisonbee authored Jun 7, 2018
2 parents 631b74b + 0c8939f commit 00e3b9c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ To learn more about Cerberus, please see the [Cerberus website](http://engineeri
6. Access secrets from Cerberus using Java client
``` java
@Autowired
VaultClient vaultClient;
CerberusClient cerberusClient;

String path = "/app/my-sdb-name"; // path from Cerberus dashboard
Map<String,String> secrets = vaultClient.read(path).getData();
Map<String,String> secrets = cerberusClient.read(path).getData();
String secret = secrets.get("propname"); // property name from Cerberus dashboard
```

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
version=0.2.0
version=1.0.0
groupId=com.nike
artifactId=cerberus-spring-boot-client
3 changes: 1 addition & 2 deletions gradle/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ dependencies {
compile "org.springframework.boot:spring-boot-autoconfigure:1.5.2.RELEASE"

// Cerberus dependencies
compile "com.nike:cerberus-client:4.2.0"
compile "com.nike:vault-client:2.0.1"
compile "com.nike:cerberus-client:5.3.1"

// Test dependencies
testRuntime 'org.slf4j:slf4j-simple:1.7.25'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

package com.nike.cerberus.springboot;

import com.nike.cerberus.client.CerberusClient;
import com.nike.cerberus.client.DefaultCerberusClientFactory;
import com.nike.vault.client.VaultClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
Expand Down Expand Up @@ -51,7 +51,7 @@ public CerberusClientSpringBootConfiguration(CerberusClientSpringBootProperties
* @see <a href="http://engineering.nike.com/cerberus/docs/user-guide/quick-start">Cerberus Quick Start Guide</a>
*/
@Bean
public VaultClient vaultClient() {
public CerberusClient cerberusClient() {
String url = cerberusClientProperties.getUrl();
if (url == null || url.isEmpty()) {
throw new IllegalArgumentException("cerberus.url setting is required! " +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class CerberusClientSpringBootConfigurationTest {

@Test(expected = IllegalArgumentException.class)
public void testForExceptionOnMissingRequiredProperty() throws Exception {
new CerberusClientSpringBootConfiguration(new CerberusClientSpringBootProperties()).vaultClient();
new CerberusClientSpringBootConfiguration(new CerberusClientSpringBootProperties()).cerberusClient();
}

}

0 comments on commit 00e3b9c

Please sign in to comment.