Original Message:
Sent: Mon March 03, 2025 11:05 AM
From: Adam McIlravey
Subject: Prevent Logging of Trigger.bat file
Thanks Michael...
So if I understand you correctly, and to confirm I am not looking to move the trigger scripting off the application server, I am looking to edit the Java code in sdk/java/EventTrigger assuming that to be the easiest solution.
However, to be clear, I am not an SDK or Java code developer (but, I hopefully have access to some in our IT department).
It looks like there are two main files - trigger.class and trigger.java - which one, and or both, need editing such that the password will not be logged?
To me, trigger.java is the most likely candidate for modification as it opens most easily for editing in a text editor, but I could well be mistaken.
It looks like there is a section of output in the log following the statement that displays the parameters in somewhat, but not completely, obfuscated manner:
- javax.net.ssl|FINE|01|main|2025-02-28 15:05:22.134 EST|Thread.java:1178|Plaintext before ENCRYPTION (
This is the section of code that I would like to exclude or modify such that output is excluded from the log.
Thanks again, and any help would be greatly appreciated.
------------------------------
Adam McIlravey
Original Message:
Sent: Tue February 25, 2025 03:20 AM
From: Michael Haaß
Subject: Prevent Logging of Trigger.bat file
Hello Adam,
the trigger is (more or less) a sample of SDK. In the folder sdk/java/EventTrigger on your Cognos Analytics server you find the java source code which you can modify with your requirements and place your script outside of the installation directory.
In general the trigger script can be put outside of Cognos Analytics (any other server with network connection to Cognos Analytics dispatcher). See: https://www.ibm.com/docs/en/cognos-analytics/12.0.0?topic=scheduling-set-up-trigger-occurrence-server for details.
------------------------------
Michael Haaß
IBM
Original Message:
Sent: Mon February 24, 2025 02:43 PM
From: Adam McIlravey
Subject: Prevent Logging of Trigger.bat file
Our corporate scheduler executes a script on the Cognos application server that receives the 5 parameters necessary for the trigger.bat.
This script then executes the trigger.bat file in the default Cognos directory.
We need to obfuscate the Cognos user password in all places possible.
The user password hidden as a variable in the scheduler, however, the log file produced from the trigger.bat file shows the password.
Is there a way not to produce this log file or to have the parameters passed to trigger.bat obfuscated in the log file?
In the trigger.bat file, I believe @echo on is defined, can I modify this to @echo off?
In which case, am I better to create another version of trigger.bat so that it is not overwritten during an upgrade?
Does the trigger.bat file need to remain in the defined directory and what are the risks of changing it?
Thanks in advance,
Adam.
------------------------------
Adam McIlravey
------------------------------