This is an automated email from the ASF dual-hosted git repository.

guangning pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-manager.git


The following commit(s) were added to refs/heads/master by this push:
     new 1b1a5bd  Updated supervisord-secret-key.conf (#262)
1b1a5bd is described below

commit 1b1a5bd8bf5a67fee62c73a3435a4d420516160f
Author: vshulkin <[email protected]>
AuthorDate: Wed Feb 12 19:48:12 2020 -0500

    Updated supervisord-secret-key.conf (#262)
    
    Fix https://github.com/apache/pulsar-manager/issues/260
    ### Motivation
    Token generation requires secret key to be passed to the pulsar-manager.  
However simple passing the key as an env variable to the docker container does 
not work.  --jwt.broker.token.mode=SECRET needs to be set as well.
    
    ### Modifications
    
    Added --jwt.broker.token.mode=SECRET to supervisord-secret-key.conf as part 
 of program:pulsar-manager-backend command line.
---
 docker/supervisord-secret-key.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docker/supervisord-secret-key.conf 
b/docker/supervisord-secret-key.conf
index cfb9f28..da1facb 100644
--- a/docker/supervisord-secret-key.conf
+++ b/docker/supervisord-secret-key.conf
@@ -28,5 +28,5 @@ minfds=1024
 minprocs=200
 
 [program:pulsar-manager-backend]
-command = /pulsar-manager/pulsar-manager/bin/pulsar-manager  
--redirect.host=%(ENV_REDIRECT_HOST)s --redirect.port=%(ENV_REDIRECT_PORT)s 
--spring.datasource.driver-class-name=%(ENV_DRIVER_CLASS_NAME)s 
--spring.datasource.url=%(ENV_URL)s 
--spring.datasource.username=%(ENV_USERNAME)s 
--spring.datasource.password=%(ENV_PASSWORD)s 
--spring.datasource.initialization-mode=never 
--logging.level.org.apache=%(ENV_LOG_LEVEL)s 
--backend.jwt.token=%(ENV_JWT_TOKEN)s --jwt.broker.secret.key=%(ENV_SECR [...]
+command = /pulsar-manager/pulsar-manager/bin/pulsar-manager  
--redirect.host=%(ENV_REDIRECT_HOST)s --redirect.port=%(ENV_REDIRECT_PORT)s 
--spring.datasource.driver-class-name=%(ENV_DRIVER_CLASS_NAME)s 
--spring.datasource.url=%(ENV_URL)s 
--spring.datasource.username=%(ENV_USERNAME)s 
--spring.datasource.password=%(ENV_PASSWORD)s 
--spring.datasource.initialization-mode=never 
--logging.level.org.apache=%(ENV_LOG_LEVEL)s --jwt.broker.token.mode=SECRET 
--backend.jwt.token=%(ENV_JWT_TOKEN)s --j [...]
 user = root

Reply via email to