Skip to content

Simple app that responds to GET requests with a JSON payload listing all environment variables.

License

Notifications You must be signed in to change notification settings

UnitVectorY-Labs/goenvecho

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub release License Active

goenvecho

Simple app that responds to GET requests with a JSON payload listing all environment variables.

Purpose

This application captures all environment variables that are set and returns them as a JSON object for requests made to GET /.

Why use this? It’s a straightforward tool for debugging, testing, and development, providing an easy way to view environment variables in a container environment.

Should I run this in production? Absolutely not! This could expose sensitive information stored in your environment variables.

Example Response

Whatever envirionment variables are set will be returned in the JSON, it is that simple.

For exmaple:

{
  "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
  "PORT": "8080",
  "PWD": "/"
}

Configuration

This application runs as a docker container and can utilize the following environment variables:

  • PORT - The port the application listens on. (default 8080)

Get started

Quickly get up and running by pulling the latest release from goenvecho on GitHub Packages and running it in your container environment of choice.

About

Simple app that responds to GET requests with a JSON payload listing all environment variables.

Resources

License

Stars

Watchers

Forks

Packages