Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If Caldera executor is enabled and Caldera is down, the platform should fail to start #1034

Closed
SamuelHassine opened this issue May 30, 2024 · 2 comments · Fixed by #1201
Closed
Assignees
Labels
bug use for describing something not working as expected solved The issue has been solved
Milestone

Comments

@SamuelHassine
Copy link
Member

Description

If Caldera executor is enabled and Caldera is down, the platform should fail to start

If this is not the case, here is what happens:

  1. Platform starting
  2. At boot, the platform tries to create the Caldera abilities to launch executor, it fails with:
2024-05-30T19:00:02.743Z ERROR 6 --- [OpenBAS API] [           main] i.o.e.c.service.CalderaExecutorService   : Error creating caldera executor: java.lang.RuntimeException: org.apache.hc.client5.http.ClientProtocolException: Unexpected response for request on: /abilities
2024-05-30T19:00:02.860Z ERROR 6 --- [OpenBAS API] [           main] i.o.e.c.service.CalderaExecutorService   : Error creating caldera executor: java.lang.RuntimeException: org.apache.hc.client5.http.ClientProtocolException: Unexpected response for request on: /abilities
2024-05-30T19:00:02.868Z ERROR 6 --- [OpenBAS API] [lTaskScheduler3] i.o.e.c.client.CalderaExecutorClient     : Cannot retrive agent list
  1. When trying to execute something, nothing happens ever, because abilities in Caldera are missing.
@SamuelHassine SamuelHassine added bug use for describing something not working as expected needs triage use to identify issue needing triage from Filigran Product team labels May 30, 2024
@jborozco jborozco removed the needs triage use to identify issue needing triage from Filigran Product team label May 31, 2024
@SamuelHassine SamuelHassine added this to the Bugs backlog milestone Jun 1, 2024
@johanah29
Copy link
Member

Do we really want our users not to interact with the platform when caldera is down? We have other features that do not depend on caldera to work (sending emails and sms for example).

@jborozco jborozco added the needs more info use to identify issue needing additional info to be triaged or solved label Jun 21, 2024
@jborozco
Copy link

As discussed in technical refinement to prevent the whole platform to be down, and let user see his data and prepare other exercises:

In case of executor Caldera being down, show a platform message alerting the user.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug use for describing something not working as expected solved The issue has been solved
Projects
None yet
5 participants