Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.38 KB

README.md

File metadata and controls

44 lines (30 loc) · 1.38 KB

datarouter-secret-web

Installation with Maven

<dependency>
	<groupId>io.datarouter</groupId>
	<artifactId>datarouter-secret-web</artifactId>
	<version>0.0.126</version>
</dependency>

Installation with Datarouter

You can install this module by adding its plugin to the WebappBuilder.

.addPlugin(new DatarouterSecretWebPluginBuilderImpl(...)
		...
		.build()

About

This module adds features and implementations to datarouter-secret, using datarouter-storage and datarouter-web. Many of these are defaulted in DatarouterSecretWebPluginBuilder

DatarouterSecretOpRecordDao simply records SecretOps into a storage node.

SecretHandler is the recommended way to manually access Secrets. It is a simple CRUD UI that takes advantage of all the built-in features of SecretService.

DatarouterPropertiesAndServiceSecretNamespacer is a useful implementation of SecretNamespacer with the following behavior: for "app-specific" Secrets, the namespace is "<environment type>/<service name>/", and for "shared" Secrets, the namespace is "<environment type>/shared/". Environment type is determined by DatarouterProperties#getEnvironmentType, and service name is determined by DatarouterService#getName.

Usage

See datarouter-secret.

License

This library is licensed under the Apache License, Version 2.0 - see LICENSE for details.