How to acces Asset Metadata in code? #4411
-
Hello, I implemented my own DataFlowController. Is there a way to acces the Metadata like public properties of an Asset in the DataFlowController? {
"@context": {
"@vocab": "[https://w3id.org/edc/v0.0.1/ns/"](https://w3id.org/edc/v0.0.1/ns/%22)
},
"@id": "asb-asset",
"properties": {
"key": "i want to acces this value"
},
"privateProperties": {
"privateKey": "value"
},
"dataAddress": {
"type": "AzureServiceBus",
"azure-servicebus.servers": "adress here"
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
paullatzelsperger
Aug 13, 2024
Replies: 1 comment 5 replies
-
@3rim Assets are concepts of the control-plane, they do not in the data plane, other than collecting available transfer types for them. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the Kafka example, the consumer ("alice") uses a client secret rather than a short-lived token. However, if "alice" were to use a token instead, then Kafka would be responsible for its renewal (IDK if Kafka offers that, TBH).
The key aspect is that it is always the data plane that is responsible for authentication, and in the sample, Kafka is the dataplane.v
However, in the scenario you describe, you seem to have token rotation implemented manually, so you will need to implement a custom data plane, even if that delegates down to another message broker system.
TL;DR: yes, you should follow my advice.