Hackerfleet / hfos-legacy

Hackerfleet Operating System
GNU Affero General Public License v3.0
29 stars 4 forks source link

Cross module schema extension #172

Closed ri0t closed 6 years ago

ri0t commented 8 years ago

Some modules need to integrate additional fields into other module's schemata. Currently, these are hardcoded in the target's schemata - not good. I think we need a mechanic to introduce fields. This opens a whole plethora of security and safety related questions, so a watertight model must be devised.

Also, this goes heavily hand in hand with the migration (#171) and provisioning (#173) procedures.

ri0t commented 7 years ago

Well, due to jsonschema's additionalproperties, that is generally not a real problem, right now.

Some issues about safety and migration remain, though. Those are for later versions.

ri0t commented 6 years ago

To have it clean, extending a schema should be an explicit process.

ri0t commented 6 years ago

Whew. Done!