Skip to content

FlowETL should support docker secrets #1515

@greenape

Description

@greenape

At the moment, FlowETL (because of the parent image and airflow) will allow you to configure many things using env vars. Obviously we'd rather use secrets in many cases. This should be supported.

Worth considering that this snippet:

shopt -s nullglob
FILES=/run/secrets/*
for f in $FILES; do   
	echo "Loading secret $f."
	export $(basename $f)=$(cat $f)
done

will read all secrets as env vars named for the secret, which might simplify matters.

Alternatively, https://github.com/jezdez/envdir is built for exactly this purpose.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions