Coder Social home page Coder Social logo

Comments (8)

vladimir-v-diaz avatar vladimir-v-diaz commented on June 3, 2024 1

@ecordell

This TAP can be made backwards compatible with the previous implementation of TUF by treating metadata with a name field the same as a metadata with a names field containing one entry.

I'd like to verify the wording here. The quoted text in bold is unclear to me. Do you mean to say that current implementations (compliant with the pre-TAP3 specification) can be made backwards compatible by doing this and that? Or are you proposing that backwards-compatibility be built into the TAP? In other words, that a TAP3-compliant implementation be forced to recognize previous formats. If this is indeed what you intend, then TAP3 must be updated to list the supported formats of a delegation (i.e., "names" and "names" are valid attributes).

I am implementing TAP3 and would like to verify the wording before taking a deep dive.

from taps.

ecordell avatar ecordell commented on June 3, 2024 1

@vladimir-v-diaz The way the TAP is currently written changes the specification to use the names key instead of the name key. So the proposal of supporting both is technically invalid against the current spec.

I mostly wrote it that way to signal that some small changes to the rest of the TAP are necessary to make the backwards compatibility section correct. I.e. if this were a PR instead of a discussion, I would've changed the part of TAP3 that defines the file format to allow name and names to be optional, and the wording in the backwards compatibility section would've been "This TAP is backwards compatible..."

Would it be helpful to issue PRs for these three sections to have TAP-specific discussions? I opened this because I think this requires careful consideration to ensure no security implications.

from taps.

awwad avatar awwad commented on June 3, 2024 1

I think the modified text you (@ecordell) provide is much better, but I say that with the same understanding Vlad indicated: that a particular implementation can provide backward compatibility by doing what you've indicated. I'm still not clear on whether or not you're suggesting that TAP 3 should require that TUF support both the old and new formats (which differ not only in the contents of name/names, but must also in the presence of keyids and thresholds outside of name/names).

If the suggestion is that implementations can support pre- and post-TAP3 TUF formats by doing what you've mentioned, then I think that makes sense.

If, instead, the suggestion is that TAP 3 should propose that both schemes be acceptable, so that the TUF reference implementation supports both, then I'm less sure about that: it seems confusing.

from taps.

vladimir-v-diaz avatar vladimir-v-diaz commented on June 3, 2024 1

Would it be helpful to issue PRs for these three sections to have TAP-specific discussions? I opened this because I think this requires careful consideration to ensure no security implications.

We'd welcome pull requests. It can certainly help us reason about the proposed changes.

from taps.

trishankkarthik avatar trishankkarthik commented on June 3, 2024

Love it --- thanks for raising this issue! Let me read it carefully, and get back to you :)

from taps.

trishankkarthik avatar trishankkarthik commented on June 3, 2024

Looks good to me! What do you think @JustinCappos ?

from taps.

JustinCappos avatar JustinCappos commented on June 3, 2024

from taps.

vladimir-v-diaz avatar vladimir-v-diaz commented on June 3, 2024

Note that the TAP 3 proposal (as it is currently exists on the repository) does more than just change "name" to "names". It also moves around the keyids, threshold, etc. attributes. Please compare the formats below:

current format:

"roles": [
    {
     "keyids": [
      "a0650f29dde63403cc4eec28a1c66f2262d6339434a01c63a881a48bedd9bca9"
     ],
     "name": "role1",
     "paths": [
      "/file3.txt"
     ],
     "terminating": false,
     "threshold": 1
    }
]

proposed format:

{
roles: [{          
          // Both roles must sign the same hashes and length of the following targets.
          "paths": ["baz/*.pkg"],
          "names": {
            ROLENAME-1: {
              "keyids": [KEYID-1],
              "threshold": THRESHOLD-1
            },
            ROLENAME-2: {
              "keyids": [KEYID-2],
              "threshold": THRESHOLD-2
            }
          },
          ...
        ]

from taps.

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.