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

Add cyberchef container, nginx location, and link in layout.html #235

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

da667
Copy link
Contributor

@da667 da667 commented Nov 25, 2024

Hello again,

This is another pull request, intended to address #229

Here are the Changes I am proposing:

dalton/docker-compose.yml

  • Added an entry for "cyberchef_current"
    • image is based off of ghcr.io/gchq/cyberchef:latest
    • the official cyberchef docker image, directly from GCHQ, hosted on github container repository

dalton/nginx-conf/conf.d/dalton.conf

  • Added a location directive for both the port 80 and port 443 listener for /cyberchef/
    • includes resolve 127.0.0.11; to use docker's internal DNS to resolve the hostname cyberchef_current -- this is very important.
    • includes proxy_pass http://cyberchef_current/; to redirect users to the cyberchef instance correctly
    • in my testing, none of the proxy_set_header directives were required to interact with cyberchef.

dalton/app/templates/dalton/layout.html

  • Added a list item and link to /cyberchef that becomes a clickable link on the navigation bar
  • It was initially proposed to use icon-food for cyberchef. I agree this would look great, however, icon-food is NOT available in dalton/app/static/bootstrap/img/glyphicons-halflings.png. According font-awesome, this icon was added with version 3.0 (https://origin.fontawesome.com/v3/icon/food). I have opted to use icon-book instead (menu? recipe book?), but icon-share might be an option as well.

Results:

The end-product:

image

When the Cyberchef button is clicked:

image

The landing page for cyber chef becomes accessible.

added entry for cyberchef:latest image from github container repository (official GCHQ source)
added location directive to point to the cyberchef_current container image.
adding cyberchef button to layout.html.
-changing the font awesome icon to icon-book.
-icons are supplied by /app/static/bootstrap/img/glyphicons-halflings.png
-icon-food (which would've been neat for cyberchef isn't in this icon set) but icon-book (menu? recipes?) is included.
-font awesome would need to be updated to use icon-food (page says it was added in 3.0, and Dalton uses 2.3.5 - https://origin.fontawesome.com/v3/icon/food)
-another good icon might be icon-share?
@rkoumis
Copy link
Collaborator

rkoumis commented Nov 27, 2024

That looks good, should merge next week if I get the chance

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

Successfully merging this pull request may close these issues.

3 participants