michaeljmarshall commented on issue #78:
URL: 
https://github.com/apache/pulsar-helm-chart/issues/78#issuecomment-1110029405

   > > ```yaml
   > >         PULSAR_PREFIX_authenticateMetricsEndpoint: "false"
   > > ```
   > 
   > I need to understand, is this parameter is working? Or did you just 
provide the suggestion for the solution?
   > 
   > I'm also facing this issue now, and love to hear any other way to fix the 
issue.
   
   Yes, this is the correct solution. Whenever a configuration is not present 
in the `conf/proxy.conf` (or any of the `.conf` files), you must add the 
`PULSAR_PREFIX_` to the start of the configuration value. By doing so, the 
configuration script will map the suffix into the `.conf` file.
   
   
https://github.com/apache/pulsar/blob/0c694cfdc9b11f915f1da86260ad3655c2e99a35/docker/pulsar/scripts/apply-config-from-env.py#L37
   
   Note that in the case of functions, the prefix is actually `PF_`. Note that 
the worker config files are `.yml`.
   
   
https://github.com/apache/pulsar/blob/0c694cfdc9b11f915f1da86260ad3655c2e99a35/docker/pulsar/scripts/gen-yml-from-env.py#L55
   
   You can see here that we run the `bin/apply-config-from-env.py` script 
before starting the proxy process.
   
   
https://github.com/apache/pulsar-helm-chart/blob/cee3fcfe569e2a8cc87fb5f8046b29f47f1d4e39/charts/pulsar/templates/proxy-statefulset.yaml#L184
   
   If you'd like to avoid adding the `PULSAR_PREFIX_`, the best solution is to 
open a PR in the apache/pulsar project and add the config, in this case 
`authenticateMetricsEndpoint` to the proxy conf. Then, a prefix won't be needed 
for this specific configuration.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to