From 4ce31e7113dda10836bda998a452925da6eaf778 Mon Sep 17 00:00:00 2001 From: Matthias Buchhorn Date: Tue, 10 Dec 2024 12:00:32 +0100 Subject: [PATCH 1/6] Add Dedc.api.accounts.key. to fix the error: class org.eclipse.edc.api.iam.identitytrust.sts.accounts.StsAccountsApiExtension is missing --> Configuration value "accountsApiKeyOrAlias" --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e022f5759..e2cd5e8f7 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,7 @@ java -Dweb.http.presentation.port=10001 \ -Dweb.http.identity.port=8182 \ -Dweb.http.identity.path="/api/identity" \ -Dedc.ih.api.superuser.key="c3VwZXItdXNlcgo=c3VwZXItc2VjcmV0Cg==" \ + -Dedc.api.accounts.key="bmV3LXVzZXI=\nbmV3LXNlY3JldA=="\ -jar launcher/identityhub/build/libs/identity-hub.jar ``` From 26a1055eea05eb3d1a2eb29512992c557b921538 Mon Sep 17 00:00:00 2001 From: "Matthias Buchhorn (Cofinity-X)" Date: Tue, 10 Dec 2024 12:26:01 +0100 Subject: [PATCH 2/6] Create gradle-publish.yml --- .github/workflows/gradle-publish.yml | 44 ++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/gradle-publish.yml diff --git a/.github/workflows/gradle-publish.yml b/.github/workflows/gradle-publish.yml new file mode 100644 index 000000000..20d17dc3b --- /dev/null +++ b/.github/workflows/gradle-publish.yml @@ -0,0 +1,44 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created +# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-gradle + +name: Gradle Package + +on: + release: + types: [created] + +jobs: + build: + + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + server-id: github # Value of the distributionManagement/repository/id field of the pom.xml + settings-path: ${{ github.workspace }} # location for the settings.xml file + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0 + + - name: Build with Gradle + run: ./gradlew build + + # The USERNAME and TOKEN need to correspond to the credentials environment variables used in + # the publishing section of your build.gradle + - name: Publish to GitHub Packages + run: ./gradlew publish + env: + USERNAME: ${{ github.actor }} + TOKEN: ${{ secrets.GITHUB_TOKEN }} From 7ea6538ff1de7d66086a619c1c9e9174d82ab3aa Mon Sep 17 00:00:00 2001 From: Matthias Buchhorn Date: Tue, 10 Dec 2024 12:34:45 +0100 Subject: [PATCH 3/6] retry --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e2cd5e8f7..d9607de7b 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ java -Dweb.http.presentation.port=10001 \ -Dweb.http.identity.port=8182 \ -Dweb.http.identity.path="/api/identity" \ -Dedc.ih.api.superuser.key="c3VwZXItdXNlcgo=c3VwZXItc2VjcmV0Cg==" \ - -Dedc.api.accounts.key="bmV3LXVzZXI=\nbmV3LXNlY3JldA=="\ + -Dedc.api.accounts.key="bmV3LXVzZXI=\nbmV3LXNlY3JldA==" \ -jar launcher/identityhub/build/libs/identity-hub.jar ``` From 262bfd24afba4fa7e7889f7c3825949f8fb401c3 Mon Sep 17 00:00:00 2001 From: Matthias Buchhorn Date: Mon, 6 Jan 2025 10:47:44 +0100 Subject: [PATCH 4/6] dont need --- .github/workflows/gradle-publish.yml | 44 ---------------------------- 1 file changed, 44 deletions(-) delete mode 100644 .github/workflows/gradle-publish.yml diff --git a/.github/workflows/gradle-publish.yml b/.github/workflows/gradle-publish.yml deleted file mode 100644 index 20d17dc3b..000000000 --- a/.github/workflows/gradle-publish.yml +++ /dev/null @@ -1,44 +0,0 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. -# This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created -# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-gradle - -name: Gradle Package - -on: - release: - types: [created] - -jobs: - build: - - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - - steps: - - uses: actions/checkout@v4 - - name: Set up JDK 17 - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'temurin' - server-id: github # Value of the distributionManagement/repository/id field of the pom.xml - settings-path: ${{ github.workspace }} # location for the settings.xml file - - - name: Setup Gradle - uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0 - - - name: Build with Gradle - run: ./gradlew build - - # The USERNAME and TOKEN need to correspond to the credentials environment variables used in - # the publishing section of your build.gradle - - name: Publish to GitHub Packages - run: ./gradlew publish - env: - USERNAME: ${{ github.actor }} - TOKEN: ${{ secrets.GITHUB_TOKEN }} From c853a7ad9c8419141adfa3ad53ea6d43645671aa Mon Sep 17 00:00:00 2001 From: Matthias Buchhorn Date: Tue, 7 Jan 2025 17:00:22 +0100 Subject: [PATCH 5/6] Change to demo keys for accounts and admin role --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 390af85bf..3d376e96f 100644 --- a/README.md +++ b/README.md @@ -66,8 +66,8 @@ java -Dweb.http.presentation.port=10001 \ -Dweb.http.path="/api" \ -Dweb.http.identity.port=8182 \ -Dweb.http.identity.path="/api/identity" \ - -Dedc.ih.api.superuser.key="c3VwZXItdXNlcgo=c3VwZXItc2VjcmV0Cg==" \ - -Dedc.api.accounts.key="bmV3LXVzZXI=\nbmV3LXNlY3JldA==" \ + -Dedc.ih.api.superuser.key="demo-admin-key" \ + -Dedc.api.accounts.key="demo-accounts-key" \ -jar launcher/identityhub/build/libs/identity-hub.jar ``` From a730b63f1c5fdd12c04702a073919304dd548e1b Mon Sep 17 00:00:00 2001 From: Matthias Buchhorn Date: Tue, 14 Jan 2025 16:30:52 +0100 Subject: [PATCH 6/6] Update README.md Co-authored-by: Paul Latzelsperger <43503240+paullatzelsperger@users.noreply.github.com> --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index b127c2dbb..339ca3b77 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,6 @@ java -Dweb.http.presentation.port=10001 \ -Dweb.http.path="/api" \ -Dweb.http.identity.port=8182 \ -Dweb.http.identity.path="/api/identity" \ - -Dedc.ih.api.superuser.key="demo-admin-key" \ -Dedc.api.accounts.key="demo-accounts-key" \ -jar launcher/identityhub/build/libs/identity-hub.jar ```