Coder Social home page Coder Social logo

konbini's Introduction

Konbini

A service to manage secrets for your awesome projects. You can use any software like curl or bruno to access the service because its like any other REST API.

Try Mi CLI, the official CLI for Konbini.

Feel free to fork/clone this repository and host the service on your own server. Read the documentation for more help.

Table of Content

Database Setup

Make sure you have PostgreSQL (code works with v14) installed.

After installing POstgreSQL, run the followin commands to create the database and user.

Change user to postgres and connect to database server:

sudo -i -u postgres
psql

Crate a new database named konbini:

CREATE DATABASE konbini;

Create a new user named cashier:

CREATE USER cashier WITH PASSWORD 'mypassword';

Grant privileges to the user cashier:

GRANT ALL PRIVILEGES ON DATABASE konbini TO cashier;

konbini's People

Contributors

juancwu avatar

Watchers

Lucian avatar  avatar  avatar

konbini's Issues

Add endpoint to update existing bento

Add PATCH /bento/personal/:id to update an existing bento

Request Body application/json

{
  content: string; // new bento content
  challenge: string; // a signed challenge
}

Response Body application/json

{
  success: boolean;
  updated_at: string; // ISO 8601
}

Add endpoint to delete bento

Add DELETE /bento/personal/:id to delete a bento

Request Header

Authorization: Bearer token

Request Body application/json

{
  challenge: string; // signed challenge
}

Response Body application/json

{
  deleted: boolean;
  deleted_at: string; // ISO 8601
}

Split and store env entries

Right now the env file is stored as one entity in the database which limits functionality:

  • Can't just update a single env, must provide a new "snapshot"
  • If two individuals are updating the same bento, the last individual's version would persist

Would like to update the way konbini stores the env entries allowing more flexibility and features.

Add endpoint to get list of bentos

Add GET /bento/personal/list to get all the bentos.

Response Body application/json

{
  id: string;
  name: string;
  created_at: string; // ISO 8601
  updated_at: string; // ISO 8601
}

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.