Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH] ipfsgateway: Remove default gateway
@ 2022-08-10 22:27 Derek Buitenhuis
  2022-08-11 12:08 ` Timo Rothenpieler
                   ` (2 more replies)
  0 siblings, 3 replies; 57+ messages in thread
From: Derek Buitenhuis @ 2022-08-10 22:27 UTC (permalink / raw)
  To: ffmpeg-devel

A gateway can see everything, and we should not be shipping a hardcoded
default from a third party company; it's a security risk.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
---
 libavformat/ipfsgateway.c | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/libavformat/ipfsgateway.c b/libavformat/ipfsgateway.c
index 5a5178c563..907b61b017 100644
--- a/libavformat/ipfsgateway.c
+++ b/libavformat/ipfsgateway.c
@@ -240,13 +240,8 @@ static int translate_ipfs_to_http(URLContext *h, const char *uri, int flags, AVD
         ret = populate_ipfs_gateway(h);
 
         if (ret < 1) {
-            // We fallback on dweb.link (managed by Protocol Labs).
-            snprintf(c->gateway_buffer, sizeof(c->gateway_buffer), "https://dweb.link");
-
-            av_log(h, AV_LOG_WARNING,
-                   "IPFS does not appear to be running. "
-                   "You’re now using the public gateway at dweb.link.\n");
-            av_log(h, AV_LOG_INFO,
+            av_log(h, AV_LOG_ERROR,
+                   "IPFS does not appear to be running.\n\n"
                    "Installing IPFS locally is recommended to "
                    "improve performance and reliability, "
                    "and not share all your activity with a single IPFS gateway.\n"
@@ -259,6 +254,8 @@ static int translate_ipfs_to_http(URLContext *h, const char *uri, int flags, AVD
                    "3. Define an $IPFS_PATH environment variable "
                    "and point it to the IPFS data path "
                    "- this is typically ~/.ipfs\n");
+            ret = AVERROR(EINVAL);
+            goto err;
         }
     }
 
-- 
2.36.1

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 57+ messages in thread
* Re: [FFmpeg-devel] [PATCH] ipfsgateway: Remove default gateway
@ 2022-08-14 13:24 thelostone123
  0 siblings, 0 replies; 57+ messages in thread
From: thelostone123 @ 2022-08-14 13:24 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: derek.buitenhuis

This is not exactly a "random company". This is the company that invented the IPFS protocol, which is an important part of what people overlook. In fact, going to dweb.link shows a page on the official IPFS website confirming its authenticity.

IPFS is a new protocol in itself. It has created a de facto standard gateway. it's like saying "if I don't choose a DNS server, all my queries for the .com domain will go to Verisign, so I have to remove Verisign", even though Verisign creates and maintains the .com domain registry and the entire DNS infrastructure. There is eventually a single source of truth.


What would be more appropriate is that the user is presented with a warning that "no gateway found, we will connect to "dweb.link" as a default. Continue?" so that the user can make the conscious choice over whether to use the gateway or not. I dont think we should remove the hardcoding, but at the same time the users must be aware of the situation.



_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 57+ messages in thread

end of thread, other threads:[~2022-08-28 14:14 UTC | newest]

Thread overview: 57+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-10 22:27 [FFmpeg-devel] [PATCH] ipfsgateway: Remove default gateway Derek Buitenhuis
2022-08-11 12:08 ` Timo Rothenpieler
2022-08-11 16:26   ` Mark Gaiser
2022-08-11 16:49     ` Timo Rothenpieler
2022-08-11 17:21       ` Mark Gaiser
2022-08-11 17:35         ` Timo Rothenpieler
2022-08-11 17:56           ` Mark Gaiser
2022-08-11 19:18             ` Derek Buitenhuis
2022-08-11 20:18             ` Michael Niedermayer
2022-08-11 22:03               ` Timo Rothenpieler
2022-08-11 22:51                 ` Derek Buitenhuis
2022-08-12 13:43                   ` Mark Gaiser
2022-08-12 14:22                   ` Vittorio Giovara
2022-08-12 14:30                     ` Kieran Kunhya
2022-08-12 14:34                       ` Mark Gaiser
2022-08-12 14:45                         ` Kieran Kunhya
2022-08-12 14:48                         ` Derek Buitenhuis
2022-08-12 14:50                           ` Kieran Kunhya
2022-08-12 14:55                   ` Nicolas George
2022-08-12 15:05                 ` Michael Niedermayer
2022-08-12 17:01                   ` Nicolas George
2022-08-12 17:18                     ` Michael Niedermayer
2022-08-12 17:21                       ` Timo Rothenpieler
2022-08-13 16:29                         ` Michael Niedermayer
2022-08-13 19:06                           ` Timo Rothenpieler
2022-08-14 18:00                             ` Michael Niedermayer
2022-08-15 14:09                           ` Nicolas George
2022-08-15 14:27                             ` Jean-Baptiste Kempf
2022-08-17 15:03           ` Tomas Härdin
2022-08-18 14:31             ` Michael Niedermayer
2022-08-19  9:15               ` Tomas Härdin
2022-08-19 12:52                 ` Mark Gaiser
2022-08-22  9:12                   ` Tomas Härdin
2022-08-22 12:52                     ` Nicolas George
2022-08-23 12:53                       ` Ronald S. Bultje
2022-08-23 12:55                         ` Nicolas George
2022-08-24 16:35                       ` Tomas Härdin
2022-08-24 20:54                         ` Michael Niedermayer
2022-08-27  7:05                           ` Tomas Härdin
2022-08-28 14:14                             ` Michael Niedermayer
2022-08-24 21:03                         ` Michael Niedermayer
2022-08-24 21:18                           ` Kieran Kunhya
2022-08-25 13:57                             ` Michael Niedermayer
2022-08-25 14:41                               ` Kieran Kunhya
2022-08-27  7:29                           ` Tomas Härdin
2022-08-27  7:53                             ` Paul B Mahol
2022-08-27 11:30                               ` Tomas Härdin
2022-08-27 17:34                                 ` Baptiste Coudurier
2022-08-28 11:49                                   ` Tomas Härdin
2022-08-15 17:53 ` Michael Niedermayer
2022-08-15 19:35 ` Derek Buitenhuis
2022-08-15 19:37   ` James Almer
2022-08-15 21:47   ` Michael Niedermayer
2022-08-15 21:57     ` Nicolas George
2022-08-15 23:53       ` Mark Gaiser
2022-08-16 14:46     ` Michael Niedermayer
2022-08-14 13:24 thelostone123

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git