Add a simple fuzzer that verifies our machinery for parsing user records from JSON works as intended. The initial corpus was created with the help of Claude, so we have a bunch of valid user records with as much fields as possible for the initial corpus.
28 lines
745 B
JSON
28 lines
745 B
JSON
{
|
|
"userName": "recoveryuser",
|
|
"realName": "Recovery Key User",
|
|
"uid": 2003,
|
|
"gid": 2003,
|
|
"homeDirectory": "/home/recoveryuser",
|
|
"shell": "/bin/bash",
|
|
"disposition": "regular",
|
|
"storage": "luks",
|
|
"imagePath": "/home/recoveryuser.home",
|
|
"recoveryKeyType": ["modhex64", "modhex64"],
|
|
"privileged": {
|
|
"hashedPassword": [
|
|
"$6$mainsalt$mainpasswordhashforrecoveryuser"
|
|
],
|
|
"recoveryKey": [
|
|
{
|
|
"type": "modhex64",
|
|
"hashedPassword": "$6$recovery1$hashedrecoverykey1"
|
|
},
|
|
{
|
|
"type": "modhex64",
|
|
"hashedPassword": "$6$recovery2$hashedrecoverykey2"
|
|
}
|
|
]
|
|
}
|
|
}
|