feat: Remove base64 encoding from storages

This commit is contained in:
Joachim Van Herwegen 2023-10-10 14:55:10 +02:00
parent 16378ec470
commit e1c5189cb8
6 changed files with 19 additions and 37 deletions

View File

@ -7,13 +7,10 @@
"@type": "KeyValueChannelStorage",
"locker": { "@id": "urn:solid-server:default:ResourceLocker" },
"storage": {
"@type": "Base64EncodingStorage",
"source": {
"@type": "ContainerPathStorage",
"relativePath": "/notifications/",
"source": { "@id": "urn:solid-server:default:KeyValueStorage" }
}
}
}
]
}

View File

@ -11,12 +11,9 @@
},
{
"@id": "urn:solid-server:default:KeyStorage",
"@type": "Base64EncodingStorage",
"source": {
"@type": "ContainerPathStorage",
"relativePath": "/idp/keys/",
"source": { "@id": "urn:solid-server:default:KeyValueStorage" }
}
}
]
}

View File

@ -38,15 +38,12 @@
"storage": {
"@id": "urn:solid-server:default:CookieStorage",
"@type": "WrappedExpiringStorage",
"source": {
"@type": "Base64EncodingStorage",
"source": {
"@type": "ContainerPathStorage",
"relativePath": "/accounts/cookies/",
"source": { "@id": "urn:solid-server:default:KeyValueStorage" }
}
}
}
},
{

View File

@ -29,8 +29,6 @@
"storage": {
"@id": "urn:solid-server:default:ForgotPasswordStorage",
"@type": "WrappedExpiringStorage",
"source": {
"@type": "Base64EncodingStorage",
"source": {
"@type": "ContainerPathStorage",
"relativePath": "/accounts/forgot-password/",
@ -38,6 +36,5 @@
}
}
}
}
]
}

View File

@ -12,14 +12,11 @@
"comment": "Stores expiring data. This class has a `finalize` function that needs to be called after stopping the server.",
"@id": "urn:solid-server:default:ExpiringTokenStorage",
"@type": "WrappedExpiringStorage",
"source": {
"@type": "Base64EncodingStorage",
"source": {
"@type": "ContainerPathStorage",
"relativePath": "/idp/tokens/",
"source": { "@id": "urn:solid-server:default:KeyValueStorage" }
}
}
}
]
}

View File

@ -2,7 +2,7 @@
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^6.0.0/components/context.jsonld",
"@graph": [
{
"comment": "Used for internal storage by the locker.",
"comment": "Used for internal storage by the locker. Always hashing the keys to prevent issues.",
"@id": "urn:solid-server:default:LockStorage",
"@type": "HashEncodingStorage",
"source": {
@ -14,12 +14,9 @@
{
"comment": "Storage used by setup components.",
"@id": "urn:solid-server:default:SetupStorage",
"@type": "Base64EncodingStorage",
"source": {
"@type": "ContainerPathStorage",
"relativePath": "/setup/",
"source": { "@id": "urn:solid-server:default:KeyValueStorage" }
}
}
]
}