Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to 0.1.0 of product-edc and 0.0.1-20220818-SNAPSHOT of upstream #151

Merged
merged 2 commits into from
Aug 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/kics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
# Upload findings to GitHub Advanced Security Dashboard
- name: Upload SARIF file for GitHub Advanced Security Dashboard
if: always()
uses: github/codeql-action/upload-sarif@v1
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: kicsResults/results.sarif

4 changes: 2 additions & 2 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
severity: "CRITICAL,HIGH"

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v1
uses: github/codeql-action/upload-sarif@v2
if: always()
with:
sarif_file: "trivy-results1.sarif"
Expand Down Expand Up @@ -76,6 +76,6 @@ jobs:

- name: Upload Trivy scan results to GitHub Security tab
if: always()
uses: github/codeql-action/upload-sarif@v1
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: "trivy-results2.sarif"
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ edc.dataplane.selector.http.properties={ "publicApiUrl": "http://consumer-data-p
# Dataplane Token
edc.transfer.proxy.token.signer.privatekey.alias=dp-signer-private-key
edc.transfer.proxy.token.verifier.publickey.alias=dp-verifier-public-key

# Data Encryption
edc.data.encryption.keys.alias=data-encryption
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ edc.dataplane.selector.http.properties={ "publicApiUrl": "http://provider-data-p
# Dataplane Token
edc.transfer.proxy.token.signer.privatekey.alias=dp-signer-private-key
edc.transfer.proxy.token.verifier.publickey.alias=dp-verifier-public-key

# Data Encryption
edc.data.encryption.keys.alias=data-encryption
2 changes: 1 addition & 1 deletion api-wrapper/services/api-wrapper/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {

val javaVersion = 11
val edcGroup = "org.eclipse.dataspaceconnector"
val edcVersion = "0.0.1-milestone-5"
val edcVersion = "0.0.1-20220818-SNAPSHOT"

dependencies {
implementation("$edcGroup:core-boot:$edcVersion")
Expand Down
7 changes: 7 additions & 0 deletions api-wrapper/vault/uploadCertsIntoVault.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ dpVerifierPublicKeyAlias="dp-verifier-public-key"
dpSignerPrivateKeyPath="${dpSignerPrivateKeyAlias}.pem"
dpVerifierPublicKeyPath="${dpVerifierPublicKeyAlias}.pem"

dataEncryptionKeyAlias="data-encryption"
dataEncryptionKeyPath="${dataEncryptionKeyAlias}.aes"

[ -z "$VAULT_URL" ] && VAULT_URL="http://localhost:8200"
[ -z "$VAULT_TOKEN" ] && VAULT_TOKEN="password"

Expand All @@ -30,6 +33,9 @@ openssl genpkey -out "${dpSignerPrivateKeyPath}" -algorithm RSA -pkeyopt rsa_key
# Public Key
openssl rsa -in "${dpSignerPrivateKeyPath}" -out "${dpVerifierPublicKeyPath}" -pubout -outform PEM

# DataEncryption Key
openssl rand -base64 32 > "${dataEncryptionKeyPath}"

echo "Waiting for Vault..."
while [ "$(curl -XGET --insecure --silent -H "X-Vault-Token: ${VAULT_TOKEN}" "${VAULT_URL}/v1/sys/health" | jq '.initialized')" != "true" ]; do
echo 'Vault is Initializing...'
Expand All @@ -44,3 +50,4 @@ vault login -non-interactive=true -no-print -address="${VAULT_URL}" token="${VAU
echo "Adding secrets to Vault..."
vault kv put -address="${VAULT_URL}" "secret/${dpSignerPrivateKeyAlias}" content=- < "${dpSignerPrivateKeyPath}"
vault kv put -address="${VAULT_URL}" "secret/${dpVerifierPublicKeyAlias}" content=- < "${dpVerifierPublicKeyPath}"
vault kv put -address="${VAULT_URL}" "secret/${dataEncryptionKeyAlias}" content=- < "${dataEncryptionKeyPath}"