X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=datarouter-prov-client%2FREADME.md;fp=datarouter-prov-client%2FREADME.md;h=38857f539eeea02902a63389f3fd6a589ad283b5;hb=0344ccb1aa1bda02cd3ef7291491c5ab8349c289;hp=b7e35b28fce419f3387e33324488b42ce805600b;hpb=3f4532670ff5285159322400b853fcc8802c37d3;p=dmaap%2Fdatarouter.git diff --git a/datarouter-prov-client/README.md b/datarouter-prov-client/README.md index b7e35b28..38857f53 100644 --- a/datarouter-prov-client/README.md +++ b/datarouter-prov-client/README.md @@ -1,3 +1,22 @@ + # Data Router provisioning client ## Overview @@ -55,6 +74,12 @@ The bus controller also had a notion of "location" which has no corresponding no ### Owner The bus controller interface included a field called "owner" for a feed. This may have had some function within the bus controller. It had a minor effect on the bus controller's invocation of the DR provisioning API (setting the `X-DMAAP-DR-ON-BEHALF-OF` header in the API requests associated with the feed). It adds no real value. Maintaining it would add complexity to the drprov-client script and would complicate debugging DR provisioning issues. +Note that the drprov-client.sh script uses "drprovcl" by default as the value in the `X-DMAAP-DR-ON-BEHALF-OF`. This can be overriden by setting the environment +variable `ONBEHALFHDR` in the [common DMaaP provisioning template](https://git.onap.org/oom/tree/kubernetes/common/common/templates/_dmaapProvisioning.tpl). + +`X-DMAAP-DR-ON-BEHALF-OF` forms the basis of a simple authorization mechanism used by the DR provisioning API. The value passed in this header when creating a +feed or a subscription is stored by the DR provisioning server. When the DR API receives a request to retrieve the data for a specific feed or a specific subscription, the API checks that the value in the `X-DMAAP-DR-ON-BEHALF-OF` header in the incoming request matches the stored value for the target feed or subscription. Sometimes during testing or debugging, it is useful to query the DR provisioning API about a specific feed or subscription using a tool like `curl`. Using `X-DMAAP-DR-ON-BEHALF-OF: drprovcl` will allow access to the feeds and subscription created by the drprov-client.sh script. + ### Classification The bus controller interface included a field called "asprClassification" for a feed. The field is required by DR and indicates the sensitivity of the information transmitted in a feed. This has not been used in ONAP, but it is a required field. "aspr" is an internal acronym at the company where DR was originally developed. The field has been renamed "classification". "unclassified" is a reasonable value to use in ONAP.