question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ngclient: skipping visited roles

See original GitHub issue

spec says (for each role in delegation tree):

If this role has been visited before, then skip this role

ngclient does:

if (role_name, parent_role) in visited_role_names:
    logger.debug("Skipping visited current role %s", role_name)
    continue

So it only skips if role has been visited from same parent. If there is a good reason for allowing the same role multiple times in the delegation tree (against the spec), it should be documented somehow. Alternatively we should do what the spec says and make visited_role_names just a set of role names (and not a set of tuple)…

Pinging @sechkova for comment: there’s probably a reason ngclient does this (considering legacy client does not do this), happen to remember what it is?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ivanayovcommented, Nov 17, 2021

Can I take this?

1reaction
avelichkacommented, Sep 29, 2021

Could you please assign that to me 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

python-tuf/CHANGELOG.md at develop · theupdateframework ...
This release makes ngclient and the Metadata API the supported python-tuf APIs ... ngclient: return loaded metadata (#1680); ngclient: skip visited nodes on ......
Read more >
Installing EVE-NG Client Tools on Windows 10 - YouTube
Ready to integrate some of your favorite networking apps with EVE-NG? The Client tools will help you set all of the registry items...
Read more >
DIY Print Management - PaperCut NG | PaperCut
PaperCut Mobility Print. Quickly enable visitor/guest, BYOD, and mobile printing. PaperCut Mobility Print makes this possible without the your users hassling ...
Read more >
EVE-NG
EVE-NG PRO is the first clientless multivendor network emulation software that empowers network and security professionals with huge opportunities in the ...
Read more >
Bernard Ng - Client Onboarding Associate - Global-e - LinkedIn
... working on data in the EMS field. | Learn more about Bernard Ng's work experience, education, connections & more by visiting their...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found