Skip to content

Commit 60671b0

Browse files
author
Raal Goff
committed
Merge branch 'master' into crl-support
# Conflicts: # api/api.go # authority/config/config.go # cas/softcas/softcas.go # db/db.go
2 parents c8b38c0 + ffe7c00 commit 60671b0

File tree

182 files changed

+21483
-2524
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

182 files changed

+21483
-2524
lines changed

.github/ISSUE_TEMPLATE/bug-report.yml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Bug Report
2+
description: File a bug report
3+
title: "[Bug]: "
4+
labels: ["bug", "needs triage"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this bug report!
10+
- type: textarea
11+
id: steps
12+
attributes:
13+
label: Steps to Reproduce
14+
description: Tell us how to reproduce this issue.
15+
placeholder: These are the steps!
16+
validations:
17+
required: true
18+
- type: textarea
19+
id: your-env
20+
attributes:
21+
label: Your Environment
22+
value: |-
23+
* OS -
24+
* `step-ca` Version -
25+
validations:
26+
required: true
27+
- type: textarea
28+
id: expected-behavior
29+
attributes:
30+
label: Expected Behavior
31+
description: What did you expect to happen?
32+
validations:
33+
required: true
34+
- type: textarea
35+
id: actual-behavior
36+
attributes:
37+
label: Actual Behavior
38+
description: What happens instead?
39+
validations:
40+
required: true
41+
- type: textarea
42+
id: context
43+
attributes:
44+
label: Additional Context
45+
description: Add any other context about the problem here.
46+
validations:
47+
required: false
48+
- type: textarea
49+
id: contributing
50+
attributes:
51+
label: Contributing
52+
value: |
53+
Vote on this issue by adding a 👍 reaction.
54+
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
55+
validations:
56+
required: false

.github/ISSUE_TEMPLATE/bug_report.md

-27
This file was deleted.

.github/ISSUE_TEMPLATE/documentation-request.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
---
22
name: Documentation Request
33
about: Request documentation for a feature
4-
title: ''
5-
labels: documentation, needs triage
4+
title: '[Docs]:'
5+
labels: docs, needs triage
66
assignees: ''
77

88
---
99

10+
## Hello!
11+
<!-- Please leave this section as-is, it's designed to help others in the community know how to interact with our GitHub issues. -->
12+
13+
- Vote on this issue by adding a 👍 reaction
14+
- If you want to document this feature, comment to let us know (we'll work with you on design, scheduling, etc.)
15+
16+
## Affected area/feature
17+
1018
<!---
1119
Tell us which feature you'd like to see documented.
1220
- Where would you like that documentation to live (command line usage output, website, github markdown on the repo)?

.github/ISSUE_TEMPLATE/enhancement.md

+14-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,24 @@
11
---
22
name: Enhancement
3-
about: Suggest an enhancement to step certificates
3+
about: Suggest an enhancement to step-ca
44
title: ''
55
labels: enhancement, needs triage
66
assignees: ''
77

88
---
99

10-
### What would you like to be added
10+
## Hello!
11+
<!-- Please leave this section as-is,
12+
it's designed to help others in the community know how to interact with our GitHub issues. -->
1113

14+
- Vote on this issue by adding a 👍 reaction
15+
- If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)
1216

13-
### Why this is needed
17+
## Issue details
18+
19+
<!-- Enhancement requests are most helpful when they describe the problem you're having
20+
as well as articulating the potential solution you'd like to see built. -->
21+
22+
## Why is this needed?
23+
24+
<!-- Let us know why you think this enhancement would be good for the project or community. -->

.github/PULL_REQUEST_TEMPLATE

+18-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
1-
### Description
2-
Please describe your pull request.
1+
<!---
2+
Please provide answers in the spaces below each prompt, where applicable.
3+
Not every PR requires responses for each prompt.
4+
Use your discretion.
5+
-->
6+
#### Name of feature:
7+
8+
#### Pain or issue this feature alleviates:
9+
10+
#### Why is this important to the project (if not answered above):
11+
12+
#### Is there documentation on how to use this feature? If so, where?
13+
14+
#### In what environments or workflows is this feature supported?
15+
16+
#### In what environments or workflows is this feature explicitly NOT supported (if any)?
17+
18+
#### Supporting links/other PRs/issues:
319

420
💔Thank you!

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
uses: golangci/golangci-lint-action@v2
3434
with:
3535
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
36-
version: 'v1.45.0'
36+
version: 'v1.45.2'
3737

3838
# Optional: working directory, useful for monorepos
3939
# working-directory: somedir
@@ -139,7 +139,7 @@ jobs:
139139
name: Run GoReleaser
140140
uses: goreleaser/goreleaser-action@5a54d7e660bda43b405e8463261b3d25631ffe86 # v2.7.0
141141
with:
142-
version: latest
142+
version: 'v1.7.0'
143143
args: release --rm-dist
144144
env:
145145
GITHUB_TOKEN: ${{ secrets.PAT }}

.github/workflows/test.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
uses: golangci/golangci-lint-action@v2
3434
with:
3535
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
36-
version: 'v1.45.0'
36+
version: 'v1.45.2'
3737

3838
# Optional: working directory, useful for monorepos
3939
# working-directory: somedir
@@ -59,8 +59,9 @@ jobs:
5959
-
6060
name: Codecov
6161
if: matrix.go == '1.18'
62-
uses: codecov/codecov-action@v1.2.1
62+
uses: codecov/codecov-action@v2
6363
with:
64-
file: ./coverage.out # optional
64+
token: ${{ secrets.CODECOV_TOKEN }}
65+
files: ./coverage.out # optional
6566
name: codecov-umbrella # optional
6667
fail_ci_if_error: true # optional (default = false)

.goreleaser.yml

-39
Original file line numberDiff line numberDiff line change
@@ -230,42 +230,3 @@ scoop:
230230
# Your app's license
231231
# Default is empty.
232232
license: "Apache-2.0"
233-
234-
#dockers:
235-
# - dockerfile: docker/Dockerfile
236-
# goos: linux
237-
# goarch: amd64
238-
# use_buildx: true
239-
# image_templates:
240-
# - "smallstep/step-cli:latest"
241-
# - "smallstep/step-cli:{{ .Tag }}"
242-
# build_flag_templates:
243-
# - "--platform=linux/amd64"
244-
# - dockerfile: docker/Dockerfile
245-
# goos: linux
246-
# goarch: 386
247-
# use_buildx: true
248-
# image_templates:
249-
# - "smallstep/step-cli:latest"
250-
# - "smallstep/step-cli:{{ .Tag }}"
251-
# build_flag_templates:
252-
# - "--platform=linux/386"
253-
# - dockerfile: docker/Dockerfile
254-
# goos: linux
255-
# goarch: arm
256-
# goarm: 7
257-
# use_buildx: true
258-
# image_templates:
259-
# - "smallstep/step-cli:latest"
260-
# - "smallstep/step-cli:{{ .Tag }}"
261-
# build_flag_templates:
262-
# - "--platform=linux/arm/v7"
263-
# - dockerfile: docker/Dockerfile
264-
# goos: linux
265-
# goarch: arm64
266-
# use_buildx: true
267-
# image_templates:
268-
# - "smallstep/step-cli:latest"
269-
# - "smallstep/step-cli:{{ .Tag }}"
270-
# build_flag_templates:
271-
# - "--platform=linux/arm64/v8"

CHANGELOG.md

+59-5
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,70 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7-
## [Unreleased - 0.18.3] - DATE
7+
### TEMPLATE -- do not alter or remove
8+
---
9+
## [x.y.z] - aaaa-bb-cc
810
### Added
9-
- Added support for renew after expiry using the claim `allowRenewAfterExpiry`.
11+
### Changed
12+
### Deprecated
13+
### Removed
14+
### Fixed
15+
### Security
16+
---
17+
18+
## [Unreleased]
19+
### Changed
20+
- Certificates signed by an issuer using an RSA key will be signed using the same algorithm as the issuer certificate was signed with. The signature will no longer default to PKCS #1. For example, if the issuer certificate was signed using RSA-PSS with SHA-256, a new certificate will also be signed using RSA-PSS with SHA-256.
21+
22+
## [0.20.0] - 2022-05-26
23+
### Added
24+
- Added Kubernetes auth method for Vault RAs.
25+
- Added support for reporting provisioners to linkedca.
26+
- Added support for certificate policies on authority level.
27+
- Added a Dockerfile with a step-ca build with HSM support.
28+
- A few new WithXX methods for instantiating authorities
29+
### Changed
30+
- Context usage in HTTP APIs.
31+
- Changed authentication for Vault RAs.
32+
- Error message returned to client when authenticating with expired certificate.
33+
- Strip padding from ACME CSRs.
34+
### Deprecated
35+
- HTTP API handler types.
36+
### Fixed
37+
- Fixed SSH revocation.
38+
- CA client dial context for js/wasm target.
39+
- Incomplete `extraNames` support in templates.
40+
- SCEP GET request support.
41+
- Large SCEP request handling.
42+
43+
## [0.19.0] - 2022-04-19
44+
### Added
45+
- Added support for certificate renewals after expiry using the claim `allowRenewalAfterExpiry`.
1046
- Added support for `extraNames` in X.509 templates.
47+
- Added `armv5` builds.
48+
- Added RA support using a Vault instance as the CA.
49+
- Added `WithX509SignerFunc` authority option.
50+
- Added a new `/roots.pem` endpoint to download the CA roots in PEM format.
51+
- Added support for Azure `Managed Identity` tokens.
52+
- Added support for automatic configuration of linked RAs.
53+
- Added support for the `--context` flag. It's now possible to start the
54+
CA with `step-ca --context=abc` to use the configuration from context `abc`.
55+
When a context has been configured and no configuration file is provided
56+
on startup, the configuration for the current context is used.
57+
- Added startup info logging and option to skip it (`--quiet`).
58+
- Added support for renaming the CA (Common Name).
1159
### Changed
12-
- Made SCEP CA URL paths dynamic
13-
- Support two latest versions of Go (1.17, 1.18)
60+
- Made SCEP CA URL paths dynamic.
61+
- Support two latest versions of Go (1.17, 1.18).
62+
- Upgrade go.step.sm/crypto to v0.16.1.
63+
- Upgrade go.step.sm/linkedca to v0.15.0.
1464
### Deprecated
65+
- Go 1.16 support.
1566
### Removed
1667
### Fixed
68+
- Fixed admin credentials on RAs.
69+
- Fixed ACME HTTP-01 challenges for IPv6 identifiers.
70+
- Various improvements under the hood.
1771
### Security
1872

1973
## [0.18.2] - 2022-03-01
@@ -49,7 +103,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
49103
- Support for multiple certificate authority contexts.
50104
- Support for generating extractable keys and certificates on a pkcs#11 module.
51105
### Changed
52-
- Support two latest versions of golang (1.16, 1.17)
106+
- Support two latest versions of Go (1.16, 1.17)
53107
### Deprecated
54108
- go 1.15 support
55109

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ integration: bin/$(BINNAME)
151151
#########################################
152152

153153
fmt:
154-
$Q gofmt -l -w $(SRC)
154+
$Q gofmt -l -s -w $(SRC)
155155

156156
lint:
157157
$Q golangci-lint run --timeout=30m

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Setting up a *public key infrastructure* (PKI) is out of reach for many small te
5454
- [Short-lived certificates](https://smallstep.com/blog/passive-revocation.html) with automated enrollment, renewal, and passive revocation
5555
- Capable of high availability (HA) deployment using [root federation](https://smallstep.com/blog/step-v0.8.3-federation-root-rotation.html) and/or multiple intermediaries
5656
- Can operate as [an online intermediate CA for an existing root CA](https://smallstep.com/docs/tutorials/intermediate-ca-new-ca)
57-
- [Badger, BoltDB, and MySQL database backends](https://smallstep.com/docs/step-ca/configuration#databases)
57+
- [Badger, BoltDB, Postgres, and MySQL database backends](https://smallstep.com/docs/step-ca/configuration#databases)
5858

5959
### ⚙️ Many ways to automate
6060

@@ -68,6 +68,7 @@ You can issue certificates in exchange for:
6868
- [Cloud instance identity documents](https://smallstep.com/blog/embarrassingly-easy-certificates-on-aws-azure-gcp/), for VMs on AWS, GCP, and Azure
6969
- [Single-use, short-lived JWK tokens](https://smallstep.com/docs/step-ca/provisioners#jwk) issued by your CD tool — Puppet, Chef, Ansible, Terraform, etc.
7070
- A trusted X.509 certificate (X5C provisioner)
71+
- A host certificate from your Nebula network
7172
- A SCEP challenge (SCEP provisioner)
7273
- An SSH host certificates needing renewal (the SSHPOP provisioner)
7374
- Learn more in our [provisioner documentation](https://smallstep.com/docs/step-ca/provisioners)

0 commit comments

Comments
 (0)