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

Documentation about question OOIs #1471

Closed
Tracked by #1457
Donnype opened this issue Jul 26, 2023 · 0 comments
Closed
Tracked by #1457

Documentation about question OOIs #1471

Donnype opened this issue Jul 26, 2023 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation octopoes Issues related to octopoes rocky Issues related to Rocky

Comments

@Donnype
Copy link
Contributor

Donnype commented Jul 26, 2023

Issue links with info and schematics:

PRs

Diagrams and technical explanation

Config flow and cardinality:

classDiagram

direction RL
    class Question
    class Config
    class JsonAnswer
    class JsonAnswer2["JsonAnswer"]

    Question : ooi[OOI]
    Question : schema[str]

    Config : ooi[OOI]
    Config : config[str]
    Config : bit_id[str]

    OOI <|-- Question
    Question <|-- JsonAnswer
    Question <|-- JsonAnswer2
    JsonAnswer <|-- Config
    JsonAnswer2 <|-- Config
Loading

Resulting ERD:

classDiagram

direction RL
    class Question
    class Config
    class OOI

    Question : ooi[OOI]
    Question : schema[str]

    Config : ooi[OOI]
    Config : config[str]
    Config : bit_id[str]

    OOI <|-- Question
    OOI <|-- Config
Loading

The Flow of creating Configs through Questions

sequenceDiagram
    participant User
    participant Rocky
    participant Normalizer
    participant Octopoes
    participant Bits
    participant Bytes

    Normalizer->>Octopoes: Add Network
    Bits->>Octopoes: Add Question["What ports may be open for this Network?"]
    Rocky->>Octopoes: Get Question
    Rocky->>User: Prompt Question to user
    User->>Rocky: Give answer (form)
    Rocky->>Bytes: Add answer (json) to Bytes
    Bytes->>Normalizer: Read answer
    Normalizer->>Octopoes: Create Config
    Bits->>Octopoes: Read Config
Loading

To create a question OOI in Rocky:

  • Rebuild Rocky and the boefjes/normalizers (Or: make kat)
  • Add a Network object
  • Increase its clearance level to at least L2
  • Wait a few seconds and refresh the objects page (perhaps filter on Question objects)
  • Open the Question detail page and see the json form rendered.
@Donnype Donnype added this to KAT Jul 26, 2023
@Donnype Donnype converted this from a draft issue Jul 26, 2023
@Donnype Donnype self-assigned this Jul 26, 2023
@Donnype Donnype added documentation Improvements or additions to documentation rocky Issues related to Rocky octopoes Issues related to octopoes labels Jul 26, 2023
@Donnype Donnype assigned ring-ring-ring and unassigned Donnype Jul 27, 2023
@Donnype Donnype moved this from In Progress to Todo (In this sprint) in KAT Jul 27, 2023
@TwistMeister TwistMeister moved this from Todo (In this sprint) to In Progress in KAT Aug 7, 2023
@TwistMeister TwistMeister moved this from In Progress to Review in KAT Aug 8, 2023
@TwistMeister TwistMeister moved this from Review to In Progress in KAT Aug 8, 2023
@ring-ring-ring ring-ring-ring moved this from In Progress to Review in KAT Aug 13, 2023
@github-project-automation github-project-automation bot moved this from Review to Done in KAT Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation octopoes Issues related to octopoes rocky Issues related to Rocky
Projects
Archived in project
Development

No branches or pull requests

2 participants