Skip to content

Add ConfigProvider to make use of environment variables #500

@Antoine7773

Description

@Antoine7773

Hello,

Is your feature request related to a problem? Please describe.
I would like to run Jikkou in a GitHub action to connect to a SASL_PLAINTEXT cluster.
Currently it seems that Jikkou does not support the load of env vars in jikkouconfig file

Describe the solution you'd like
I would like to be able to define in the jikkouconfig file something like this :

"my_cluster_A" : {
"configFile" : null,
"configProps" : {
"kafka.client.bootstrap.servers" : "my_host_A:9092",
"kafka.client.security.protocol" : "SASL_PLAINTEXT",
"kafka.client.sasl.mechanism" : "SCRAM-SHA-256",
"kafka.client.sasl.jaas.config" : "org.apache.kafka.common.security.scram.ScramLoginModule required username="jikkou-user" password="${env:JIKKOU_PASSWORD}";",
"schemaRegistry.url" : "schema_host_A:8081"
}

Then I would set env variable JIKKOU_PASSWORD from GitHub secret that would be used by Jikkou

Describe alternatives you've considered
Thought about using sed to replace the variable by the actual secret but it means writing the password in clear so not the best option.

Additional context
Kafka implemented this feature according to this ticket https://issues.apache.org/jira/browse/KAFKA-14376
Would it be possible to have the same kind of feature in Jikkou ?

Metadata

Metadata

Assignees

No one assigned

    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