Skip to content

Config-Tool: read properties from stdin #56

@mlookaxw

Description

@mlookaxw

Requirement

Additionally to reading properties from files, properties should be read from stdin.

A simple key/value JSON document should be piped to stdin of the buildfed tool.

Example JSON:

{
  "prop1": "value1",
  "prop2": "value2"
}

If the filename of the --prop parameter is a single dash, properties will be read from stdin.

Use Case

With this feature properties from other sources (e.g. AWS SecretsManager or vault) can be easily passed to the buildfed tool.

Example:

# Use key/values from Hashicorp Vault to build a .fed package
vault kv get -format=json  kv/apim | jq .data.data | buildfed -p src/apim.pol -e  src/apim.env -c config/gateway.config.json --prop config/gateway.props.json --prop -

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions