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!

    Restart-dependent config caching

    Scheduled Pinned Locked Moved Support
    3 Posts 2 Posters 4 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.
    • S Offline
      sai.pabbareddy
      last edited by

      Permission and directory config changes don't take effect until a service restart

      We've run into this twice during our Enterprise trial evaluation and want to check if it's expected behavior.

      Case 1 — RBAC: We removed two permission grants from the Anonymous user/group ("Administer globally" and "View & Download Packages globally") via pgutil security permissions remove. pgutil security permissions list immediately confirmed the grants were gone from the database. Despite that, requests with fabricated/wrong credentials (which should now fall through with no permissions at all) continued to succeed at both package downloads and admin-level actions (creating a feed) immediately after the change. Only after we ran docker restart proget did the fix actually take effect — re-running the identical tests afterward, everything correctly failed with 401/403.

      Case 2 — Directory config: Separately, while configuring an LDAP user directory, we changed the "User Search Base" field and saved it. The LDAP server's own connection log showed ProGet still querying with the old (incorrect) search base on the next login attempt. Again, only a docker restart proget made the new value actually take effect.

      Is this expected — i.e., does permission/directory configuration get cached in memory and only reloaded on service restart? If so:

      • Is there a lighter-weight way to force that cache to refresh in a production deployment, short of a full service restart?
      • Is this documented anywhere, so we can build it into our own change-management process?

      Thanks,
      Sai

      rhessingerR 1 Reply Last reply Reply Quote 0
      • rhessingerR Offline
        rhessinger inedo-engineer @sai.pabbareddy
        last edited by

        Hi @sai.pabbareddy,

        For case 1, there is a cash of the users permissions for a short while (~5 minutes). You can force a cache reset on Administration -> Manage security -> Tasks/Permissions page, hover over Test Privileges, and then click Clear Cache. That will force the operation to take effect immediately. This is most likely happening because the bad user was already logged in prior to the change of permissions.

        For case 2, that same cache from case 1 looks like it also affects this as well and the clear cache button should also fix this. Looking at the code, it looks like there was a regression that removed the user directory cache clearing, but left in the user privleges cache clearing.

        I added a ticket, PG-3374, to fix these and it will be released in ProGet 2026.11.

        Thanks,
        Rich

        Products Engineer, Inedo

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sai.pabbareddy @rhessinger
          last edited by

          @rhessinger

          Please let me know the release date for PG-3374. OS i can re verify that.

          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