Code Monkey home page Code Monkey logo

atlassian-azurekeyvaultcipher's Introduction

Azure Keyvault Cipher for Atlassian

This library allows one to directly use a password from Azure Keyvault for Database access in Atlassian Applications.

Prerequisites

  • Atlassian Application running in Azure (e.g. on a VM)
  • Managed Identity for the VM
  • Access to the Keyvault with the Managed Identity โš 

Building

With Maven:

mvn package

This will produce azurekeyvaultcipher-x.x.x.jar in the target directory.

Usage

Simply copy azurekeyvaultcipher-x.x.x.jar and the jar for the org.json dependency to JIRA_INSTALL_DIR/atlassian-jira/WEB-INF/lib and add the following lines to your database config:

<atlassian-password-cipher-provider>org.schuppentier.AzureKeyvaultCipher</atlassian-password-cipher-provider>
<password>https://example-keyvault.vault.azure.net/secrets/postgres-user-jira</password>

The URL will need to be adjusted for your environment.

Examples

Jira

<?xml version="1.0" encoding="UTF-8"?>

<jira-database-config>
  <name>defaultDS</name>
  <delegator-name>default</delegator-name>
  <database-type>postgres72</database-type>
  <schema-name>public</schema-name>
  <jdbc-datasource>
    <url>jdbc:postgresql://example-psql.postgres.database.azure.com:5432/jira</url>
    <driver-class>org.postgresql.Driver</driver-class>

    <username>jira@example-psql</username>
    <atlassian-password-cipher-provider>org.schuppentier.AzureKeyvaultCipher</atlassian-password-cipher-provider>
    <password>https://example-keyvault.vault.azure.net/secrets/postgres-user-jira</password>
    <pool-min-size>10</pool-min-size>
    <pool-max-size>30</pool-max-size>
    <pool-max-wait>30000</pool-max-wait>
    <validation-query>select version();</validation-query>
    <min-evictable-idle-time-millis>60000</min-evictable-idle-time-millis>
    <time-between-eviction-runs-millis>300000</time-between-eviction-runs-millis>
    <pool-max-idle>10</pool-max-idle>
    <pool-remove-abandoned>true</pool-remove-abandoned>
    <pool-remove-abandoned-timeout>300</pool-remove-abandoned-timeout>
    <pool-test-on-borrow>false</pool-test-on-borrow>
    <pool-test-while-idle>true</pool-test-while-idle>
  </jdbc-datasource>
</jira-database-config>

atlassian-azurekeyvaultcipher's People

Contributors

dstengele avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.