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

image issue - unauthorized #38

Closed
3gbCyber opened this issue May 22, 2024 · 3 comments
Closed

image issue - unauthorized #38

3gbCyber opened this issue May 22, 2024 · 3 comments
Assignees

Comments

@3gbCyber
Copy link

Hello,

After I followed to document and added to docker-compose.yml it shows me this error with the image

image

✘ connector-wazuh Error Head "https://ghcr.io/v2/misje/opencti-connector-wazuh/manifests/0.1.0": unauthorized 1.0s
Error response from daemon: Head "https://ghcr.io/v2/misje/opencti-connector-wazuh/manifests/0.1.0": unauthorized

How can I fix the issue?

here's my config


  connector-wazuh:
    image: ghcr.io/misje/opencti-connector-wazuh:0.1.0
    restart: always
    environment:
      # A timezone is needed for datetime tools to work as expected:
      - TZ=UTC
      - USE_TZ=true
      - OPENCTI_URL=http://opencti:8080
      - OPENCTI_TOKEN=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx # Replace with a token from the user you created
      - CONNECTOR_ID=${CONNECTOR_IMPORT_DOCUMENT_ID} # Replace this with a unique ID
      - CONNECTOR_NAME=Wazuh
      - CONNECTOR_SCOPE=Artifact,Directory,Domain-Name,Email-Addr,Hostname,IPv4-Addr,IPv6-Addr,Mac-Addr,Network-Traffic,Process,Software,StixFile,Url,User-Account,User-Agent,Windows-Registry-Key,Windows-Re>
      - CONNECTOR_AUTO=true
      - CONNECTOR_LOG_LEVEL=warning
      - CONNECTOR_EXPOSE_METRICS=true
      - WAZUH_APP_URL=https://wazuh
      - WAZUH_OPENSEARCH_PASSWORD=xxxxxxxxxx # Remember double-$ if password contains $:
      - WAZUH_OPENSEARCH_URL=https://wazuh:9200
      - WAZUH_OPENSEARCH_USERNAME=cti_connector
      - WAZUH_OPENSEARCH_VERIFY_TLS=true
      - WAZUH_TLPS=TLP:AMBER+STRICT
    volumes:
      - /var/cache/wazuh
    links:
      - opencti:opencti
    depends_on:
      - opencti

@misje
Copy link
Owner

misje commented May 23, 2024

Hei,

That is interesting. I cannot reproduce this. I assume that docker manifest inspect ghcr.io/misje/opencti-wazuh-connector:0.1.0 fails similarly? What version of docker are you running (docker version)?

@misje misje self-assigned this May 23, 2024
@3gbCyber
Copy link
Author

Hey,

It works perfect with this image:
ghcr.io/misje/opencti-wazuh-connector:0.1.0

I wrote before like the one here which is doesn't work:

https://misje.github.io/opencti-wazuh-connector/installation.html

if you note in the link the image is:

ghcr.io/misje/opencti-[connector-wazuh]:0.1.0

The one you wrote here in the command is:

ghcr.io/misje/opencti-[wazuh-connector]:0.1.0

so the document needs to be updated.

Thank you Misje

@misje
Copy link
Owner

misje commented May 24, 2024

Ah, now I see it. Good catch. Thank you for pointing it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants