Skip to content

Commit e9a48bb

Browse files
Merge 67205a8 into 8f3e7d6
2 parents 8f3e7d6 + 67205a8 commit e9a48bb

21 files changed

+943
-122
lines changed

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# See GitHub's documentation for more information on this file:
2+
# https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates
3+
version: 2
4+
updates:
5+
- package-ecosystem: "github-actions"
6+
directory: "/"
7+
schedule:
8+
interval: "daily"
9+
- package-ecosystem: "gomod"
10+
directory: "/"
11+
schedule:
12+
interval: "daily"

.github/images/kf_logo.png

3.52 KB
Loading
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Keyfactor Bootstrap Workflow
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
types: [opened, closed, synchronize, edited, reopened]
7+
push:
8+
create:
9+
branches:
10+
- 'release-*.*'
11+
12+
jobs:
13+
call-starter-workflow:
14+
uses: keyfactor/actions/.github/workflows/starter.yml@v2
15+
secrets:
16+
token: ${{ secrets.V2BUILDTOKEN}}
17+
APPROVE_README_PUSH: ${{ secrets.APPROVE_README_PUSH}}
18+
gpg_key: ${{ secrets.KF_GPG_PRIVATE_KEY }}
19+
gpg_pass: ${{ secrets.KF_GPG_PASSPHRASE }}

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
.vs/*
2-
vaultSecretsEngine-update.zip
2+
*.zip
33
vault/plugins/*
4+
*.sh
45
*.exe
6+
keyfactor
7+
Keyfactor Vault Secrets Engine Guide.docx
8+
Makefile
9+
sample_config.json
10+
README.md

.goreleaser.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# Visit https://goreleaser.com for documentation on how to customize this
2+
# behavior.
3+
before:
4+
hooks:
5+
# this is just an example and not a requirement for provider building/publishing
6+
- go mod tidy
7+
builds:
8+
- env:
9+
# goreleaser does not work with CGO, it could also complicate
10+
# usage by users in CI/CD systems like Terraform Cloud where
11+
# they are unable to install libraries.
12+
- CGO_ENABLED=0
13+
mod_timestamp: '{{ .CommitTimestamp }}'
14+
flags:
15+
- -trimpath
16+
ldflags:
17+
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
18+
goos:
19+
- freebsd
20+
- windows
21+
- linux
22+
- darwin
23+
goarch:
24+
- amd64
25+
- '386'
26+
- arm
27+
- arm64
28+
ignore:
29+
- goos: darwin
30+
goarch: '386'
31+
- goos: freebsd
32+
goarch: 'arm64'
33+
binary: 'keyfactor'
34+
main: './cmd/keyfactor'
35+
archives:
36+
- format: zip
37+
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
38+
checksum:
39+
name_template: '{{ .ProjectName }}.{{ .Algorithm }}'
40+
algorithm: sha256
41+
# split: true
42+
signs:
43+
- artifacts: checksum
44+
args:
45+
# if you are using this in a GitHub action or some other automated pipeline, you
46+
# need to pass the batch flag to indicate its not interactive.
47+
- "--batch"
48+
- "--local-user"
49+
- "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
50+
- "--output"
51+
- "${signature}"
52+
- "--detach-sign"
53+
- "${artifact}"
54+
release:
55+
prerelease: auto
56+
extra_files:
57+
- glob: 'installation.txt'
58+
# If you want to manually examine the release before its live, uncomment this line:
59+
draft: true
60+
changelog:
61+
sort: asc
62+
use: github
63+
filters:
64+
exclude:
65+
- '^test:'
66+
- '^chore'
67+
- 'merge conflict'
68+
- Merge pull request
69+
- Merge remote-tracking branch
70+
- Merge branch
71+
- go mod tidy
72+
groups:
73+
- title: Dependency updates
74+
regexp: "^.*(feat|fix)\\(deps\\)*:+.*$"
75+
order: 300
76+
- title: 'New Features'
77+
regexp: "^.*feat[(\\w)]*:+.*$"
78+
order: 100
79+
- title: 'Bug fixes'
80+
regexp: "^.*fix[(\\w)]*:+.*$"
81+
order: 200
82+
- title: 'Documentation updates'
83+
regexp: "^.*docs[(\\w)]*:+.*$"
84+
order: 400
85+
- title: Other work
86+
order: 9999

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"files.associations": {
3+
"*.yaml": "home-assistant"
4+
}
5+
}

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
- 1.3.1
2+
- Fix for issue where plugin was not enforcing plugin-side role limitations for AllowedDomains and AllowSubDomains, and was relying exclusively on the certificate template for these values.
3+
4+
- 1.3.0
5+
- Fix for double encoding certificates when viewed in the terminal.
6+
7+
- 1.2.0
8+
- Updated the plugin to use it's own internal configuration settings storage per instance.
9+
10+
- 1.1.0
11+
- added subject parameters to certificate enrollment
12+
- now defaulting to role values for subject parameters if not provided.
13+
14+
- 1.0.1
15+
- This release fixes a bug where the CA logical name was not being URL encoded before sending the request to Keyfactor.
16+
17+
- 1.00
18+
- initial release
-29.7 KB
Binary file not shown.

Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
BINARY = "keyfactor"
2+
VERSION = "v1.3.1"
3+
14
GOARCH = amd64
25

36
UNAME = $(shell uname -s)
@@ -31,4 +34,20 @@ clean:
3134
fmt:
3235
go fmt $$(go list ./...)
3336

37+
38+
release:
39+
GOOS=darwin GOARCH=amd64 go build -o ./bin/${BINARY}_${VERSION}_darwin_amd64
40+
GOOS=freebsd GOARCH=386 go build -o ./bin/${BINARY}_${VERSION}_freebsd_386
41+
GOOS=freebsd GOARCH=amd64 go build -o ./bin/${BINARY}_${VERSION}_freebsd_amd64
42+
GOOS=freebsd GOARCH=arm go build -o ./bin/${BINARY}_${VERSION}_freebsd_arm
43+
GOOS=linux GOARCH=386 go build -o ./bin/${BINARY}_${VERSION}_linux_386
44+
GOOS=linux GOARCH=amd64 go build -o ./bin/${BINARY}_${VERSION}_linux_amd64
45+
GOOS=linux GOARCH=arm go build -o ./bin/${BINARY}_${VERSION}_linux_arm
46+
GOOS=openbsd GOARCH=386 go build -o ./bin/${BINARY}_${VERSION}_openbsd_386
47+
GOOS=openbsd GOARCH=amd64 go build -o ./bin/${BINARY}_${VERSION}_openbsd_amd64
48+
GOOS=solaris GOARCH=amd64 go build -o ./bin/${BINARY}_${VERSION}_solaris_amd64
49+
GOOS=windows GOARCH=386 go build -o ./bin/${BINARY}_${VERSION}_windows_386
50+
GOOS=windows GOARCH=amd64 go build -o ./bin/${BINARY}_${VERSION}_windows_amd64
51+
52+
3453
.PHONY: build clean fmt start enable

0 commit comments

Comments
 (0)