Releases: crashappsec/chalk
v0.3.2
Download binaries at https://crashoverride.com/downloads
Fixes
- Fixes a typo in
chalk version
for the build date. #148 TERM=dumb
renders without colors #163AWS_REGION
env var is honored ins3
sinks #164- Show GitHub chalk report on
chalk extract
#166 chalk help docgen
shows help fordocgen
command #173chalk load
would duplicate already loaded components in the config #176chalk setup
would not honor existing keys, if present #184
Commits since previous tag: v0.3.1...v0.3.2
v0.3.1
Download binaries at https://crashoverride.com/downloads
Breaking Changes
- Remove the
--no-api-login
option (#137). It was no longer relevant, since the chalk setup flow changed and no longer requires an interactive OIDC authentication.
New Features
- Add support for arm64 Linux once again. The previous release did not include an executable for that platform, but this release does.
Fixes
- Fix some rendering bugs.
Known Issues
- If a docker base image has
ENTRYPOINT
defined,docker.wrap_cmd
will break it as it overwrites its ownENTRYPOINT
. A future release will correctly inspect all base images and wrapENTRYPOINT
correctly. - This release does not support x86_64 macOS. It will be supported once again in a later release.
Commits since previous tag: v0.3.0...v0.3.1
v0.3.0
Download binaries at https://crashoverride.com/downloads
Breaking Changes
-
_OP_CLOUD_METADATA
is now a JSON object vs a string containing JSON data. In addition cloud metadata is now
nested to allow to include more metadata about running cloud instances (#112). -
The signing key backup service has been completely overhauled and no longer uses the OIDC Device Code Flow to authenticate to the API. Instead a pre-generated API access token is passed in chalk profile and that value is used as the bearer token. The
setup
command still generates keys for signing but will no longer prompt with a QR code to authenticate to the API. -
As a result of the above the
login
andlogout
commands have been removed. -
A number of signing key backup related configuration values and variables have had their names changed to be more descriptive:
CHALK_API_KEY
->CHALK_DATA_API_KEY
use_secret_manager
->use_signing_key_backup_service
secret_manager_url
->signing_key_backup_service_url
secret_manager_timeout
->signing_key_backup_service_timeout
New Features
-
Added support for git context for docker build commands (#86).
-
Added new git metadata fields about:
- authored commit
- committer
- tag
-
Improved pretty printing for various commands (#99).
-
Added
github_json_group
for printing chalk marks in GitHub Actions (#86). -
Added
presign
sink to allow uploads to S3 without hard-coded credentials in the chalk configuration (#103). -
Added JWT/Basic auth authentication options to sinks (#111).
-
Added
docker.wrap_cmd
to allow to customize whetherCMD
should be wrapped whenENTRYPOINT
is missing
inDockerfile
(#112). -
Added minimal AWS lambda metadata collection. It includes only basic information about lambda function
such as its ARN and its runtime environment (#112). -
Added experimental support for detection of technologies used at chalk and runtime (programming languages, databases, servers, etc.) (#128).
Fixes
- Fixed docker version comparison checks; as a result buildx is correctly detected now for >=0.10 (#86).
- Subprocess command output was not reliable being captured (#93).
- Fixed automatic installation of
semgrep
when SAST is enabled (#94). - Ensured chalk executable has correct permissions. Otherwise reading embedded configuration would fail in some cases (#104).
- Pushing all tags during
docker build --push -t one -t two ...
(#110). - Sending
_ACTION_ID
duringpush
command (#116). - All component parameters are saved in the chalk mark (#126).
- Gracefully handling permission issues when chalk is running as non-existing user. This is most common in lambda
which runs as user993
(#112). CMD
wrapping supports wrapping shell scripts, for exampleCMD set -x && echo hello
(#132).
Known Issues
-
If a docker base image has
ENTRYPOINT
defined,docker.wrap_cmd
will break it as it overwrites its ownENTRYPOINT
. A future release will correctly inspect all base images and wrapENTRYPOINT
correctly. -
This release does not support:
- macOS x86_64
- Linux arm64
We will add back support for these platforms in the future.
Commits since previous tag: v0.2.2...v0.3.0
v0.2.2
Download binaries at https://crashoverride.com/downloads
New Features
- Add support for docker multi-platform builds (#54).
Fixes
- Honor Syft/SBOM configs during docker builds (#84).
Commits since previous tag: v0.2.1...v0.2.2
v0.2.1
Download binaries at https://crashoverride.com/downloads
Fixes
- Component parameters can set config attributes (#75).
Commits since previous tag: v0.2.0...v0.2.1
v0.2.0
Download binaries at https://crashoverride.com/downloads
New Features
-
Added a module so that most users can easily install complex configurations without editing any configuration information whatsoever. Modules can be loaded from https URLs or from the local file system. Our recipes will host modules on chalkdust.io.
Modules can have parameters that you provide when installing them, and can have arbitrary defaults (for instance, any module importing the module for connecting to our demo web server defaults to your current IP address).
We do extensive conflict checking to ensure that modules that are incompatible will not run (and generally won't even load).
We will eventually do an in-app UI to browse and install modules.
-
Added initial metadata collection for GCP and Azure, along with a metadata key to provide the current cloud provider, and a key that distinguishes the cloud provider's environments. Currently, this only does AWS (eks, ecs, ec2). See #59 and #65.
-
Added OIDC token refreshing, along with
chalk login
andchalk logout
commands to log out of auth for the secret manager (#51, #55, #60). -
The initial rendering engine work was completed. This means
chalk help
,chalk help metadata
are fully functional. This engine is effectively most of the way to a web browser, and will enable us to offload a lot of the documentation, and do a little storefront (once we integrate in notcurses). See #58. -
If you're doing multi-arch binary support, Chalk can now pass your native binary's configuration to other arches, though it does currently re-install modules, so the original module locations need to be available.
Fixes
- Docker support when installed via
Snap
(#9). - Removes error log when using chalk on ARM Linux as chalk fully runs on ARM Linux now (#7).
- When a
Dockerfile
usesUSER
directive, chalk can now wrap entrypoint in that image (docker.wrap_entrypoint = true
in chalk config). See #34. - Segfault when running chalk operation (e.g.
insert
) in empty git repo without any commits (#39) - Sometimes Docker build would not wrap entrypoint. (#45)
- Cosign now only gets installed if needed. (#49)
- Docker
ENTRYPOINT
/COMMAND
wrapping now preserves all named arguments from originalENTRYPOINT
/COMMAND
, e.g.ENTRYPOINT ["ls", "-la"]
(#70).
Known Issues
-
There are still embedded docs that need to be fixed now that the entire rendering engine is working well enough.
-
When a
Dockerfile
does not use theUSER
directive but base image uses it to change default image user, chalk cannot wrap the image as it on legacy Docker builder (not buildx) as it will fail tochmod
permissions of chalk during the build.
Commits since previous tag: v0.1.2...v0.2.0
v0.1.2
Download binaries at https://crashoverride.com/downloads
This is the first open source release of Chalk. For those who
participated in the public preview, there have been massive changes
from those releases, based on your excellent feedback. There's a
summary of those changes below.
Known Issues
At release time, here are known issues:
Documentation
-
We have not yet produced any developer documentation. We will do so
soon. -
The in-command
help
renderer did not get finished before
release. Everything should display, but the output will have some
obvious problems (spacing, wrapping, formatting choices, etc). If
it's insufficient, use the online docs, which use the same core
source material.
Containers
-
Our support for container marking is currently limited to Docker.
-
Chalk does not yet have any awareness of
docker compose
,bake
or
similar frameworks atop Docker. We only process containers created
via direct docker invocation that's wrapped by chalk. -
Similarly, Chalk does not yet capture any metadata around
orchestration layers like Kubernetes or cloud-provider managed
container solutions. -
Chalk does not yet handle Docker HEREDOCs (which we've found aren't
yet getting heavy use). -
Chalk currently will refuse to automatically wrap or sign
multi-architecture builds. It still will produce the desired
container with a chalk mark, however.
OS / Hardware support
-
We are not supporting running chalk on Windows at this time (even
under WSL2). -
In fact, we are currently on supporting Linux and macOS for both x86_64 and
arm64. More Posix platforms may work, but we are making no effort
there at this point.
Data collection and Marking
-
We currently do not handle any form of PE binaries, so do not chalk
.NET or other Windows applications. -
There are other platforms we hope to mark that we don't yet support;
see the roadmap section below.
Other
-
The bash autocomplete script installs on macOS, but because it's not
a zsh script, it will not autocomplete file arguments, etc. -
The signing functionality does download the
cosign
binary if not
present and needed; this can take a bit of time, and should
eventually be replaced with a native in-toto implementation. -
Dy default, Chalk uses an advisory file lock to avoid overlapping
writes to files by multiple chalk instances (particularly meant for
protecting log files). This can lead to chalk instances giving up on
obtaining the lock if you run multiple instances in the same
environment at once.
Major changes since the preview releases
-
We've added automatic signing; run
chalk setup
; if you create a
free account for our secret service, it'll generate a keypair for
you, encrypt the private key, and automatically sign whenever
possible. If you don't want to use the service, you'll have to
provide a secret via environment variable, and should run setup with
the--no-api-login
flag. -
We added automatic wrapping of container entry points, so that you
can get beacon data when containers start up (via thechalk exec
command). -
We've additionally added the ability to have
chalk exec
send
periodicheartbeat
reports, so you can collect metadata about
runtime workloads after startup. -
There were several config file format changes based on
feedback. Please contact us if you want help migrating, but things
are even easier now. -
ELF Chalk marks are now put into their own ELF section in the
binary, so they will survive astrip
operation. -
We added / changed a number of metadata keys around Docker images
and containers, and enhanced the interface for extracting data from
containers. -
We added an AWS IMDSv2 collection module, and associated metadata
keys. -
We added proc file system collection module.
-
We are now officially supporting arm64 Linux builds and macOS (arm64 and
x86_64) builds of Chalk. -
You can inject environment variables into docker images (previously
we only supported labels) -
Linux builds will now always fully statically compile with
musl-built shared libraries. On macOS,libc
is still dynamically
loaded.
Roadmap Items
We are actively developing Chalk, and listening closely to the people
already using it. Below are a number of key items in our backlog that
we're considering. However, we have made no decisions on the order
we'll work on these things, and may add or drop items from the
list. For a more up-to-date view, please check our issues list in
GitHub.
All of the below are targets for our Open Source; we also will soon be
releasing services around Chalk (with a free tier).
-
A TUI (using Python 3) to make it very easy to build custom
configurations for most needs, without having to touch a
configuration file. -
On-demand data collection from runtime environments (via triggers).
-
Heartbeat reports should be more flexible, to only report when some
sort of condition(s) is(/are) met (both per-metadata key, and
per-report). -
Many changes / enhancements to make to the underlying configuration
file format to benefit Chalk and its users. -
Data collection modules for other cloud providers.
-
Data collection modules for orchestration systems, particularly k8s.
-
A
chalk log
command that can pretty-print (and search?) log
entries from any readable source you configure (not just the default
log file). -
Better handling for multi-architecture builds.
-
Wrapping / data collection for
docker compose
anddocker bake
-
Better OS X support (right now, it's just good enough for us to
develop on; Linux is the primary target) -
More off-the-shelf integrations (including third party tools)
-
Support for CI/CD data collection modules that are longer-running
(requiring them to work on a copy of the dev or build environment) -
Chalk mark support for in-the-browser JavaScript (we have an
approach we know works, we just need to build it out). -
Better support for specific platforms for serverless apps.
Note that Windows support is not a priority for us currently. We'd
love to get there eventually, but do not expect to get to it any time
soon, unless contributed by the community.