Repository for custom Dropwizard bundles used in CrateKube repositories
The api-key-auth
bundle provides an extension to Dropwizard authc/authz, allowing you to specify api keys that must
be sent for requests. Usage of this bundle can be seen in the ApiKeyAuthBundleSpec
integration spec. Multiple keys with associated roles can be configured via a Dropwizard configuration file.
This project uses gradle for building and testing. We also use the gradle wrapper to avoid downloading a local distribution. The commands below are helpful for building and testing.
./gradlew build
compile and build./gradlew check
run static code analysis and tests
We strive to have our builds repeatable across development environments, so we also provide a Docker build to generate the Dropwizard application container. The examples below should be executed from the root of the project.
Running the base docker build:
docker build --target build .
This project generates a maven asset for each subproject. To use the bundle in your Dropwizard application you will need to include a dependency using the maven coordinates. To use a bundle include following dependency in your project:
Gradle:
implementation 'io.cratekube.dropwizard-bundles:<subproject-name>:1.0.0'
Maven:
<dependency>
<groupId>io.cratekube.dropwizard-bundles</groupId>
<artifactId>subproject-name</artifactId>
<version>1.0.0</version>
</dependency>
If you are interested in contributing to this project please review the contribution guidelines. Thank you for your interest in CrateKube!