Open
Description
Description
UI links to the API URL base for OpenCTI even if separate URL and API URL are present
For example, even with the below config the link to OpenCTI in the UI would be https://api-opencti-url.example.com
openbas.xtm.opencti.enable=true
openbas.xtm.opencti.url=https://public-opencti-url.example.com
openbas.xtm.opencti.api_url=https://api-opencti-url.example.com/graphql
openbas.xtm.opencti.token=abcdef123456
Environment
OpenBAS 1.15.2
Expected Output
The OpenCTI app button links to https://public-opencti-url.example.com
Actual Output
The OpenCTI app button links to https://api-opencti-url.example.com
Proposed Fix
- Replace
getUrl
inOpenCTIConfig
withgetPublicUrl
andgetApiUrl
or similar (permalink) - Update calls to
getUrl
togetPublicUrl
inPlatformSettingsService
(permalink) - Update calls to
getUrl
togetApiUrl
inOpenCTIService
(permalink)
Screenshots (optional)
