-
Notifications
You must be signed in to change notification settings - Fork 56
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
docs: add quick guide to the charts' README #520
Merged
paullatzelsperger
merged 1 commit into
eclipse-tractusx:main
from
paullatzelsperger:docs/improve_gotmpl_of_helm_charts
Jun 22, 2023
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -9,31 +9,38 @@ This chart is intended for use with an _existing_ PostgreSQL database and an _ex | |
|
||
**Homepage:** <https://github.com/eclipse-tractusx/tractusx-edc/tree/main/charts/tractusx-connector> | ||
|
||
This chart uses Azure KeyVault, which is expected to contain the following secrets on application start: | ||
## Setting up SSI | ||
|
||
- `daps-cert`: contains the x509 certificate of the connector. | ||
- `daps-key`: the private key of the x509 certificate | ||
- `aes-keys`: a 128bit, 256bit or 512bit string used to encrypt data. Must be stored in base64 format. | ||
### Preconditions | ||
|
||
These must be obtained from a DAPS instance, the process of which is out of the scope of this document. Alternatively, | ||
self-signed certificates can be used for testing: | ||
- the Managed Identity Walled (MIW) must be running and reachable via network | ||
- the necessary set of VerifiableCredentials for this participant must be pushed to MIW. This is typically done by the | ||
Portal during participant onboarding | ||
- KeyCloak must be running and reachable via network | ||
- an account with KeyCloak must be created for this BPN and the connector must be able to obtain access tokens | ||
- the client ID and client secret corresponding to that account must be known | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Keycloak account |
||
|
||
```shell | ||
openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout daps.key -out daps.cert -subj "/CN=test" | ||
export DAPS_KEY="$(cat daps.key)" | ||
export DAPS_CERT="$(cat daps.cert)" | ||
``` | ||
### Preparatory work | ||
|
||
## Launching the application | ||
- store your KeyCloak client secret in the Azure KeyVault. The exact procedure is as follows: | ||
```bash | ||
az keyvault secret set --vault-name <YOUR_VAULT_NAME> --name client-secret --value "$YOUR_CLIENT_SECRET" | ||
``` | ||
By default, Tractus-X EDC expects to find the secret under `client-secret`. | ||
|
||
The following requirements must be met before launching the application: | ||
### Configure the chart | ||
|
||
- Write access to an Azure KeyVault instance is required to run this chart | ||
- Secrets are seeded in advance | ||
- The vault's client id, client secret, tenant id and vault name (not the url!) are known | ||
Be sure to provide the following configuration entries to your Tractus-X EDC Helm chart: | ||
- `controlplane.ssi.miw.url`: the URL | ||
- `controlplane.ssi.miw.authorityId`: the BPN of the issuer authority | ||
- `controlplane.ssi.oauth.tokenurl`: the URL (of KeyCloak), where access tokens can be obtained | ||
- `controlplane.ssi.oauth.client.id`: client ID for KeyCloak | ||
- `controlplane.ssi.oauth.client.secretAlias`: the alias under which the client secret is stored in the vault. Defaults to `client-secret`. | ||
|
||
Please also consider using [this example configuration](https://github.com/eclipse-tractusx/tractusx-edc/blob/main/edc-tests/deployment/src/main/resources/helm/tractusx-connector-azure-vault-test.yaml) | ||
to launch the application. | ||
### Launching the application | ||
|
||
As an easy starting point, please consider using [this example configuration](https://github.com/eclipse-tractusx/tractusx-edc/blob/main/edc-tests/deployment/src/main/resources/helm/tractusx-connector-test.yaml) | ||
to launch the application. The configuration values mentioned above (`controlplane.ssi.*`) will have to be adapted manually. | ||
Combined, run this shell command to start the in-memory Tractus-X EDC runtime: | ||
|
||
```shell | ||
|
@@ -46,8 +53,6 @@ helm install my-release tractusx-edc/tractusx-connector-azure-vault --version 0. | |
--set vault.azure.tenant=$AZURE_TENANT_ID | ||
``` | ||
|
||
Note that `DAPS_CERT` contains the x509 certificate, `DAPS_KEY` contains the private key. | ||
|
||
## Source Code | ||
|
||
* <https://github.com/eclipse-tractusx/tractusx-edc/tree/main/charts/tractusx-connector> | ||
|
@@ -160,7 +165,6 @@ Note that `DAPS_CERT` contains the x509 certificate, `DAPS_KEY` contains the pri | |
| controlplane.securityContext.runAsUser | int | `10001` | The container's process will run with the specified uid | | ||
| controlplane.service.annotations | object | `{}` | | | ||
| controlplane.service.type | string | `"ClusterIP"` | [Service type](https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types) to expose the running application on a set of Pods as a network service. | | ||
| controlplane.ssi.endpoint.audience | string | `"http://this.audience"` | | | ||
| controlplane.ssi.miw.authorityId | string | `""` | | | ||
| controlplane.ssi.miw.url | string | `""` | | | ||
| controlplane.ssi.oauth.client.id | string | `""` | | | ||
|
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
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
channeling my inner Grammarly: "via the network"