OpenBAS-Platform / openbas

Open Breach and Attack Simulation Platform
https://openbas.io
Other
446 stars 43 forks source link

connection refused when access localhost:8080 #1253

Open Dojav opened 1 month ago

Dojav commented 1 month ago

Description

I am trying to establish the environment using docker and the error message shows the dashboard refused connection.

Environment

  1. OS (where OpenBAS server runs): Ubuntu 22.04.1 LTS
  2. OpenBAS version: OpenBAS 1.3
  3. Other environment details: minio image changed to minio/minio:RELEASE.2024-05-28T17-19-04Z-cpuv1

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. Sudo Docker compose up -d

Expected Output

Able to Launch Dashboard of OpenBAS (https://localhost:8080)

Actual Output

Connection was reset when accessing localhost:8080

Additional information

Error Log is attached

Log-refusedConnection.txt

Dimfacion commented 1 month ago

Hi ! From what I can see in the logs you provided, it looks like there is an issue with your imap. Can you check it's been properly configured in your .env as stated here : https://docs.openbas.io/latest/deployment/installation/#docker-compose-env ?

Dojav commented 1 month ago

HI @Dimfacion,

Not sure if my .env file correct.

.env

POSTGRES_USER=arthus POSTGRES_PASSWORD= KEYSTORE_PASSWORD= MINIO_ROOT_USER=arthus MINIO_ROOT_PASSWORD= RABBITMQ_DEFAULT_USER=arthus RABBITMQ_DEFAULT_PASS= SPRING_MAIL_HOST=smtp.arthus.com SPRING_MAIL_PORT=465 SPRING_MAIL_USERNAME=test1@arthus.com SPRING_MAIL_PASSWORD= SPRING_MAIL_PROPERTIES_MAIL_SMTP_AUTH=true SPRING_MAIL_PROPERTIES_MAIL_SMTP_SSL_ENABLE=true SPRING_MAIL_PROPERTIES_MAIL_SMTP_STARTTLS_ENABLE=false OPENBAS_MAIL_IMAP_HOST=imap.arthus.com OPENBAS_MAIL_IMAP_PORT=993 OPENBAS_MAIL_IMAP_AUTH=true OPENBAS_MAIL_IMAP_SSL_ENABLE=true OPENBAS_MAIL_IMAP_STARTTLS_ENABLE=false OPENBAS_ADMIN_EMAIL=admin@openbas.io OPENBAS_ADMIN_PASSWORD= OPENBAS_ADMIN_TOKEN=0678a3a3-19d4-4bf1-8931-4a09a09b4e8f CALDERA_PUBLIC_URL=http://localhost:8888 CALDERA_API_KEY=***** COLLECTOR_MITRE_ATTACK_ID=3050d2a3-291d-44eb-8038-b4e7dd107436 COLLECTOR_ATOMIC_RED_TEAM_ID=0f2a85c1-0a3b-4405-a79c-c65398ee4a76

AmitKulkarni9 commented 1 month ago

@Dojav Please use version 1.3.1 and should work. I was getting the same error. image: openbas/platform:1.3.1 image: openbas/collector-mitre-attack:1.3.1 image: openbas/collector-atomic-red-team:1.3.1

nino-filigran commented 4 weeks ago

@Dojav Do you still encounter issues?

Dojav commented 3 weeks ago

@AmitKulkarni9 Thanks I am now able to login however the IMAP service is still not responding and I am using imap.gmail.com The scrrenshot is attached into PDF or from this link https://justpaste.it/4xpo3 imapissue.pdf

guillaumejparis commented 1 week ago

I got it working with this config, can you maybe show us your imap config with gmail ?

# IMAP Configuration
openbas.mail.imap.enabled=true
openbas.mail.imap.host=imap.gmail.com
openbas.mail.imap.username=<gmail mail>
openbas.mail.imap.password=<gmail app password>
openbas.mail.imap.port=993
openbas.mail.imap.inbox=Inbox
openbas.mail.imap.sent=[Gmail]/Sent Mail
# Extra IMAP configuration
openbas.mail.imap.ssl.trust=*
openbas.mail.imap.ssl.enable=true
openbas.mail.imap.auth=true
openbas.mail.imap.starttls.enable=true