Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNSLink and IPFS Pinning #2338

Closed
jakehemmerle opened this issue Jul 14, 2021 · 10 comments
Closed

DNSLink and IPFS Pinning #2338

jakehemmerle opened this issue Jul 14, 2021 · 10 comments
Assignees
Labels
admin Admin/maintenance tasks bug Something is incorrect or wrong and should be fixed. P3 - Nice to Have Update that is nice to have.

Comments

@jakehemmerle
Copy link
Contributor

jakehemmerle commented Jul 14, 2021

Accessing the wikis via IPFS is really close to being possible.

Next steps

CICD Script

This will allow the wikis to be loaded with IPFS-compatable browsers at https://polkadot-wiki.w3f.services, https://kusama-guide.w3f.services. It is almost complete, just needs bugfixing at the DNS TXT updating that happens here.

Things to note while finishing this:

  • The CICD script only gets run on the Kusama Guide pipeline when new code is pushed to the prod branch (eg. here). There is no reason this can't change this to a test server.
  • Ignore any errors like this. The functions retry the pinning, but are noisy. You might be able to silence these errors by adjusting the configuration values here
  • The errors regarding the DNS TXT update function are being logged in the CICD pipeline here.
  • The credentials for this script get passed in here. They come from environmental variables in the repo (repo secrets). All of these secrets exist in 1Password (ask Alessio if you can't find them)

DNSLink chaining issue

This will allow the wikis to be loaded via IPFS-compatable browsers transparently through the main websites (eg. https://wiki.polkadot.network, https://guide.kusama.network)

These two things complete putting the wikis on IPFS with easy access.

Other Optimizations

There are a few optimizations we can do after this:

Setup ipfs-cluster-follow support

This would make it really easy for anyone to join the cluster as a follower, replicating anything we pin to the wiki to their computer. This makes for higher data availability and quicker data accessibility. I think it could be really cool to turn this into a Polkadot/Kusama IPFS Cluster, pinning important things for the network, W3F, and Parity.

@salmad3
Copy link
Contributor

salmad3 commented Jul 14, 2021

#1695 (comment)

@salmad3
Copy link
Contributor

salmad3 commented Jul 15, 2021

Also this sir: #1919

@salmad3 salmad3 added the admin Admin/maintenance tasks label Jul 16, 2021
@jakehemmerle jakehemmerle self-assigned this Jul 19, 2021
@jakehemmerle jakehemmerle mentioned this issue Jul 22, 2021
13 tasks
@salmad3
Copy link
Contributor

salmad3 commented Aug 13, 2021

If I may, I added #1695 here since the approach seems like it would depend on having IPFS up.

@salmad3 salmad3 added the bug Something is incorrect or wrong and should be fixed. label Sep 13, 2021
@salmad3 salmad3 added the P3 - Nice to Have Update that is nice to have. label Oct 25, 2021
@emresurmeli
Copy link
Contributor

emresurmeli commented Dec 23, 2021

Jake offboarding notes and to do:

  • Regenerate new cloudflare apikeys
  • Currently the function in the script(try/catch on line 109) to update the DNS TXT file via cloudflare isn't working, fix that.
  • The CI/CD for IPFS is currently on Kusama prod yml, move it over to Polkadot prod yml as well
  • Resolve the DNSLink chaining issue.

@emresurmeli
Copy link
Contributor

@ironoa Will Jakes cloudflare keys be an issue? Should we move the cloudflare account to a shared email and regenerate the apiKeys?

@salmad3 salmad3 assigned emresurmeli and salmad3 and unassigned jakehemmerle Dec 30, 2021
@salmad3 salmad3 pinned this issue Jan 7, 2022
@salmad3 salmad3 unpinned this issue Jan 14, 2022
@salmad3
Copy link
Contributor

salmad3 commented Feb 11, 2022

Update for DNS chaining issue: ipfs/ipfs-companion#1039 (comment)

@salmad3 salmad3 mentioned this issue Mar 23, 2022
16 tasks
@salmad3 salmad3 removed their assignment May 3, 2022
@salmad3
Copy link
Contributor

salmad3 commented May 4, 2022

@emresurmeli need to rotate IPFS credentials in 1Password again

@alfarok
Copy link
Contributor

alfarok commented Aug 16, 2022

I am moving the completion of this work to an updated issue, #3651. I added a reference to this issue in the description to track all the previous knowledge.

@alfarok alfarok closed this as completed Aug 16, 2022
@alfarok
Copy link
Contributor

alfarok commented Aug 30, 2022

@ironoa Will Jakes cloudflare keys be an issue? Should we move the cloudflare account to a shared email and regenerate the apiKeys?

Hey @emresurmeli, do you happen to know which email address was used here? I was able to track down the cluster credentials in 1Password but the username listed isn't an email address and CloudFlare requires the email as the login. Maybe the credentials in 1Password aren't for CloudFlare? No worries if you're not sure just trying to track down what is existing vs what may need to be re-created.

@alfarok
Copy link
Contributor

alfarok commented Aug 30, 2022

Based on this configuration it seems like the API key is stored in 1Password but not the login details for the account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin Admin/maintenance tasks bug Something is incorrect or wrong and should be fixed. P3 - Nice to Have Update that is nice to have.
Projects
None yet
Development

No branches or pull requests

4 participants