Skip to content

linecard/entry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

entry

Entry provides a simple solution for managing application configuration during any phase of the development lifecycle.

Usage

CLI

./entry -p /path/to/env -- env

Dockerfile

FROM scratch
COPY --from=ghcr.io/linecard/entry:latest /ko-app/entry /opt/entry

ENTRYPOINT ["/opt/entry", "-p", "/path/to/env", "--"] 
CMD ["env"]

Storing Environment

Entry assumes the usage of AWS SSM as the backing data store for your environments.

SSM Parameter

  1. The parameter type shall be of type Secret String.
  2. The parameter value shall be of JSON format.
  3. The parameter JSON schema shall be of the form...
{
    "ENVAR_1": "value_1",
    "ENVAR_2": "value_2"
}

Caller Permissions

  1. The caller shall have AWS credentials available to the credential provider chain.
  2. The caller shall have permissions akin to the following...
{
    "sid": "ssmAccess",
    "effect": "Allow",
    "action": [
        "ssm:GetParameter",
        "kms:Decrypt"
    ],
    "resource": [
        "arn:aws:ssm:${AWS_ACCOUNT_REGION}:${AWS_ACCOUNT_ID}:parameter/*"
    ]
}