ipfs-deploy icon indicating copy to clipboard operation
ipfs-deploy copied to clipboard

Feature: unpin old code (keep latest N revisions)

Open sixcorners opened this issue 5 years ago • 5 comments

So uh... I've never really bought into the whole "permanent" web thing. I think it would be nice if I could have this unpin old deployments.

sixcorners avatar Jan 13 '20 04:01 sixcorners

Agreed. Especially when using a pinning service like pinata.cloud, I don't want to have to be charged for having multiple copies of my website pinned.

RuiNtD avatar Jun 08 '21 04:06 RuiNtD

This is definitely an interesting feature and could be implemented by simply looking at the previous DNSLink value and unpinning it in the service. Perhaps through a flag --unpin-old.

hacdias avatar Aug 11 '21 11:08 hacdias

I'm interested in this feature as well. And am up to add it.

Some questions I have around it:

  • If the previous pin is removed and DNS is still populating will there be a chance for a service outage?
  • I imagine this needs to be rolled out to the 3 supported providers. Any way to rollout for one first? I'm working with cloudflare. I suppose can skip if the service doesn't respond to the additional methods to perform the unpin.

kespinola avatar Aug 18 '21 14:08 kespinola

I'm interested in this feature as well. And am up to add it.

Some questions I have around it:

  • If the previous pin is removed and DNS is still populating will there be a chance for a service outage?

  • I imagine this needs to be rolled out to the 3 supported providers. Any way to rollout for one first? I'm working with cloudflare. I suppose can skip if the service doesn't respond to the additional methods to perform the unpin.

  1. This wouldn't be implemented on DNS providers. This would be implemented on the pinning services (like Pinata).
  2. Whether or not this causes an outage really just depends on how long TTL is on the DNSLink record. However, users can prevent an outage from occurring by uploading to their preferred pinning service (like Pinata) and pinning with Infura (which is free to use). ipfs-deploy site -u pinata -p infura

RuiNtD avatar Aug 18 '21 17:08 RuiNtD

On a side note: I feel like it might be important to delete old pins before uploading the new pin. If done in the other order, it might be possible for users to hit a quota on some pinning services.

RuiNtD avatar Aug 18 '21 17:08 RuiNtD