Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    How to use ProGet extension to white list a specified package that is being blocked under "License Rules"?

    Scheduled Pinned Locked Moved Support
    packagessdkprogetlicensing
    2 Posts 2 Posters 16 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      ProGet "License Rules" blocks packages based on the license of a package as well as the licenses of its dependencies.

      I would like to white list specific packages whose dependencies may or may not be on the "License Rules" blocking list. So far, I have been experimenting with the ProGet SDK (e.g. PackageAccessRule, PackageFilter).

      However, I have not had any luck yet since the documentation of the SDK is not very helpful. Therefore, I would like to ask

      1. Can a ProGet custom extension overwrite the License Rules?
      2. Even if the extension can overwrite the License Rules, is it a good way of doing so? Is there a better way to achieve this?
      3. Assume building a custom extension is the only way, what should the extension be built out of (i.e. PackageAccessRule? PackageFilter? or ...)? Is there any tutorial/example?
      4. How to log any message from the extension for debug purpose? I have been trying with Inedo.Diagnostics.Logger from the "InedoLib" that comes with the ProGet SDK yet I cannot find where it is logging to.

      Any help is much appreciated. Thanks.

      Product: ProGet
      Version: 4.7.14

      1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer
        last edited by

        I'm afraid I don't really understand the requirements for what you're trying to accomplish...

        Here are the differences between the two extensibility points:

        • A Package Filter allows all locally-stored ProGet packages to be filtered from being shown in feeds by additional logic.
        • A Package Access Rule Allows for rules to block downloads of packages based on additional logic.

        The Package Access Rule is used by the Whitesource extension, so you can reference how that works. We don't have any publicly available uses of Package Filters; it was incorporated for a very specific usecase with publicly-available feeds.

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • 1 / 1
        • First post
          Last post
        Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation