I need write access to the files CDN
Closed, ResolvedPublic

Description

Hello,

To be able to include small snippets of video, audio or images over 1 MB in size in dot.kde.org stories, I need to ba able to embed them from a reliable source and https://cdn.files.kde.org seems the place for that. However, I currently only have read access, so I would need write access (plus instructions on how to upload files).

Cheers

Paul

paulb created this task.May 27 2018, 4:01 PM
bcooksley removed sysadmin as the assignee of this task.May 29 2018, 11:13 AM
bcooksley added a subscriber: sysadmin.
bcooksley added a subscriber: bcooksley.

The site cdn.files.kde.org is actually a backstop host for when files.kde.org doesn't have any mirrors available for a file, so isn't usable for this purpose (as the mirror files.kde.org sends you to might not always be secure, which browsers will flag if you try to embed audio/video/images in a page)

The most appropriate alternative would probably be cdn.kde.org (which is similar, except it never relies on a mirror).

In regards to the file sizes, how big are we talking here? Larger than 8MB / 16MB?

The site cdn.files.kde.org is actually a backstop host for when files.kde.org doesn't have any mirrors available for a file, so isn't usable for this purpose (as the mirror files.kde.org sends you to might not always be secure, which browsers will flag if you try to embed audio/video/images in a page)

The most appropriate alternative would probably be cdn.kde.org (which is similar, except it never relies on a mirror).

Whatever you consider best.

In regards to the file sizes, how big are we talking here? Larger than 8MB / 16MB?

I just downloaded the latest official Plasma release video. It is only 1 minute long and it is about 20MB, so I'd say, yes, larger than 16MB for sure.

I've now completed the necessary setup for this.

You'll access this through SFTP, using the promocdn@racnoss.kde.org and files should be uploaded to /srv/www/cdn.kde.org/promo/
Once uploaded you can start linking to the files immediately at https://cdn.kde.org/promo/ however if you change them after accessing them for the first time it may take time for the change to be propagated fully (as the CDN edge nodes cache files)

Could you please provide the public component of your SSH key so I can authorise it for access to the server? (access to KDE servers is by SSH key only for security reasons)

paulb added a comment.May 30 2018, 9:53 AM

Here you go.

Thanks Ben.

bcooksley closed this task as Resolved.May 30 2018, 10:26 AM
bcooksley claimed this task.

I've now granted that key access.

Great! It works very well: Uploaded my first video without any trouble.

Thanks a lot Ben.

You want to close this?

It's already closed :)

One thing to note: as the files uploaded here will have a very long shelf life (eternity ideally) you may want to put some kind of unique identifier in the name to avoid overwriting a file accidentally in the future by reusing the name (like the date in reverse notation - 20180530 for today - for instance)

Good point. I will do that. Thanks for the advice.