Git Product home page Git Product logo

Comments (8)

coke avatar coke commented on August 23, 2024 1

I thought the update was unprotected and that anyone could initiate a site update; if it requires a secret token I have no concern.

from docs.raku.org.

Altai-man avatar Altai-man commented on August 23, 2024

Can you please elaborate, do you mean loading a new version of the doc repo while the site is still running, replacing or in the future completing the existing content, or?

from docs.raku.org.

coke avatar coke commented on August 23, 2024

I mean a new version of the doc repo on an already running instance of the website.

Once we're deployed and running on docs.raku.org, this will be a common use case.

from docs.raku.org.

Altai-man avatar Altai-man commented on August 23, 2024

That's something to implement, yes.

from docs.raku.org.

Altai-man avatar Altai-man commented on August 23, 2024

Wrote a prototype locally, need time to cleanup the code.

Right now the basic API is "get the git describe" of the doc repo used and an "update" command sent with a secret token, doing the "update the repo, registry and remove cache of the changed pages". So to update the version to latest what's needed is a ping to docs.raku.org/update?token=... and it does the thing.

Can be also configured to do an update every hour/day or something.

@coke does the process looks sensible to you in a long run?

from docs.raku.org.

coke avatar coke commented on August 23, 2024

I don't like making this a public interface as it could be invoked by anyone and lead to a DDOS.

from docs.raku.org.

Altai-man avatar Altai-man commented on August 23, 2024

The update action is protected with a secret token (no token = forbidden), so it can lead to a DDOS as DDOS-ing every other page would, no?

from docs.raku.org.

Altai-man avatar Altai-man commented on August 23, 2024

Resolved, the docs are updated too.

from docs.raku.org.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.