Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
joseivanlopez committed Aug 19, 2024
1 parent 9154144 commit 2655680
Showing 1 changed file with 99 additions and 33 deletions.
132 changes: 99 additions & 33 deletions rust/agama-lib/share/profile.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,8 @@
},
"guided": {
"title": "Settings to execute a Guided Proposal.",
"deprecated": true,
"$comment": "Guided settings will be removed from the schema.",
"type": "object",
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -359,11 +361,11 @@
"required": ["password"],
"properties": {
"password": {
"title": "Passphrase to use when creating a new encryption device.",
"type": "string"
"$ref": "#/$defs/encryptionPassword"
},
"method": {
"$ref": "#/$defs/encryptionMethod"
"title": "Method used to encrypt the devices.",
"enum": ["luks2", "tpm_fde"]
},
"pbkdFunction": {
"$ref": "#/$defs/encryptionPbkdFunction"
Expand Down Expand Up @@ -658,46 +660,110 @@
}
}
},
"encryptionMethod": {
"title": "Method used to create the encryption device.",
"enum": ["luks2", "tpm_fde"]
"encryptionPassword": {
"title": "Passphrase to use when creating a new encryption device.",
"type": "string"
},
"encryptionCipher": {
"title": "Cipher used for LUKS encryption.",
"description": "The value must be compatible with the --cipher argument of the command cryptsetup.",
"type": "string"
},
"encryptionKeySize": {
"title": "Key size, in bits, used for LUKS encryption.",
"description": "The value has to be a multiple of 8. The possible key sizes are limited by the used cipher.",
"type": "integer"
},
"encryptionPbkdFunction": {
"title": "Password-based key derivation function to use for LUKS2.",
"enum": ["pbkdf2", "argon2i", "argon2id"]
},
"encryption": {
"title": "Encryption options.",
"encryptionLUKS1": {
"title": "LUKS1 encryption.",
"type": "object",
"additionalProperties": false,
"required": ["key"],
"additionalProperties": "false",
"required": ["luks1"],
"properties": {
"key": {
"title": "Passphrase to use when creating a new encryption device.",
"type": "string"
},
"method": {
"$ref": "#/$defs/encryptionMethod"
},
"pbkdFunction": {
"$ref": "#/$defs/encryptionPbkdFunction"
},
"label": {
"title": "LUKS label for the encrypted device.",
"type": "string"
},
"cipher": {
"title": "Cipher used for LUKS encryption.",
"description": "The value must be compatible with the --cipher argument of the command cryptsetup.",
"type": "string"
},
"key_size": {
"title": "Key size, in bits, used for LUKS encryption.",
"description": "The value has to be a multiple of 8. The possible key sizes are limited by the used cipher.",
"type": "integer"
"luks1": {
"type": "object",
"additionalProperties": false,
"required": ["password"],
"properties": {
"password": {
"$ref": "#/$defs/encryptionPassword"
},
"cipher": {
"$ref": "#/$defs/encryptionCipher"
},
"keySize": {
"$ref": "#/$defs/encryptionKeySize"
}
}
}
}
},
"encryptionLUKS2": {
"title": "LUKS2 encryption.",
"type": "object",
"additionalProperties": "false",
"required": ["luks2"],
"properties": {
"luks2": {
"type": "object",
"additionalProperties": false,
"required": ["password"],
"properties": {
"password": {
"$ref": "#/$defs/encryptionPassword"
},
"cipher": {
"$ref": "#/$defs/encryptionCipher"
},
"keySize": {
"$ref": "#/$defs/encryptionKeySize"
},
"pbkdFunction": {
"$ref": "#/$defs/encryptionPbkdFunction"
},
"label": {
"title": "LUKS label for the encrypted device.",
"type": "string"
}
}
}
}
},
"encryptionPervasiveLUKS2": {
"title": "LUKS2 pervasive encryption.",
"type": "object",
"additionalProperties": "false",
"required": ["pervasiveLuks2"],
"properties": {
"pervasiveLuks2": {
"type": "object",
"additionalProperties": false,
"required": ["password"],
"properties": {
"password": {
"$ref": "#/$defs/encryptionPassword"
}
}
}
}
},
"encryptionSwap": {
"title": "Swap encryption.",
"enum": ["protected_swap", "secure_swap", "random_swap"]
},
"encryption": {
"title": "Encryption options.",
"anyOf": [
{ "$ref": "#/$defs/encryptionLUKS1" },
{ "$ref": "#/$defs/encryptionLUKS2" },
{ "$ref": "#/$defs/encryptionPervasiveLUKS2" },
{ "$ref": "#/$defs/encryptionSwap" }
]
},
"filesystemType": {
"title": "File system type.",
"enum": [
Expand Down

0 comments on commit 2655680

Please sign in to comment.