-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Have the file system signer watch the files on disk for changes and r…
…eload them
- Loading branch information
1 parent
44ac515
commit aa68ad6
Showing
9 changed files
with
244 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ tst/certs/ | |
credential-process-data/ | ||
tst/softhsm/ | ||
tst/softhsm2.conf | ||
|
||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
VERSION=1.1.1 | ||
|
||
release: | ||
.PHONY: release | ||
release: build/bin/aws_signing_helper | ||
|
||
build/bin/aws_signing_helper: | ||
go build -buildmode=pie -ldflags "-X 'github.com/aws/rolesanywhere-credential-helper/cmd.Version=${VERSION}' -linkmode=external -w -s" -trimpath -o build/bin/aws_signing_helper main.go | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -rf build | ||
|
||
# Setting up SoftHSM for PKCS#11 tests. | ||
# This portion is largely copied from https://gitlab.com/openconnect/openconnect/-/blob/v9.12/tests/Makefile.am#L363. | ||
SHM2_UTIL=SOFTHSM2_CONF=tst/softhsm2.conf.tmp softhsm2-util | ||
|
@@ -50,6 +57,7 @@ tst/softhsm2.conf: tst/softhsm2.conf.template $(PKCS8KEYS) $(RSACERTS) $(ECCERTS | |
--mark-always-authenticate | ||
mv [email protected] $@ | ||
|
||
.PHONY: test | ||
test: test-certs tst/softhsm2.conf | ||
SOFTHSM2_CONF=$(curdir)/tst/softhsm2.conf go test -v ./... | ||
|
||
|
@@ -111,8 +119,10 @@ $(certsdir)/cert-bundle-with-comments.pem: $(RSACERTS) $(ECCERTS) | |
echo "Comment in bundle\n" >> $@; \ | ||
done | ||
|
||
.PHONY: test-certs | ||
test-certs: $(PKCS8KEYS) $(RSAKEYS) $(ECKEYS) $(RSACERTS) $(ECCERTS) $(PKCS12CERTS) $(certsdir)/cert-bundle.pem $(certsdir)/cert-bundle-with-comments.pem tst/softhsm2.conf | ||
|
||
.PHONY: test-clean | ||
test-clean: | ||
rm -f $(RSAKEYS) $(ECKEYS) | ||
rm -f $(PKCS8KEYS) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.