Designed by Agile Lab, Witboost is a versatile platform that addresses a wide range of sophisticated data engineering challenges. It enables businesses to discover, enhance, and productize their data, fostering the creation of automated data platforms that adhere to the highest standards of data governance. Want to know more about Witboost? Check it out here or contact us!
This repository is part of our Starter Kit meant to showcase Witboost's integration capabilities and provide a "batteries-included" product.
This project implements a simple Specific Provisioner that provision S3 Storage for a CDP environment.
A Specific Provisioner is a microservice which is in charge of deploying components that use a specific technology. When the deployment of a Data Product is triggered, the platform generates it descriptor and orchestrates the deployment of every component contained in the Data Product. For every such component the platform knows which Specific Provisioner is responsible for its deployment, and can thus send a provisioning request with the descriptor to it so that the Specific Provisioner can perform whatever operation is required to fulfill this request and report back the outcome to the platform.
You can learn more about how the Specific Provisioners fit in the broader picture here.
Cloudera Data Platform (CDP) is an integrated data management and analytics platform that empowers organizations to efficiently collect, store, and analyze data from various sources. CDP offers a unified environment for data management, enabling businesses to make informed decisions, gain insights, and drive data-driven innovation. Explore CDP further with the official documentation: Cloudera Data Platform Documentation.
This microservice is written in Scala 2.13, using HTTP4S for the HTTP layer. Project is built with SBT and supports packaging as JAR, fat-JAR and Docker image, ideal for Kubernetes deployments (which is the preferred option).
Requirements:
- Java 11
- SBT
- Docker (for building images only)
This project depends on a private library scala-mesh-commons
which you should have access to at compile time. Currently, the library is hosted as a package in a Gitlab Maven Package Registry.
To pull these libraries, we need to set up authentication to the Package Registry (see Gitlab docs). We've set authentication based on environment variables that sbt uses to authenticate. Please export the following environment variables before importing the project:
export GITLAB_ARTIFACT_HOST=https://gitlab.com/api/v4/projects/51107980/packages/maven
export GITLAB_ARTIFACT_USER=<Gitlab Username>
export GITLAB_ARTIFACT_TOKEN=<Gitlab Personal Access Token>
Generating sources: this project uses OpenAPI as standard API specification and the sbt-guardrail plugin to generate server code from the specification.
The code generation is done automatically in the compile phase:
sbt compile
Tests: are handled by the standard task as well:
sbt test
Artifacts & Docker image: the project uses SBT Native Packager for packaging. Build artifacts with:
sbt package
To build an image using the local Docker server:
sbt docker:publishLocal
Note: the version for the project is automatically computed using the environment variable VERSION
.
CI/CD: the pipeline is based on GitLab CI as that's what we use internally. It's configured by the .gitlab-ci.yaml
file in the root of the repository. You can use that as a starting point for your customizations.
To run the server locally, use:
sbt compile run
By default, the server binds to port 8093 on localhost. After it's up and running you can make provisioning requests to this address.
Most application configurations are handled with the Typesafe Config library. You can find the default settings in the reference.conf
. Customize them and use the config.file
system property or the other options provided by Typesafe Config according to your needs.
Logging is handled with Logback. Customize it and pass it using the logback.configurationFile
system property.
This Specific Provisioner uses the followings SDK:
- CDP SDK: please refer to the official documentation to setup the access credentials
- AWS SDK: please refer to the official documentation to setup the access credentials
This Specific Provisioner expects the following environment variables to be defined:
Variable | Description |
---|---|
CDP_DEPLOY_ROLE_USER | The CDP user to be used with CDP services (eg Ranger) |
CDP_DEPLOY_ROLE_PASSWORD | The CDP password to be used with CDP services (eg Ranger) |
The CDP user must be a Machine User
and needs to have at least the following roles:
- EnvironmentAdmin
- EnvironmentUser
Configuration | Description | Default |
---|---|---|
provisioner.networking.httpServer.interface | Interface to bind the specific provisioner API layer | 0.0.0.0 |
provisioner.networking.httpServer.port | Port to bind the specific provisioner API layer | 8093 |
Example:
provisioner {
networking {
httpServer {
port: 8093
interface: "0.0.0.0"
}
}
}
Configuration | Description | Default |
---|---|---|
s3.principalsMappingPlugin | Object containing the configuration for instantiating the PrincipalsMapper | |
s3.principalsMappingPlugin.pluginClass | Fully qualified name of the PrincipalsMapperFactory to be instantiated |
Each PrincipalsMapperFactory may require additional configuration information to create the PrincipalsMapper instance. This configuration is retrieved from an object in the principalsMappingPlugin
config object. The key of this object shall be equal to the configIdentifier
of the instantiated PrincipalsMapperFactory
Example of configuration to load FreeIpaIdentityPrincipalsMapper
:
s3 {
principalsMappingPlugin {
pluginClass = "it.agilelab.provisioning.commons.principalsmapping.impl.freeipa.FreeIpaIdentityPrincipalsMapperFactory"
freeipa-identity {}
}
}
This microservice is meant to be deployed to a Kubernetes cluster. We provide an helm chart for this purpose.
This project is available under the Apache License, Version 2.0; see LICENSE for full details.
Agile Lab creates value for its Clients in data-intensive environments through customizable solutions to establish performance driven processes, sustainable architectures, and automated platforms driven by data governance best practices.
Since 2014 we have implemented 100+ successful Elite Data Engineering initiatives and used that experience to create Witboost: a technology agnostic, modular platform, that empowers modern enterprises to discover, elevate and productize their data both in traditional environments and on fully compliant Data mesh architectures.
Contact us or follow us on: