Michael
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    --- title: Sicherer Betrieb von Diensten in eScience lang: de tags: eScience, Sicherheit, Dienste --- Sicherer Betrieb von Diensten in eScience === | | | | ---------- | ---------- | | Gültig ab: | | | Version: | 0.1.0 | | Datum: | 20.07.2021 | <!-- !!! error "TLP:RED" Not for disclosure, restricted to participants only. Distribution outside this audience requires written permission from the originator. --> !!! attention "TLP:AMBER" Limited disclosure, restricted to participants' organizations. Distribution outside this audience requires written permission from the originator. <!-- !!! important "TLP:GREEN" Limited disclosure, restricted to the community/sector. Distribution outside this audience requires written permission from the originator. --> <!-- !!! note "TLP:WHITE" Disclosure not limited. --> Version | Datum | Autor*innen | Änderungen ------- | ---------- | --------------- | ---------- 0.1.0 | 19.07.2021 | MJ | Dokumentenstub erstellt. Erste Dienste testweise beschrieben. ## Inhalt [TOC] ## Einleitung TODO ## Sicherheitszonen ![Security Zonen](https://i.imgur.com/VeyekpW.png) ## Zone 1: Authentifizierung und Autorisierung TOD: Wie wollen wir das machen? Ist noch die größte Unbekannte. ## Zone 2: Persistenter und Sicherer Speicher TODO: Wenn wir wissen welche Speicher wir brauchen, hier kurz eingehen. ## Zone 3: Dienste Die Zone muss so konfiguriert sein, dass Dienste auch im Desasterfall, schnell, einfach und sicher wiederhergestellt werden können. Einige Dienste werden zum Kickstart bzw. Bootstrap benötigt. Das Dokument ist in mehrere Phasen gegliedert, die eine komplette Wiederherstellung der Zone 3 beschreiben. ### Phase I: Wiederherstellung Rezepte und Konfigurationen #### GIT Dieser Dienst ist essenziell und wird für Ansible-Rezepte und Konfigurationen benötigt. Um ein Mehraugenprinzip du gewährleisten, sollte die Möglichkeit bestehen, Repositorien zu "forken" und Pull-Requests zu stellen. Dieser Dienst muss eventuell als erstes wiederhergestellt werden und sollte weitgehend ohne große Anpassungen und Konfigurationen auskommen müssen. Empfohlen wird Gitea, Gogs, etc. Diese Git-Dienste bieten Forks und Pull-Requests und können einfach aufgesetzt werden. Eine Installation ist nicht notwendig, das das Binary direkt heruntergeladen werden kann. Somit kann der Dienst im Desasterfall sofort und überall aufgesetzt werden. Gitea und Gogs können Mirroring in andere Git-Repositorien https://docs.gitea.io/en-us/comparison/ (12.10.2021). Bei Gitlab ist neben Mirroring in Enterprise-Edition ebenfalls Geo-Replikation möglich https://about.gitlab.com/solutions/geo/ (12.10.2021). ##### Abhängigkeiten und Netzwerk Die Git-Datenbank muss aus der Zone 2 wiederhergestellt werden können. Hierzu sollte ein Git-Backupserver betrieben werden. TODO: Wie bekommt man das sicher hin, dass man zb, wenn der Primäre GIT geknackt wurde, nicht gleich der andere mit entsorgt wird? Der Git-Dienst muss von allen Diensten in Zone 3 erreichbar sein, jedoch nicht in die Zone 4 exponiert werden. Er benötigt Zugriff auf eine Sicherheitskopie des Git-Repos in Zone 2. ##### Wiederherstellungsprozedur Der Dienst kann auf einen Knoten, der lokal mit einer SSD, einem USB-Stick oder als VM gestartet wurde und ein minimales Linux-System beinhaltet, gestartet werden. Hierzu muss lediglich ein Binary herunter geladen werden und der Dienst gestartet werden. Die Git-Datenbank, sollte von einem weiteren Git-Dienst wiederhergestellt werden. Um die Konfiguration der nachgelagerten Dienste zu vereinfachen, sollte der alte Hostname auf den neuen Knoten zeigen. ### Phase II: Wiederherstellung des Direktor- oder Orchestreirungsdienstes #### Ansible Ansible wird benötigt um die meisten Dienste initial zu installieren und zu konfigurieren. Spätere Konfigurationen müssen mit Ansible erfolgen, damit alle Anpassungen für den Fall einer Wiederherstellung vorhanden sind. Die Konfigurationen werden in Git gespeichert, damit Änderungen nachverfolgbar sind. Es sollten jeweils nur einzelne Dateien oder Rollen in einem Commit verwendet werden. So wird sichergestellt, dass falls Commits zurückgenommen werden müssen nur eine Rolle betroffen ist. Außerdem sollte zur Sicherheit kein direkter Push in das Git-Repository möglich sein. Wenn immer Möglich sollte mit Forks und Pull-Requests gearbeitet werden, um ein Mehraugenprinzip zu gewährleisten. Hier ist weniger der Code-Review im Vordergrund, sondern dass hierbei schädlicher Code oder Manipulation von außen erschwert wird. ##### Abhängigkeiten Ansible hängt vom Git-Dienst ab. Es benötigt Zugriff alle Server in Zone 3, da es die Dienste ausrollt und konfiguriert. Auf den Ansible-Dienst sollte kein anderer Dienst Zugriff haben. ##### Wiederherstellungsprozedur Der Dienst kann auf einen Knoten, der lokal mit einer SSD, einem USB-Stick oder als VM gestartet wurde und ein minimales Linux-System beinhaltet, installiert werden. Die Konfiguration des Dienstes und die Rezepte werden von einem Git-Dienst gezogen. ### Phase III: Wiederherstellung der Image-Dienste #### DNBD3 Der DNBD3-Dienst stellt das Bootsystem für Zone 4 und für einige der Dienste in Zone 3 dar. Dabei sollten die Netze der Zonen 3 und 4 getrennt werden, so dass es nicht möglich ist, Betreibssystem-Images der Server auf den Clients in Zone 4 zu starten. TODO: Sollten wir sicherstellen, da wir da andere Passwörter etc. benötigen. Der Primär- und alle Sekundärdienste müssen lokal starten, und dürfen nicht von einem anderen DNBD3-dienst abhängen. Der Primärserver ist üblicherweise der Bootserver, bis die Knoten gebootet sind. Sekundärdienste dienen der Ausfallsicherheit und der Verringerung der Latenz. ##### Abhängigkeiten DNBD3 hängt vom Ansible-Dienst ab. Es benötigt keinen Zugriff auf andere Dienste. Knoten in Zone 3 und 4 müssen Zugriff auf den DNBD3-Dienst erhalten. ##### Wiederherstellungsprozedur Der Dienst kann auf einen Knoten, der lokal mit einer SSD, einem USB-Stick oder als VM gestartet wurde und ein minimales Linux-System beinhaltet, installiert und konfiguriert werden. Die Installation und Konfiguration erfolgt über Ansible. #### HTTP und TFTP TODO: Für Diskless-Boot, sollte selbst nicht diskless betrieben werden ;) Derzeit ist das der BAS. Das sollte man evtl ,am mit einer Ansible-Rolle aufsetzen + die Configs in ipxelinux nach -> GIT (zb als Ansible-Rolle). #### Kubernetes-Gedöns benötigt? ### Phase IIII: Wiederherstellung der restlichen Dienste in Zone 3 #### SLURM TODO: DNBD3 + Docker, oder DNBD3 + Kubernetes, oder schmales System auf SSD + Container? Würde ich mal Kubernetes testen, da das dann vom System drunter unabhängig ist. Falls wir Kubernetes machen wollen. Wenn Kubernetes nicht geeignet ist, evtl. Docker und als letztes bare-metal mit Ansible. ### Zusammenfassung Zugriff | Dienst | Z1 | Z2 | Z3 | Z4 ------- | ------ | -- | -- | -- | -- Dienst | | | DNBD3, Git Z1 | Z2 | DNBD3 Z3 | DNBD3, Git Z4 | DNBD3 ## Zone 4: Nutzerzone ###### tags: `eScience` `Sicherheit` `Dienste`

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully