Skip to content

Commit

Permalink
Merge pull request #4216 from kubeshop/release/v2.4.5
Browse files Browse the repository at this point in the history
chore(release): 2.4.5
  • Loading branch information
monojack authored Feb 28, 2024
2 parents aff91f9 + 6293976 commit a931041
Show file tree
Hide file tree
Showing 5 changed files with 531 additions and 58 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/monokle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ jobs:
run: |
brew install jq
- name: Check MacOS certs expiration
run: |
ls -la
chmod +x .github/workflows/scripts/check-osx-cert-exp.sh && .github/workflows/scripts/check-osx-cert-exp.sh
env:
CERTIFICATE_OSX_APPLICATION: ${{ secrets.MONOKLE_MACOS_CERTS }}
CERTIFICATE_PASSWORD: ${{ secrets.MONOKLE_MACOS_CERTS_PASSWORD }}

- name: Add MacOS certs
run: |
ls -la
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/scripts/check-osx-cert-exp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env sh

KEY_CHAIN=build.keychain
CERTIFICATE_P12=certificate.p12

# Recreate the certificate from the secure environment variable
echo $CERTIFICATE_OSX_APPLICATION | base64 --decode > $CERTIFICATE_P12

# Get expiration date of the certificate
CERT_EXPIRATION_DATE=$(openssl pkcs12 -in certificate.p12 -passin pass:$CERTIFICATE_PASSWORD -nokeys | openssl x509 -noout -enddate | cut -d= -f2)
echo "Certificate expires on: $CERT_EXPIRATION_DATE"

# Compare the expiration date with the current date
CERT_EXPIRATION_DATE=$(date -j -f "%b %d %T %Y %Z" "$CERT_EXPIRATION_DATE" +"%Y-%m-%d")
CURRENT_DATE=$(date +"%Y-%m-%d")

if [[ "$CURRENT_DATE" > "$CERT_EXPIRATION_DATE" ]]; then
echo "The certificate has expired."
exit 1
else
echo "The certificate is valid."
fi
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [2.4.5](https://github.com/kubeshop/monokle/compare/v2.4.4...v2.4.5) (2024-02-28)


### Bug Fixes

* access debug logs for failed proxy setups ([a05348d](https://github.com/kubeshop/monokle/commit/a05348d37afbde808ea46ee9d2dcbac7580aaca3))
* missing crds folder runtime error ([75fb95a](https://github.com/kubeshop/monokle/commit/75fb95a8bf70f3ae28f72efed05fc81a231b883b))
* preserve \n\t\r control characters when displaying logs ([ed6a412](https://github.com/kubeshop/monokle/commit/ed6a4120fe35cc9e90dab762ec4a87b61610eb33))
* stringify the `context` and `kubeconfig` cli arguments ([93e6652](https://github.com/kubeshop/monokle/commit/93e665267b061efecc5d61702e6ef63b605747ed))

### [2.4.4](https://github.com/kubeshop/monokle/compare/v2.4.3...v2.4.4) (2024-01-04)


Expand Down
Loading

0 comments on commit a931041

Please sign in to comment.