Skip to main content

JSON secrets keeper

Project description


Have you ever used JSON as your config? Have you keep secrets in config as plain text, that you dont want to? Then this is the right tool for you.
JackSON is the simple and flexible file extension of JSON file types written in python (in less than 50 lines of code), this extension allows the users to keep their secrets in environment variables and pass the reference to those environment variables into the JSON file(jackson). The secrets in the environment variables will be read securely in to the in memory dict.

The problem that it solves:

  • Retrive secrest from env variables.
  • Retrive secrets from remote/servers(HSMs).

How to JackSON

JackSON is exported as python package. You can install it via pip.
pip install --user

export foo=10
export bar=100

Example JackSON config file.

    "_comment1": "Value from foo env variable",
    "key1": "",
    "_comment2": "Value from bar env variable",
    "key2": "",
    "_comment3": "Value from python module",
    "key3": "!a.b",
    "_comment4": "key/value pair similar to json",
    "key4": "value4"

Inside the code.

import jackson
import json    # For converting JackSON --> JSON
d = json.load("./config.jackson"))

And this is how it looks.

    'key3': 'reached',
    'key2': '100',
    'key1': '10',
    'key4': 'value4',
    '_comment4': 'key/value pair similar to json',
    '_comment3': 'Value from python module',
    '_comment2': 'Value from bar env variable',
    '_comment1': 'Value from foo env variable'

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

JackSON-0.1.2.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

JackSON-0.1.2-py3-none-any.whl (1.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page