Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
jensej
Creator
Creator

Different permission on job and sql query

Hi guys!

I have created a job that I sense will be useful for a lot of people in my company.

Short explained they will have the possibility to write their own sql query and execute the job that will iterate the sql over multiplte db's and deliver the merged output per Mail in an .csv file. This already work as I want to but now I need some help with finetuning.

For security reasons I want to add some kind of password protection or something and maybe you guys have some good suggestions on how to solve this.

I was thinking of something like this:

When the user executes the .batch the have to enter a password. If the password is wrong they job obviously stops. If it's correct the job continues.

A second step would be to have different passwords (users) where only the ones with admin password can run delete/update/insert statements and the rest are only allowed to run select statements. Is there some option in for example tell dbInput to only allow select statements?

Feel free to share your ideas.

Thanks!

Labels (2)
2 Replies
Anonymous
Not applicable

I presume that this is using Talend Open Studio and they are running by clicking on the batch file or running it from the command line. Is that correct? If so, you can set up a context variable (or a couple) to take the username and password, then use it in the job to check against data stored in a database somewhere. It the information is correct, you can set the rest of the job to run. If not, then you can simply print an error message using a tLogRow.

 

This is incredibly basic and not what would be described as truly secure, but should meet your requirements if my assumptions are correct.

jensej
Creator
Creator
Author

Yes I will try solve it like this. Thanks for your answer