We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Related dev. issue(s): tarantool/tarantool#9506 Parent doc issue: #3666
Product: Tarantool Since: 3.0 Root document:
Access control
SME: @ Totktonada
Example:
config: context: replicator_password: from: file file: secrets/replicator_password.txt rstrip: true client_password: from: file file: secrets/client_password.txt rstrip: true credentials: users: replicator: password: '{{ context.replicator_password }}' roles: [replication] client: password: '{{ context.client_password }}' roles: [super]
The new config.context section allows a user to define its own variables, whose content resides in an environment variable or a file.
config.context
The primary usage is to extract passwords from the configuration.
All the variables are defined in config.context section as keys. Each key is a record with the following fields.
from
env
file
rstrip
A relative file path is interpreted as relative to process.work_dir.
process.work_dir
from is mandatory, file is mandatory when from is file, env is mandatory when from is env, rstrip is optional.
If there is no given file or no given environment variable, an error of a configuration applying is reported.
Requested by @ Totktonada in tarantool/tarantool@830578c.
The text was updated successfully, but these errors were encountered:
andreyaksenov
Successfully merging a pull request may close this issue.
Uh oh!
There was an error while loading. Please reload this page.
Related dev. issue(s): tarantool/tarantool#9506
Parent doc issue: #3666
Product: Tarantool
Since: 3.0
Root document:
Access control
topic ([Config] Document the 'credentials' option #3666)SME: @ Totktonada
Details
Example:
The new
config.context
section allows a user to define its ownvariables, whose content resides in an environment variable or a file.
The primary usage is to extract passwords from the configuration.
All the variables are defined in
config.context
section as keys. Eachkey is a record with the following fields.
from
: eitherenv
orfile
file
: a file pathenv
: an environment variable namerstrip
: whether to strip whitespace characters from the end of thedata (it strips newlines too)
A relative file path is interpreted as relative to
process.work_dir
.from
is mandatory,file
is mandatory whenfrom
isfile
,env
ismandatory when
from
isenv
,rstrip
is optional.If there is no given file or no given environment variable, an error of
a configuration applying is reported.
Requested by @ Totktonada in tarantool/tarantool@830578c.
The text was updated successfully, but these errors were encountered: