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!

    Getting 403 error when pushing nuget package

    Scheduled Pinned Locked Moved Support
    progetpermissionsnuget
    15 Posts 1 Posters 524 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

      Hello Mathias,

      There are three reasons pushing a NuGet package to ProGet can result in a 403 (Forbidden) error:

      • An API key is configured but a different API key (or no API key) is included in the request.
      • The current user does not have Feeds_AddPackage on the NuGet feed. Feeds_AddPackage is required even if an API key is configured.
      • The package already exists and the current user does not have Feeds_OverwritePackage on the current feed.

      (See KB#1112)

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        And which user applies when using API key? Anonymous?

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          If you are not using integrated authentication, the anonymous user is associated with a NuGet feed-specific API key.

          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            I believe I tried giving anonymous those privileges already but will give it another try. I also tried using the username:password format without luck.

            I won't be able to try until tomorrow

            1 Reply Last reply Reply Quote 0
            • ? This user is from outside of this forum
              Guest
              last edited by

              I'm still getting 403. Here are all the permission settings:

              Feed settings with API key:

              Anonymous user:

              Group settings:

              Task settings:

              1 Reply Last reply Reply Quote 0
              • ? This user is from outside of this forum
                Guest
                last edited by

                Do you have any suggestions?

                1 Reply Last reply Reply Quote 0
                • ? This user is from outside of this forum
                  Guest
                  last edited by

                  Can I have a reaction to this please?

                  1 Reply Last reply Reply Quote 0
                  • ? This user is from outside of this forum
                    Guest
                    last edited by

                    Given this setup, I can't think of a reason why pushing a NuGet package with the API key specified would give a 403 response; it could be an IIS setting like WebDAV that's forbidding a PUSH or PUT of a package.

                    1 Reply Last reply Reply Quote 0
                    • ? This user is from outside of this forum
                      Guest
                      last edited by

                      WebDAV is not enabled on the server.

                      The IIS site is the default created by your installer.

                      Is there some sort of logging I can look at to try and figure out why the request is rejected?

                      1 Reply Last reply Reply Quote 0
                      • ? This user is from outside of this forum
                        Guest
                        last edited by

                        It appears the cause is the NuGet API Key set on the feed.

                        If i remove it, i can publish using the user:password format.

                        When using an API Key configured on the feed? Which user's permissions apply?

                        1 Reply Last reply Reply Quote 0
                        • ? This user is from outside of this forum
                          Guest
                          last edited by

                          The API key must also be used; check out kb#1112 - API Keys in ProGet

                          1 Reply Last reply Reply Quote 0
                          • ? This user is from outside of this forum
                            Guest
                            last edited by

                            Are you sure that's working as you intend?

                            I did give the anonymous user permission to push packages, as the page you linked suggests.

                            1 Reply Last reply Reply Quote 0
                            • ? This user is from outside of this forum
                              Guest
                              last edited by

                              Any updates on this issue? I am getting the same behavior with Version 4.8.9 (Build 2). I wonder if its a bug with the product?

                              1 Reply Last reply Reply Quote 0
                              • ? This user is from outside of this forum
                                Guest
                                last edited by

                                I would remove the "NuGet API Key" from your NuGet feed; that is a seperate thing from "ProGet API Keys", which makes it quite confusing. This is why it will be deprecated in v5.

                                You don't need an API key; you can just publish using usename/[password.

                                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