Docker yaml authentication settings (gremlinserver.authentication) question
Does anyone have any experience setting up authentication on Docker by using the supplied .yaml file? I'm having trouble passingin a map to properly set one of the options: gremlinserver.authentication.config.
Additional info, but not related to the my main problem:
I have a file with the contents of username/password pairs which follow the schema:
username:password (sha256)
This file is located within the docker instance at: /etc/opt/janusgraph/janusgraph-credentials-server.properties
However, gremlin server expects credentialsDb as a map and docker wants a string. Therefore I seem unable to configure this property.
Here are the relevant parts of my docker .yaml file:
Additional info, but not related to the my main problem:
I have a file with the contents of username/password pairs which follow the schema:
username:password (sha256)
This file is located within the docker instance at: /etc/opt/janusgraph/janusgraph-credentials-server.properties
However, gremlin server expects credentialsDb as a map and docker wants a string. Therefore I seem unable to configure this property.
Here are the relevant parts of my docker .yaml file:
Solution
Due to gremlin server expecting a map, but docker being unable to pass it to the server in the format that is expected.I think you simply have a slight misunderstanding of the YAML format here. YAML is basically a nested map of maps.
Now, if your YAML looks like this:
then you can change the value of c via the JanusGraph Docker container by passing the environment variable
gremlinserver.a.b.c=newvalue