wso2 / product-is

Welcome to the WSO2 Identity Server source code! For info on working with the WSO2 Identity Server repository and contributing code, click the link below.
http://wso2.github.io/
Apache License 2.0
748 stars 728 forks source link

Still can see the occurrences of username even after running forget me tool #2769

Closed ushanib closed 6 years ago

ushanib commented 6 years ago

Still can see the occurrences of username even after running forget me tool.

  1. user2 is being created and updated with some information.
  2. Then deleted and run the below command

./forget-me -U user2 -d /home/ushani/WSO2_WORK/Products/IS/5.5.0/alpha3/wso2is-5.5.0-alpha3/repository/components/tools/forget-me/conf/ 2018-03-05 17:09:23 INFO ForgetMeTool:167 - Generating pseudonym as pseudo name is not provided : 639186f5-7a86-475e-8072-95d6f88ae36c 2018-03-05 17:09:24 INFO HikariDataSource:72 - HikariPool-0 - is starting. 2018-03-05 17:09:28 INFO HikariDataSource:72 - HikariPool-1 - is starting. 2018-03-05 17:09:30 INFO HikariDataSource:72 - HikariPool-2 - is starting. 2018-03-05 17:09:30 INFO ForgetMeExecutionEngine:219 - Processor execution completed. Processor : rdbms

2018-03-05 17:10:43 INFO ForgetMeExecutionEngine:219 - Processor execution completed. Processor : log-file 2018-03-05 17:10:43 INFO ForgetMeExecutionEngine:115 - All processors have been properly shut-down

But if you go to wso2is-5.5.0-alpha3/repository/logs/ and view wso2carbon.log, still can see the occurrences of user2

ruwanta commented 6 years ago

Need update the doc

The original log file is unmodified after running the tool, but it creates another log file "*-tmp.log", with the change. Original log file needs to be deleted by the admin.

Reasons,

  1. Performance, not to consume memory
  2. The original file may be locked by another live process.
  3. Allows the user to compare validity with a "diff" tool.
ushanib commented 6 years ago

Hi Ruwan, I cannot find a tmp.log file inside logs folder. Can you please confirm this feature? Is this a bug?

JKAUSHALYA commented 6 years ago

Created log file currently has following format ".temp.txt". We will change this to keep the same extension. So the new name for created file will be anon--.log