Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
FROM mcr.microsoft.com/vscode/devcontainers/rust

RUN sudo apt-get update -y && \
sudo apt-get upgrade -y && \
sudo apt-get install zip musl-tools -y
RUN sudo apt-get update -y \
&& sudo apt-get upgrade -y \
&& sudo apt-get install zip musl-tools ltrace -y

RUN rustup update && \
rustup target add x86_64-unknown-linux-musl
RUN rustup update \
&& rustup target add x86_64-unknown-linux-musl

RUN sudo apt-get install -y nodejs

RUN cd /tmp && \
curl -L https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip > aws-sam-cli-linux-x86_64.zip && \
unzip aws-sam-cli-linux-x86_64.zip -d sam-installation && \
rm -rf aws-sam-cli-linux-x86_64.zip && \
sudo ./sam-installation/install
RUN cd /tmp \
&& curl -L https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip > aws-sam-cli-linux-x86_64.zip \
&& unzip aws-sam-cli-linux-x86_64.zip -d sam-installation \
&& rm -rf aws-sam-cli-linux-x86_64.zip \
&& sudo ./sam-installation/install
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased

### Added

- `ltrace` for debugging

### Changed

- Use `scratch` base instead of `alpine` for smaller lambda extension images.

## [0.94.0] - 2022-10-03

Schedule release. No changes.
Expand Down
2 changes: 1 addition & 1 deletion package/Dockerfile-amzn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine
FROM scratch
LABEL org.opencontainers.image.source "https://github.com/customink/crypteia"
LABEL org.opencontainers.image.description "Rust Lambda Extension for any Runtime to preload SSM Parameters as Secure Environment Variables!"
COPY ./package/opt /opt
2 changes: 1 addition & 1 deletion package/Dockerfile-debian
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine
FROM scratch
LABEL org.opencontainers.image.source "https://github.com/customink/crypteia"
LABEL org.opencontainers.image.description "Rust Lambda Extension for any Runtime to preload SSM Parameters as Secure Environment Variables!"
COPY ./package/opt /opt
4 changes: 2 additions & 2 deletions test/libcrypteia.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ echo "============================="
echo "== Simulating crypteia binary JSON write =="
echo '{
"SECRET": "1A2B3C4D5E6F",
"ACCESS_KEY": "G7H8I9J0K1L2",
"ACCESS_KEY": "G7H8I9J0K1L2",
"DB_URL": "mysql2://u:p@host:3306",
"NR_KEY": "z6y5x4w3v2u1"
}' > $CRYPTEIA_ENV_FILE
Expand All @@ -38,7 +38,7 @@ assert "./test/libcrypteia/_envfile.sh" \

assert "./test/libcrypteia/empty-${TEST_LANG}.sh" \
"undefined"

assert "./test/libcrypteia/fullpath-${TEST_LANG}.sh" \
"x-crypteia-ssm-path:/crypteia/v5/myapp/envs" \
"Because not replaced by a single env var."
Expand Down