Skip to content

Commit

Permalink
0.3.2 release + docs cleanup (#185)
Browse files Browse the repository at this point in the history
* refactor: removing embedded docs

* most of the docs were out of date and just added to the confusion
  where a doc should be updated - in this repo or in the docs site repo
* during release process docs will be copied to chalk so that
  chalk binary can ship with embedded docs as expected.
* moved release notes to `CHANGELOG.md` in the root of the repo.
  This is a common pattern in GitHub and will make discovering
  changelog in the repo a lot easier.
  To be able to embed it in the chalk binary, `make`
  ensures to copy it to `src/docs` on build time.

* bumping chalk version to 0.3.2
  • Loading branch information
miki725 committed Feb 2, 2024
1 parent 6b2237f commit 910b8a3
Show file tree
Hide file tree
Showing 25 changed files with 139 additions and 4,333 deletions.
73 changes: 36 additions & 37 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,41 +8,40 @@ repos:

# - repo: local
# hooks:
# - id: licenseheaders
# name: licenseheaders
# language: python
# additional_dependencies:
# - https://github.com/johann-petrak/licenseheaders/archive/8e2d6f944aea639d62c8d26cd99dab4003c3904d.zip
# entry: ./.github/check_license.sh
# files: \.(nim|c4m|c42spec|bash|py)$
# args:
# - --tmpl=.github/copyright.tmpl
# # - --current-year
# # - --years=2022,2023
# - --projname=Chalk
# - --projurl=https://crashoverride.com/docs/chalk
# - --additional-extensions
# - script=.nim,.c4m,.c42spec,.bash
# - robot=.py # native python each run adds another newline
# - --files
# - --
# # selfsigned is not our copyright
# # data has test data for python encoding so we leave it alone
# exclude: |
# (?x)(
# selfsigned.py|
# defaultconfig.c4m|
# configs/.*.c4m|
# tests/.*.c4m|
# data/.*
# )$
# - id: licenseheaders
# name: licenseheaders
# language: python
# additional_dependencies:
# - https://github.com/johann-petrak/licenseheaders/archive/8e2d6f944aea639d62c8d26cd99dab4003c3904d.zip
# entry: ./.github/check_license.sh
# files: \.(nim|c4m|c42spec|bash|py)$
# args:
# - --tmpl=.github/copyright.tmpl
# # - --current-year
# # - --years=2022,2023
# - --projname=Chalk
# - --projurl=https://crashoverride.com/docs/chalk
# - --additional-extensions
# - script=.nim,.c4m,.c42spec,.bash
# - robot=.py # native python each run adds another newline
# - --files
# - --
# # selfsigned is not our copyright
# # data has test data for python encoding so we leave it alone
# exclude: |
# (?x)(
# selfsigned.py|
# defaultconfig.c4m|
# configs/.*.c4m|
# tests/.*.c4m|
# data/.*
# )$

# add back once docs are sorted
# - repo: https://github.com/tcort/markdown-link-check
# rev: v3.11.2
# hooks:
# - id: markdown-link-check
# args:
# - -q
# - -c
# - .github/.md-link-check.json
- repo: https://github.com/tcort/markdown-link-check
rev: v3.11.2
hooks:
- id: markdown-link-check
args:
- -q
- -c
- .github/.md-link-check.json
92 changes: 64 additions & 28 deletions src/docs/core-release-notes.md → CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,46 @@
# Release Notes for Chalk version 0.3.1 (Jan 23, 2024)
# Chalk Release Notes

## Breaking Changes
## 0.3.2

**Feb 2, 2024**

### Fixes

- Fixes a typo in `chalk version` for the build date.
[#148](https://github.com/crashappsec/chalk/pull/148)
- `TERM=dump` renders without colors
[#163](https://github.com/crashappsec/chalk/pull/163)
- `AWS_REGION` env var is honored in `s3` sinks
[#164](https://github.com/crashappsec/chalk/pull/164)
- Show GitHub chalk report on `chalk extract`
[#166](https://github.com/crashappsec/chalk/pull/166)
- `chalk help docgen` shows help for `docgen` command
[#173](https://github.com/crashappsec/chalk/pull/173)
- `chalk load` would duplicate already loaded components
in the config
[#176](https://github.com/crashappsec/chalk/pull/176)
- `chalk setup` would not honor existing keys, if present
[#184](https://github.com/crashappsec/chalk/pull/184)

## 0.3.1

**Jan 23, 2024**

### Breaking Changes

- Remove the `--no-api-login` option.
[137](https://github.com/crashappsec/chalk/pull/137)

## New Features
### New Features

- Add support for arm64 Linux once again.
It was omitted from the Chalk 0.3.0 release.

## Fixes
### Fixes

- Fix some rendering bugs.

## Known Issues
### Known Issues

- If a docker base image has `ENTRYPOINT` defined,
`docker.wrap_cmd` will break it as it overwrites
Expand All @@ -25,9 +51,11 @@
- This release does not support x86_64 macOS.
It will be supported once again in a later release.

# Release Notes for Chalk version 0.3.0 (Jan 15, 2024)
## 0.3.0

## Breaking Changes
**Jan 15, 2024**

### Breaking Changes

- `_OP_CLOUD_METADATA` is now a JSON object vs a string
containing JSON data. In addition cloud metadata is now
Expand All @@ -52,7 +80,7 @@
- `secret_manager_url` -> `signing_key_backup_service_url`
- `secret_manager_timeout` -> `signing_key_backup_service_timeout`

## New Features
### New Features

- Adding support for git context for docker build commands.
[86](https://github.com/crashappsec/chalk/pull/86)
Expand Down Expand Up @@ -87,7 +115,7 @@
runtime (programming languages, databases, servers, etc.)
[128](https://github.com/crashappsec/chalk/pull/128)

## Fixes
### Fixes

- Fixes docker version comparison checks.
As a result buildx is correctly detected now for >=0.10.
Expand All @@ -113,7 +141,7 @@
(e.g. `CMD set -x && echo hello`).
[132](https://github.com/crashappsec/chalk/pull/132)

## Known Issues
### Known Issues

- If a docker base image has `ENTRYPOINT` defined,
`docker.wrap_cmd` will break it as it overwrites
Expand All @@ -126,28 +154,34 @@

Support for these platforms will be added back in the future.

# Release Notes for Chalk version 0.2.2 (Oct 30, 2023)
## 0.2.2

**Oct 30, 2023**

## New Features
### New Features

- Adding support for docker multi-platform builds.
[54](https://github.com/crashappsec/chalk/pull/54)

## Fixes
### Fixes

- Honoring Syft/SBOM configs during docker builds.
[84](https://github.com/crashappsec/chalk/pull/84)

# Release Notes for Chalk version 0.2.1 (Oct 25, 2023)
## 0.2.1

**Oct 25, 2023**

## Fixes
### Fixes

- Component parameters can set config attributes.
[75](https://github.com/crashappsec/chalk/issues/75)

# Release Notes for Chalk version 0.2.0 (Oct 20, 2023)
## 0.2.0

## New Features
**Oct 20, 2023**

### New Features

- Added a module so that most users can easily install complex
configurations without editing any configuration information
Expand Down Expand Up @@ -191,7 +225,7 @@
currently re-install modules, so the original module locations need
to be available.

## Fixes
### Fixes

- Docker support when installed via `Snap`.
[9](https://github.com/crashappsec/chalk/pull/9)
Expand All @@ -214,7 +248,7 @@
(e.g. `ENTRYPOINT ["ls", "-la"]`)
[70](https://github.com/crashappsec/chalk/issues/70)

## Known Issues
### Known Issues

- There are still embedded docs that need to be fixed now that the
entire rendering engine is working well enough.
Expand All @@ -224,18 +258,20 @@
it on legacy Docker builder (not buildx) as it will fail to `chmod`
permissions of chalk during the build.

# Release Notes for Chalk version 0.1.2 (Sept 26, 2023)
## 0.1.2

**Sept 26, 2023**

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
### Known Issues

At release time, here are known issues:

### Documentation
#### Documentation

- We have not yet produced any developer documentation. We will do so
soon.
Expand All @@ -246,7 +282,7 @@ At release time, here are known issues:
it's insufficient, use the online docs, which use the same core
source material.

### Containers
#### Containers

- Our support for container marking is currently limited to Docker.

Expand All @@ -265,7 +301,7 @@ At release time, here are known issues:
multi-architecture builds. It still will produce the desired
container with a chalk mark, however.

### OS / Hardware support
#### OS / Hardware support

- We are not supporting running chalk on Windows at this time (even
under WSL2).
Expand All @@ -274,15 +310,15 @@ At release time, here are known issues:
the only platforms we are currently supporting. More Posix platforms
_may_ work, but we are making no effort there at this point.

### Data collection and Marking
#### 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
#### Other

- The bash autocomplete script installation a Mac, but because it's not
a zsh script, it will not autocomplete file arguments, etc.
Expand All @@ -297,7 +333,7 @@ At release time, here are known issues:
obtaining the lock if you run multiple instances in the same
environment at once.

## Major changes since the preview releases
### 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
Expand Down Expand Up @@ -340,7 +376,7 @@ At release time, here are known issues:
MUSL-built shared libraries. On the Mac, `libc` is still dynamically
loaded.

## Roadmap Items
### 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
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ SOURCES+=$(shell find src/ -name '*.md')
SOURCES+=$(shell find ../con4m -name '*.nim' 2> /dev/null)
SOURCES+=$(shell find ../con4m -name '*.c4m' 2> /dev/null)
SOURCES+=$(shell find ../nimutils -name '*.nim' 2> /dev/null)
SOURCES+=src/docs/CHANGELOG.md

VERSION=$(shell cat src/configs/base_keyspecs.c4m \
| grep -E "chalk_version\s+:=" | cut -d'"' -f2 | head -n1)
Expand Down Expand Up @@ -49,6 +50,9 @@ debug release:
-rm -f $(BINARY) $(BINARY).bck
$(MAKE) $(BINARY)

src/docs/CHANGELOG.md: CHANGELOG.md
cp $^ $@

.PHONY: version
version:
@echo $(VERSION)
Expand Down
2 changes: 1 addition & 1 deletion chalk.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ bin = @["chalk"]

# Dependencies
requires "nim >= 2.0.0"
requires "https://github.com/crashappsec/con4m#53f5f477dbc98d4e5037f02cf30116ee1686e80a"
requires "https://github.com/crashappsec/con4m#d2a081b93d72cad4a86bcd51bbf6fbe4934a845e"
requires "https://github.com/viega/zippy == 0.10.7" # MIT

# this allows us to get version externally
Expand Down
Loading

0 comments on commit 910b8a3

Please sign in to comment.