Enables to cipher a value using AES/CBC/PKCS5Padding algorithm with a master password. It can then be used as a placeholder with the syntax {{bundlebee-decipher:{{my.master.password}},$cipheredValue}}.

Coordinates

<plugin>
  <groupId>io.yupiik</groupId>
  <artifactId>bundlebee-maven-plugin</artifactId>
  <version>1.0.28-SNAPSHOT</version>
</plugin>

To call this goal from the command line execute: mvn bundlebee:cipher.

To bind this goal in the build you can use:

<plugin>
  <groupId>io.yupiik</groupId>
  <artifactId>bundlebee-maven-plugin</artifactId>
  <version>1.0.28-SNAPSHOT</version>
  <executions>
    <execution>
      <id>my-execution</id>
      <goals>
        <goal>cipher</goal>
      </goals>
      <configuration>
        <!-- execution specific configuration come there -->
      </configuration>
    </execution>
  </executions>
</plugin>

You can execute this goal particularly with mvn bundlebee:cipher@my-execution command.

Configuration

customPlaceholders (Map)

Custom properties injected in the main, it is often used for placeholders. If the key (tag in pom) starts with bundlebee-placeholder-import then the value is resolved as a properties file which is injected in the resulting placeholders (indirect placeholders). Property: ${bundlebee.cipher.customPlaceholders}.

masterPassword (String)

Master password.. Default value: <unset>. Property: ${bundlebee.cipher.masterPassword}.

packaging (String)

Current module packaging. Default value: ${project.packaging}. Property: ``.

skip (boolean)

Skip execution. Default value: false. Property: ${bundlebee.skip}.

skipMavenForcedFilteringForPlaceholders (boolean)

If true, bundlebee lookup in maven context will be one level only which means foo will be looked up as such in maven and not `${foo} which will work. Default value: false. Property: ${bundlebee.skipMavenForcedFilteringForPlaceholders}.

skipPackaging (List)

Skipped packaging types. Default value: pom. Property: ${bundlebee.skipPackaging}.

useDefaultLogging (boolean)

Should JUL logging redirected to Maven logging (enable it only if you set up maven to use JUL). Default value: false. Property: ${bundlebee.useDefaultLogging}.

value (String)

Value to cipher. Default value: <unset>. Property: ${bundlebee.cipher.value}.