Hello All,
Here is my use case
I am using Nifi 2.0.0.M1 . I developed one flow where i am connecting to a database and converting result to Json format and store these file on to a folder.
This flow (flow.json.raw) is then deployed on a VM that contains Minifi. This flow works fine.
Note : In Nifi , all the connection string - with user id and password ( Sensitive = True) is stored in Parameter context. Where as after generating the Flow.json.raw , this information (all the properties in Parameter Context - Nifi) is present inside file ( flow.json.raw) under Parameter Context Object.
![mohdriyaz_0-1715347491712.png mohdriyaz_0-1715347491712.png](https://community.cloudera.com/t5/image/serverpage/image-id/40597iC30246171A074679/image-size/medium?v=v2&px=400)
Issue :
Problem here i am facing is , when i deploy this flow on another VM where user provide its own userId and Password , i can edit Flow.json.raw file and update ParameterContext - UserId . But since password is stored in encrypt format. i can't change the ParameterContext - password value.
I need to store the Password in the encrypt format so that flow running under minifi should understand it and perform the operations.
What i Tried
I tried Encrypt-Config under Nifi Toolkit
![mohdriyaz_1-1715346138374.png mohdriyaz_1-1715346138374.png](https://community.cloudera.com/t5/image/serverpage/image-id/40596i22C5067BC3669021/image-size/medium?v=v2&px=400)
i tried to perform encryption using the algorithm mention in nifi.properties
![mohdriyaz_0-1715346072335.png mohdriyaz_0-1715346072335.png](https://community.cloudera.com/t5/image/serverpage/image-id/40595iE6C5AFDF83665AA9/image-size/medium?v=v2&px=400)
I am still searching for a method through which i can encrypt the password in the same way Nifi is doing with its ParameterContext properties where sensitivity flag is TRUE
Thanks,
Riyaz