Configure Secure CDN Root Directory with Robust Initialization#3
Open
riksnelders wants to merge 4 commits intosouravg77:ac1b4def-e6b6-46ff-b94c-6aa773429112from
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Configure Secure CDN Root Directory with Robust Initialization
Description
Task
Configure CDN root directory for file storage
Acceptance Criteria
Summary of Work
CDN Root Directory Configuration
Changes Made
CdnConfigclass insrc/config/cdn.tsImplementation Details
Directory Location
cdn/relative to project rootpath.resolve()to create an absolute pathDirectory Management Methods
getCdnRoot(): Retrieves absolute path to CDN directoryensureCdnDirectoryExists():isPathInCdnRoot(): Prevents directory traversal attacksSecurity Considerations
recursive: truefor safe directory creationTesting Approach
Notes
Changes Made
Tests
Signatures
Staking Key
44B5n7BdnyKUKWhEg7pftFHaLg2oWx1zJE3sXkiadkXV: 84DSRukZbTdxbdz3WQLUaxawfE8aYJzwporqKxMrphTGMYb3cZn7WaknfhFbZutc5UuZMH4xBCt2jZs4XoUigkDSarFu6KWk9EjGa1ukfijdY4cfcPtnCdyG6uajwSCQEDgJ9BcULDdPrXgjK9knDddksoBCMY2eGGZ9mZPKACHGkQiwMuA9fj6GZ7ULGWrJf6qfRAaeZqcgT3RGGHwgnSj4KqxQNg3vPoEKUvdXUGvmTE8FpPrQ5eLS51N6kTwdza1o81Dr1d2izzYUpvLNmrkgBxoQieMWvmvr7KyyvWfPvxRpD17jE5jg3PUYUjzJNa8xrC8oDbyhD965MvJQKpLG7FsokC6FUidWwdZVfuNWBBbX7qy3iTGoPbN92vNWVemxnq69WCkYdwEiBy2A5AgFEwDXdX1RGgfzt
Public Key
GGwS4JanHMAZwZGWGLtM1bH6vAzM2Ueu9fKNAeJH8CZt: 91vqKRtPSLJhdxvLJ4CSzpng9KFjq8rVsE3J1sNgQcFppqrLNVyyRhuEDEkvaUarZX1sQp5QoupPW8zuqv27JLNJRaHoSoFnoYzDtCPRN1hZHwbiAnhzoErNUw2qSpMqyJGDDoephVuKczvywksa6YMzT7iLVdzadYPHngHTqnCbP1TJBuaTcvSafMk1yPWFGSBAWVsmB2UArQvmT53Sx1h9CgvL9sRVUosb6jcNT7N9QmihBLwefRiT1E2Ff7GwgQZaAV9LW8UnruvPk3ZCDFMpdK1J9WAM55wBygxhNGYwS6Tpz2pLPof5tJfLoyDkYgjHnXdZi1e9BpLsrxYLa3zjHKXrBMH8ur93ZVe3cP2dB1SX5ympj54Sg84mXBFa2kym1wUSCQaGBcCj86bJNjRfvnnPCYuiapXbA