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", "@type": "KeyValueChannelStorage",
"locker": { "@id": "urn:solid-server:default:ResourceLocker" }, "locker": { "@id": "urn:solid-server:default:ResourceLocker" },
"storage": { "storage": {
"@type": "Base64EncodingStorage",
"source": {
"@type": "ContainerPathStorage", "@type": "ContainerPathStorage",
"relativePath": "/notifications/", "relativePath": "/notifications/",
"source": { "@id": "urn:solid-server:default:KeyValueStorage" } "source": { "@id": "urn:solid-server:default:KeyValueStorage" }
} }
} }
}
] ]
} }

View File

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

View File

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

View File

@ -29,8 +29,6 @@
"storage": { "storage": {
"@id": "urn:solid-server:default:ForgotPasswordStorage", "@id": "urn:solid-server:default:ForgotPasswordStorage",
"@type": "WrappedExpiringStorage", "@type": "WrappedExpiringStorage",
"source": {
"@type": "Base64EncodingStorage",
"source": { "source": {
"@type": "ContainerPathStorage", "@type": "ContainerPathStorage",
"relativePath": "/accounts/forgot-password/", "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.", "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", "@id": "urn:solid-server:default:ExpiringTokenStorage",
"@type": "WrappedExpiringStorage", "@type": "WrappedExpiringStorage",
"source": {
"@type": "Base64EncodingStorage",
"source": { "source": {
"@type": "ContainerPathStorage", "@type": "ContainerPathStorage",
"relativePath": "/idp/tokens/", "relativePath": "/idp/tokens/",
"source": { "@id": "urn:solid-server:default:KeyValueStorage" } "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", "@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^6.0.0/components/context.jsonld",
"@graph": [ "@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", "@id": "urn:solid-server:default:LockStorage",
"@type": "HashEncodingStorage", "@type": "HashEncodingStorage",
"source": { "source": {
@ -14,12 +14,9 @@
{ {
"comment": "Storage used by setup components.", "comment": "Storage used by setup components.",
"@id": "urn:solid-server:default:SetupStorage", "@id": "urn:solid-server:default:SetupStorage",
"@type": "Base64EncodingStorage",
"source": {
"@type": "ContainerPathStorage", "@type": "ContainerPathStorage",
"relativePath": "/setup/", "relativePath": "/setup/",
"source": { "@id": "urn:solid-server:default:KeyValueStorage" } "source": { "@id": "urn:solid-server:default:KeyValueStorage" }
} }
}
] ]
} }