IBM Security QRadar SOAR

 View Only
  • 1.  Adding custom value on the self.app_configs [Custom App]

    Posted Tue March 26, 2024 02:13 AM

    Hi IBM community,

    I want to ask about the custom app building for the components part. So from what I have learn in the guideline, we usually can insert values from the app config using the self.app_configs (the example given is base_url). 

    My current confusion is that when I have additional variable that I would like to add additional variable which is under this example are cookie, auth, where would I define the variable in?

    I would assume that I need to add in the config.py but the generate comment indicates that it is designed for the app.config file which is the one contain the api_key and url



    ------------------------------
    Luqman Nur
    Techlab
    ------------------------------


  • 2.  RE: Adding custom value on the self.app_configs [Custom App]

    Posted Tue March 26, 2024 06:51 AM

    Hello Lugman,

    The app.config is used not just for just api_key and url type settings. It can be used to set any static setting (or which doesm't change too often). That said I'm not sure how it will work for cookie values in app.config , aren't  cookie values  usually set by the server?



    ------------------------------
    JOHN PRENDERGAST
    ------------------------------



  • 3.  RE: Adding custom value on the self.app_configs [Custom App]

    Posted Thu March 28, 2024 08:55 PM

    Hi John,

    Thanks for the reply. So for any static configuration (which usually resides in app environment files) you should put in inside the app.config file for SOAR applications?

    Also you would need to define it in the config.py file as well I assume?

    Something like the name defined under the [app_name]?

    Appreciate the help.



    ------------------------------
    Luqman Nur
    Techlab
    ------------------------------



  • 4.  RE: Adding custom value on the self.app_configs [Custom App]

    Posted Fri March 29, 2024 09:25 AM

    Hi Lugman,

    The config.py module is used to define the sections which are used in the app.config. When an app is being setup the contents of config.py are used to populate the app.config file. The setting values in config.py typically use place holders like <path_to_cert.pem> which will need to be replaced by actual values when the app is being setup.



    ------------------------------
    JOHN PRENDERGAST
    ------------------------------