Sign inSign up

willsenabr/konga

By willsenabr

Updated over 2 years ago

This fork is an attempt to address Konga's security vulnerabilities.

Image
API management
Developer tools
Web servers
0

3.4K

willsenabr/konga repository overview

Attention

This fork is an attempt to address Konga's security vulnerabilities by lowering the number of default node packages. As a database, I propose Mongo or Sqlite.

A pushed image at https://hub.docker.com/r/willsenabr/konga is the outcome of this.

Changes

Grunt / Bower

I discovered some security vulnerabilities with Grunt, and Bower is too old, so why not use static assets and delete these dependencies?

NPM packages that have not been updated

Because the project relies on a large number of vulnerable outdated packages, I uninstalled, replaced, and upgraded them whenever feasible.

Konga Updates

I have no plans to add new Konga features; I only want to maintain the project operational after Kong made modifications and the project died 💀.

Environment variables

These are the general environment variables Konga uses.

VARDESCRIPTIONVALUESDEFAULT
HOSTThe IP address that will be bind by Konga's server-'0.0.0.0'
PORTThe port that will be used by Konga's server-1337
NODE_ENVThe environmentproduction,developmentdevelopment
SSL_KEY_PATHIf you want to use SSL, this will be the absolute path to the .key file. Both SSL_KEY_PATH & SSL_CRT_PATH must be set.-null
SSL_CRT_PATHIf you want to use SSL, this will be the absolute path to the .crt file. Both SSL_KEY_PATH & SSL_CRT_PATH must be set.-null
KONGA_URLThe base frontend url-http://localhost:1337
KONGA_HOOK_TIMEOUTThe time in ms that Konga will wait for startup tasks to finish before exiting the process.-60000
DB_ADAPTERThe database that Konga will use. If not set, the localDisk db will be used.mongo,mysql,postgres-
DB_URIThe full db connection string. Depends on DB_ADAPTER. If this is set, no other DB related var is needed.--
DB_HOSTIf DB_URI is not specified, this is the database host. Depends on DB_ADAPTER.-localhost
DB_PORTIf DB_URI is not specified, this is the database port. Depends on DB_ADAPTER.-DB default.
DB_USERIf DB_URI is not specified, this is the database user. Depends on DB_ADAPTER.--
DB_PASSWORDIf DB_URI is not specified, this is the database user's password. Depends on DB_ADAPTER.--
DB_DATABASEIf DB_URI is not specified, this is the name of Konga's db. Depends on DB_ADAPTER.-konga_database
DB_IS_PG12_OR_NEWERIf true will set isVersion12OrNewer: true to sails-postgresql in order to work with Postgres12 or newer.true/false
KONGA_LOG_LEVELThe logging levelsilly,debug,info,warn,errordebug on dev environment & warn on prod.
TOKEN_SECRETThe secret that will be used to sign JWT tokens issued by Konga--
NO_AUTHRun Konga without Authenticationtrue/false-
  1. Start Konga

The following command will start Kong in PostgreSQL database mode; port 8001 is used to manage Kong API Gateway; keep in mind that this port is not secure, so keep it as private as possible in production.

docker compose up -d

Let's start Konga locally after starting Kong prerequisites.

# you should use Node (20x) required at .nvmrc
# install packages before
npm install

# then run node
npm start

You can start by using docker and the production image.

 docker compose -f dev.docker-compose.yml up -d

Konga will be listened on port 1337.

If you're using docker compose examples, remember to change your Kong address to http://172.17.0.1:8001 to connect Konga.

Official documentation

More information is available at the base forked repository pantsel/konga.

Tag summary

Content type

Image

Digest

sha256:152fe6ce4

Size

173.8 MB

Last updated

over 2 years ago

docker pull willsenabr/konga