Git Product home page Git Product logo

Comments (6)

schmidtw avatar schmidtw commented on June 2, 2024 1

So id is a string that matches the following regex: [a-zA-Z0-9]{1,64}

(1 to 64 ASCII alphanumeric characters)

Right?

from argus.

JC000 avatar JC000 commented on June 2, 2024

There is no reason why Argus can't enforce the primary identifier to be a true UUID. Even if we choose to not use an UUID, Argus should still place constraints on what a valid value should look like (SHA256, MD5, etc).

from argus.

joe94 avatar joe94 commented on June 2, 2024

True. What does each option give us?
One route is to switch back to the ID field name and place the constraint that it must be a SHA256 checksum.

from argus.

JC000 avatar JC000 commented on June 2, 2024

Let's change the field name to id, but have strict enforcement that this field must be a 64 character long alpha-numeric string. We can then suggest using SHA256 to generate this string.

from argus.

joe94 avatar joe94 commented on June 2, 2024

That looks right to me.

from argus.

joe94 avatar joe94 commented on June 2, 2024

Additional info: The webhooks library was sending a base64 URL encoding of the digest https://github.com/xmidt-org/webpa-common/blob/main/xwebhook/service.go#L89
If we add this, it should be easy to just send the digest itself.

from argus.

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.