{"id":13652647,"url":"https://github.com/rosehgal/jackson","last_synced_at":"2025-03-23T01:32:13.804Z","repository":{"id":55457288,"uuid":"138967798","full_name":"rosehgal/jackson","owner":"rosehgal","description":"Pythonic way of keeping secrets secure in JSON","archived":false,"fork":false,"pushed_at":"2020-12-29T15:25:19.000Z","size":121,"stargazers_count":18,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-03-01T07:24:01.168Z","etag":null,"topics":["json-parser","python","secret-in-json","secret-management"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rosehgal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-28T04:55:29.000Z","updated_at":"2022-08-16T23:10:18.000Z","dependencies_parsed_at":"2022-08-15T00:40:40.343Z","dependency_job_id":null,"html_url":"https://github.com/rosehgal/jackson","commit_stats":null,"previous_names":["r0hi7/jackson"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosehgal%2Fjackson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosehgal%2Fjackson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosehgal%2Fjackson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosehgal%2Fjackson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rosehgal","download_url":"https://codeload.github.com/rosehgal/jackson/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244259873,"owners_count":20424633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["json-parser","python","secret-in-json","secret-management"],"created_at":"2024-08-02T02:01:01.255Z","updated_at":"2025-03-23T01:32:13.518Z","avatar_url":"https://github.com/rosehgal.png","language":"Python","funding_links":[],"categories":["Format Extensions"],"sub_categories":[],"readme":"# J\u003csub\u003eack\u003c/sub\u003eSON\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"./ext/jackson.png\" height=\"300px\"/\u003e\n\u003c/p\u003e  \n\nHave 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.  \n**J\u003csub\u003eack\u003c/sub\u003eSON** 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.\n\nThe problem that it solves:  \n* Retrieve secrets from env variables.\n* Retrieve secrets from remote/servers(HSMs).\n\n### How to J\u003csub\u003eack\u003c/sub\u003eSON\nJ\u003csub\u003eack\u003c/sub\u003eSON is exported as python package. You can install it via `pip`.  \n`pip install --user jackson`\n```bash\nexport foo=10\nexport bar=100\n```\nExample J\u003csub\u003eack\u003c/sub\u003eSON config file.  \n```json\n{\n    \"_comment1\": \"Value from foo env variable\",\n    \"key1\": \"env.foo\",\n    \"_comment2\": \"Value from bar env variable\",\n    \"key2\": \"env.bar\",\n    \"_comment3\": \"Value from python module\",\n    \"key3\": \"!a.b\",\n    \"_comment4\": \"key/value pair similar to json\",\n    \"key4\": \"value4\"\n}\n```\nInside the code.\n```python3\nimport jackson\nimport json    # For converting JackSON --\u003e JSON\nd = json.load(jackson.File.open(\"./config.jackson\"))\nprint(d)\n```\nAnd this is how it looks.\n```json\n{   \n    \"key4\": \"value4\",\n    \"key3\": \"reached\",\n    \"key2\": \"100\",\n    \"key1\": \"10\",\n    \"_comment4\": \"key/value pair similar to json\",\n    \"_comment3\": \"Value from python module\",\n    \"_comment2\": \"Value from bar env variable\",\n    \"_comment1\": \"Value from foo env variable\"\n}\n```\n***\n### Key Features:\n* Reference to environment variables.\n* Reference to the code, which will resolve to secret variable.\n***\nPull requests are more than appreciated.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frosehgal%2Fjackson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frosehgal%2Fjackson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frosehgal%2Fjackson/lists"}