Project

General

Profile

User story #11161

Share file from shared folder using relay rest api

Added by Vincent MEMBRÉ 5 months ago. Updated 3 months ago.

Status:
Released
Priority:
N/A
Category:
Relay server or API
Target version:
Target version (plugin):
Suggestion strength:
User visibility:
Effort required:

Description

We should provide a way to download files from shared folder through the relay api.

This would allow to share file to dsc nodes, and allow a new way to share data.

One url:

/rudder/relay-api/shared-folder/path/to/file?hash=<md5hashofFile>

Two endpoints:

HEAD: to check if the file exists and if hash is ok /has changed

GET: download the file

Associated revisions

Revision a0cdac0b
Added by Vincent MEMBRÉ 4 months ago

Fixes #11161: Share file from shared folder using relay rest api

History

#1 Updated by Vincent MEMBRÉ 5 months ago

  • Status changed from New to In progress

#2 Updated by Vincent MEMBRÉ 5 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Vincent MEMBRÉ to Benoît PECCATTE
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/1370

#3 Updated by Janos Mattyasovszky 5 months ago

Why md5? the whole world is deprecating md5 for usecases like identifying file content...

#4 Updated by Vincent MEMBRÉ 5 months ago

You are right, I kept md5 to do like cfengine, But we can switch to another algorithm since it's now ok

#5 Updated by Vincent MEMBRÉ 5 months ago

  • Target version changed from 4.2.0~beta3 to 4.2.0~rc1

#6 Updated by Vincent MEMBRÉ 4 months ago

  • Status changed from Pending technical review to Pending release

#7 Updated by Vincent MEMBRÉ 3 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.2.0~rc1 which was released today.

Also available in: Atom PDF