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

[BUG] Login Failed with Default Credentials #430

Closed
thehappydinoa opened this issue Jan 29, 2024 · 5 comments
Closed

[BUG] Login Failed with Default Credentials #430

thehappydinoa opened this issue Jan 29, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@thehappydinoa
Copy link

thehappydinoa commented Jan 29, 2024

Describe the bug

Using the credentials strelka:strelka I get a Login Failed error from Strelka UI.

Environment details

  • Operating System: macOS 13.6.4
  • Architecture: arm64

Steps to reproduce
Steps to reproduce the behavior:

  1. Run
git clone https://github.com/target/strelka.git && \
cd strelka
rm configs/python/backend/yara/rules.yara && \
git clone https://github.com/Yara-Rules/rules.git configs/python/backend/yara/rules/ && \
echo 'include "./rules/index.yar"' > configs/python/backend/yara/rules.yara
# I tried both methods of starting Strelka with precompiled images and building myself.
docker-compose -f build/docker-compose-no-build.yaml up -d
docker-compose -f build/docker-compose-no-build.yaml down
docker-compose -f build/docker-compose.yaml build && \
docker-compose -f build/docker-compose.yaml up -d
  1. Go to http://localhost:9980/login
  2. Try credentials strelka:strelka and see the error message Login Failed

Expected behavior

I expected to be logged in.

Screenshots

Screenshot

Release

  • Release: 0.24.01.18

Additional context

I am on an M1 mac and have encountered other issues like this before, wondering if something failed with Docker.

@thehappydinoa thehappydinoa added the bug Something isn't working label Jan 29, 2024
@phutelmyer
Copy link
Contributor

phutelmyer commented Jan 29, 2024

@thehappydinoa I'll take a look today. Thanks for reporting this.
This has happened before and it's probably due to my bad coding and not Docker :)

I'll @ you when I figure it out.

@thehappydinoa
Copy link
Author

@phutelmyer Thank you so much! I appreciate your quick response, I look forward to hearing from you.

@phutelmyer
Copy link
Contributor

phutelmyer commented Jan 29, 2024

@thehappydinoa do you mind trying this again? You will likely have to delete / repull the latest strelka-ui image.

Just for reference, the following command should get you there (if you're using no-build.yml you will have to adjust):

docker-compose -f build/docker-compose.yaml down && docker rmi target/strelka-ui:latest && docker pull target/strelka-ui:latest

@thehappydinoa
Copy link
Author

thehappydinoa commented Jan 29, 2024

Here is the output from those commands.

$ docker-compose -f build/docker-compose.yaml down && docker rmi target/strelka-ui:latest && docker pull target/strelka-ui:latest
Untagged: target/strelka-ui:latest
Untagged: target/strelka-ui@sha256:e854e37e72061f7666a87fe7fd64ddfc97b73f7c8daeecb29f907f5b540c2243
Deleted: sha256:0bef637c2cd9342651a05fd6ec65d0a1db646f405a1c68166cd152ac6acad4a7
Deleted: sha256:32a5da72332b6bc9e9c24300511dc12904b39ac9b34150f153d303ada9591304
Deleted: sha256:355c6f03b9ca229a8eaa5accf1be68820a638144df8f7baf4a0a4e9ba35479bb
Deleted: sha256:c0899ae8382dc81b4bf0ceb23ef1f47e59a3338b04639d54d0d3a087b2f6b413
Deleted: sha256:93381ffb45a3b40814c712c9b4b7c38e8e02c6fce18c2a59d15154d85678d443
Deleted: sha256:beb992cab09dc129cbac8748b10da2f0f51158068fb73cae63ee8a2292bfb721
Deleted: sha256:a48e30259ee7f44e0021f04192ba9f922ede46daa1f17382ee88c4a5ba2fc2eb
Deleted: sha256:0c7bf91e14e330daced4555be68740067c27932e7dc8894b27ecd64e9548cb10
Deleted: sha256:0252a76fdc59bff1d5bfb3ef09c0d4e573dc03b2f5e8ab814afce623167563b0
Deleted: sha256:4cb7ce672816bb1d2b6f8d41ad13e839999ce344cd1257b604bed43997ee925e
Deleted: sha256:ad3cc5aee856644a089dd9cdee4c4d00b93676e4816e2949c93b70ff86ef5a31
Deleted: sha256:f2b130df3e02713e386927eff7add6e91e6233752ca7baccc1a90d4c9923f8e7
Deleted: sha256:c2403cb4874c9a67f4a25df88e45e70568c3263cd0532824f01c425703850040
Deleted: sha256:666f472eb7d42e0b386d4e69c3e5f6551b79e76d1fcabc2d374cb3d020ca0a36
Deleted: sha256:9948ade4b6c402313dc5fd2587b7940bedb18988a82eeb593d0f7bbdb958686d
latest: Pulling from target/strelka-ui
2f44b7a888fa: Already exists
3f00b3697662: Already exists
94bcf91a251a: Pull complete
42b540fb3991: Pull complete
25ace6095a27: Pull complete
e6d707d925d2: Pull complete
71496bd6af37: Pull complete
5ef9f8d1c965: Pull complete
43ce032c4d77: Pull complete
d69659d374a9: Pull complete
5fe3e10597d5: Pull complete
4f4fb700ef54: Pull complete
d7c8a3cfe4a7: Pull complete
c6afbff4cfef: Pull complete
c624b1e63466: Pull complete
6f3bde78200c: Pull complete
Digest: sha256:9a20edf0068d93bc581bcaf4f8ebda9e595fa6134f2dab4425a6120265645c55
Status: Downloaded newer image for target/strelka-ui:latest
docker.io/target/strelka-ui:latest
$ docker-compose -f build/docker-compose.yaml build && \
docker-compose -f build/docker-compose.yaml up -d
[+] Building 0.0s (0/0)                                                                                                                                                                                     docker-container:flamboyant_leakey
[+] Running 10/10
 ✔ Network strelka_net                                                                                                                               Created                                                                              0.0s
 ✔ Container strelka-gatekeeper-1                                                                                                                    Started                                                                              0.0s
 ✔ Container strelka-jaeger-1                                                                                                                        Started                                                                              0.0s
 ✔ Container strelka-coordinator-1                                                                                                                   Started                                                                              0.0s
 ✔ Container strelka-postgresdb-1                                                                                                                    Started                                                                              0.1s
 ✔ Container strelka-backend-1                                                                                                                       Started                                                                              0.0s
 ✔ Container strelka-manager-1                                                                                                                       Started                                                                              0.0s
 ✔ Container strelka-frontend-1                                                                                                                      Started                                                                              0.0s
 ✔ Container strelka-ui-1                                                                                                                            Started                                                                              0.0s
 ! ui The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested                                                                                      0.0s
$ docker-compose -f build/docker-compose.yaml up -d
[+] Building 0.0s (0/0)                                                                                                                                                                                     docker-container:flamboyant_leakey
[+] Running 8/0
 ✔ Container strelka-coordinator-1  Running                                                                                                                                                                                               0.0s
 ✔ Container strelka-postgresdb-1   Running                                                                                                                                                                                               0.0s
 ✔ Container strelka-gatekeeper-1   Running                                                                                                                                                                                               0.0s
 ✔ Container strelka-jaeger-1       Running                                                                                                                                                                                               0.0s
 ✔ Container strelka-manager-1      Running                                                                                                                                                                                               0.0s
 ✔ Container strelka-backend-1      Running                                                                                                                                                                                               0.0s
 ✔ Container strelka-ui-1           Running                                                                                                                                                                                               0.0s
 ✔ Container strelka-frontend-1     Running

I can now login, thank you for your help!

@phutelmyer
Copy link
Contributor

Glad to hear @thehappydinoa - thanks for reporting. Let me know if you find yourself having issues in any other way, chances are - I made a mistake :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants