Skip to content
New issue

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

[nifi-cluster] cluster.nifiProperties.overrideSecretConfig is ignored when configured #462

Open
Nickmman opened this issue Sep 10, 2024 · 0 comments
Labels
bug Something isn't working community

Comments

@Nickmman
Copy link

Nickmman commented Sep 10, 2024

What steps will reproduce the bug?

  • Deploy helm chart with following values:
cluster:
  nifiProperties:
    overrideSecretConfig:
      name: nifi-config-override
      data: nifi.properties
      namespace: nifi
  • Create a secret with the following contents:
apiVersion: v1
data:
  nifi.properties: bmlmaS5zZW5zaXRpdmUucHJvcHMua2V5PXpnOExlVlNZSkQ0cEhzR2pUd3Y5dXkK
kind: Secret
metadata:
  name: nifi-config-override
  namespace: nifi
type: Opaque

Decoded, the secret is as follows (in JSON):

{
  "nifi.properties": "nifi.sensitive.props.key=zg8LeVSYJD4pHsGjTwv9uy\n"
}
  • Observe as the nifi-cluster-config-1 secret does not contain the properties from the override secret

What is the expected behavior?

The resulting node config contains the properties mixed in from the override secret

What do you see instead?

The properties in the resulting node config remain unconfigured

Possible solution

No response

NiFiKop version

v1.10.0

Golang version

Whatever is bundled with the container image

Kubernetes version

Client Version: v1.29.1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.29.7-gke.1104000

NiFi version

No response

Additional context

I have configured the values based on #47 (comment).

I tried with both nifi.properties and properties as the secret key but neither worked.

Additionally, I tried with both the values for secret override above, as well as the following (per the comment reference to an old repo):

cluster:
  readOnlyConfig:
    nifiProperties:
      overrideSecretConfig:
        name: nifi-config-override
        data: nifi.properties
        namespace: nifi
@Nickmman Nickmman added bug Something isn't working community labels Sep 10, 2024
@Nickmman Nickmman changed the title [nifi-cluster] readOnlyConfig.nifiProperties.overrideSecretConfig is ignored when configured [nifi-cluster] nifiProperties.overrideSecretConfig is ignored when configured Sep 12, 2024
@Nickmman Nickmman changed the title [nifi-cluster] nifiProperties.overrideSecretConfig is ignored when configured [nifi-cluster] cluster.nifiProperties.overrideSecretConfig is ignored when configured Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working community
Projects
None yet
Development

No branches or pull requests

1 participant