Giter VIP home page Giter VIP logo

clivern / lynx Goto Github PK

View Code? Open in Web Editor NEW
219.0 6.0 6.0 32.98 MB

๐Ÿบ A Fast, Secure and Reliable Terraform Backend, Set up in Minutes.

Home Page: https://lynx.clivern.com/

License: MIT License

Elixir 95.76% Dockerfile 0.86% Makefile 0.61% JavaScript 0.62% Shell 0.05% HTML 1.76% HCL 0.30% Batchfile 0.03%
terraform terraform-backend clivern lynx terraform-http-backend terraform-project terraform-workspace

lynx's Introduction

Lynx Logo

Lynx

A Fast, Secure and Reliable Terraform Backend, Set up in Minutes.


Lynx is a Fast, Secure and Reliable Terraform Backend. It is built in Elixir with Phoenix framework.

Features:

  • Simplified Setup: Easy installation and maintenance for hassle-free usage.
  • Team Collaboration: Manage multiple teams and users seamlessly.
  • User-Friendly Interface: Enjoy a visually appealing dashboard for intuitive navigation.
  • Project Flexibility: Support for multiple projects within each team.
  • Environment Management: Create and manage multiple environments per project.
  • State Versioning: Keep track of Terraform state versions for better control.
  • Rollback Capability: Easily revert to previous states for efficient infrastructure management.
  • Terraform Locking Support: The project also supports Terraform locking, ensuring state integrity and preventing concurrent operations that could lead to data corruption
  • RESTful Endpoints: for seamless teams, users, projects, environments, and snapshots management.
  • Snapshots Support: for both projects and environments to ensure data integrity and provide recovery options at specific points in time.
  • Terraform Provider: Automate creation/updates of teams, users, projects, environments and snapshots with terraform.

Upcoming Features:

  • OAuth2 Authentication Support: Support for OAuth2 Providers like Azure AD OAuth, Keycloak, Okta ... etc

Docker Deployment

  1. To run with docker and docker-compose. Make sure you update server_name in nginx.conf file.
$ git clone https://github.com/Clivern/Lynx.git app
$ cd app
$ docker-compose up -d

Here is a video demonstration

Ubuntu Deployment

  1. Install elixir and PostgreSQL
$ apt-get update
$ apt-get upgrade -y
$ apt-get install -y postgresql \
    elixir \
    erlang-dev \
    make \
    build-essential \
    erlang-os-mon \
    inotify-tools \
    erlang-xmerl
  1. Setup PostgreSQL database, username and password
# Create PostgreSQL user with password
$ sudo -u postgres psql -c "CREATE USER lynx WITH PASSWORD 'lynx';"
$ sudo -u postgres psql -c "ALTER USER lynx CREATEDB;"

# Create database
$ sudo -u postgres psql -c "CREATE DATABASE lynx_dev OWNER lynx;"
  1. Configure Environment Variables: Set up the required environment variables from .env.example.
$ mkdir -p /etc/lynx
$ cd /etc/lynx
$ git clone https://github.com/Clivern/Lynx.git app
$ cd /etc/lynx/app
$ cp .env.example .env.local # Adjust the database configs
  1. Migrate the database
$ make deps
$ make migrate
  1. Create a systemd service file /etc/systemd/system/lynx.service
[Unit]
Description=Lynx

[Service]
Type=simple
Environment=HOME=/root
EnvironmentFile=/etc/lynx/app/.env.local
WorkingDirectory=/etc/lynx/app
ExecStart=/usr/bin/mix phx.server

[Install]
WantedBy=multi-user.target
$ systemctl enable lynx.service
$ systemctl start lynx.service

Development

To run postgresql with docker or podman

$ docker run -itd \
    -e POSTGRES_USER=lynx \
    -e POSTGRES_PASSWORD=lynx \
    -e POSTGRES_DB=lynx_dev \
    -p 5432:5432 \
    --name lyx \
    postgres:15.2

$ podman run -itd \
    -e POSTGRES_USER=lynx \
    -e POSTGRES_PASSWORD=lynx \
    -e POSTGRES_DB=lynx_dev \
    -p 5432:5432 \
    --name lyx \
    postgres:15.2

# https://github.com/dbcli/pgcli
$ psql -h 127.0.0.1 -U lynx -d lynx_dev -W

Then run lynx with the following commands

$ cp .env.example .env.local

$ export $(cat .env.local | xargs)
$ make deps

$ make migrate

$ make run

$ make test

API Documentation

To explore the API documentation, copy the content of api.yml and paste in https://editor.swagger.io/.

Versioning

For transparency into our release cycle and in striving to maintain backward compatibility, Lynx is maintained under the Semantic Versioning guidelines and release process is predictable and business-friendly.

See the Releases section of our GitHub project for changelogs for each release version of Lynx. It contains summaries of the most noteworthy changes made in each release. Also see the Milestones section for the future roadmap.

Bug tracker

If you have any suggestions, bug reports, or annoyances please report them to our issue tracker at https://github.com/clivern/lynx/issues

Security Issues

If you discover a security vulnerability within Lynx, please send an email to [email protected]

Contributing

We are an open source, community-driven project so please feel free to join us. see the contributing guidelines for more details.

License

ยฉ 2023, Clivern. Released under MIT License.

Lynx is authored and maintained by @clivern.

lynx's People

Contributors

clivern avatar renovate[bot] avatar stack-file[bot] avatar taraio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

lynx's Issues

Create Helm Chart for K8s Deployment

Is your feature request related to a problem? Please describe.

As a DevOps Engineer, I have a given base Infrastructure on hand where I want to deploy this software to deploy another cluster with terraform in the cloud.

Describe the solution you'd like

...so I need to deploy it inside my existing cluster via helm. So, I don't want to define my own Kubernetes resources, so I would appreciate it, if we could share one resource definition for this inside the community

Additional context

Add any other context or screenshots about the feature request here.

Avoid repo clone to deploy Lynx

Depends on: #60 , #59 (optional)

As a user of Lynx, I just want to deploy this application via portainer or helm and don't clone the code locally.
Therefore I need an updated Readme File to simplify the deployment process

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

docker-compose
docker-compose.yml
  • clivern/lynx 0.11.8
  • postgres 16.3
  • nginx 1.25.4-alpine3.18
dockerfile
Dockerfile
github-actions
.github/workflows/docker.yml
  • actions/checkout v4
  • docker/login-action 70fccc794acd729b2b22dd6a326895f286447728
  • docker/metadata-action f7b4ed12385588c3f9bc252f0a2b520d83b52d48
  • docker/build-push-action 2a53c6ccda456d31fb62eedc658aae06e238b7bd
.github/workflows/server_ci.yml
  • actions/checkout v3
  • erlef/setup-beam v1
mix
mix.exs
  • phoenix ~> 1.6.13
  • phoenix_ecto ~> 4.4
  • ecto_sql ~> 3.6
  • postgrex >= 0.0.0
  • phoenix_html ~> 3.0
  • phoenix_live_reload ~> 1.2
  • phoenix_live_view ~> 0.17.5
  • floki >= 0.30.0
  • phoenix_live_dashboard ~> 0.6
  • esbuild ~> 0.7
  • swoosh ~> 1.3
  • telemetry_metrics ~> 0.6
  • telemetry_poller ~> 1.0
  • gettext ~> 0.22
  • jason ~> 1.4
  • plug_cowboy ~> 2.5
  • bcrypt_elixir ~> 3.0
  • prom_ex ~> 1.9.0
terraform
example/main.tf
  • time 0.11.1
  • hashicorp/terraform 1.3.7

  • Check this box to trigger a request for Renovate to run again on this repository

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.