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!

    What user should I use for PyPi uploads from Twine in a CI system when using Feed API keys?

    Scheduled Pinned Locked Moved Support
    8 Posts 3 Posters 11 Views 1 Watching
    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.
    • hwittenbornH Offline
      hwittenborn
      last edited by

      I've got a feed API key set up for deployments to a PyPi feed, but I can't figure out what user I should be using.

      I'm currently using the following command, but all it results in is 403s (${proget_api_key} and ${proget_server} are variables set in my deployment scripts):

      twine upload -u api -p "${proget_apt_key}" --repository-url "https://${proget_server}/pypi/python/legacy" dist/*
      
      1 Reply Last reply Reply Quote 0
      • hwittenbornH Offline
        hwittenborn
        last edited by

        I had some automated Docker build attempt to get deployed a bit earlier as well, and those appear to have failed from an authentication issue as well. Maybe it's an issue with how I have my key set up?

        1 Reply Last reply Reply Quote 0
        • Dan_WoolfD Offline
          Dan_Woolf inedo-engineer
          last edited by

          Hi @hwittenborn,

          You are using the correct username. When using a username/password with an API key, the username should be api. Would you be able to share your configuration for the API key? It sounds like there is something incorrect in its settings.

          If your user account has access to push packages/images to ProGet, could you try using a personal API key? When using a personal API key, you should still use the username api.

          Thanks,
          Dan

          1 Reply Last reply Reply Quote 0
          • hwittenbornH Offline
            hwittenborn
            last edited by

            Hi! This is what I have for the key's configuration:

            6a688c02-1b7d-4166-ab3f-8154cd9ad146-image.png

            The key is set to allow access to all feeds, so there shouldn't be any issues there.

            I also tried the Pesonal format when I was testing it the other day, but I didn't get any luck out of it.

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

              @hwittenborn this can sometimes be tricky to get working...

              Did this work in ProGet v5? We made a major change to the api keys in v6, so knowing if it's a regression would help track this down

              1 Reply Last reply Reply Quote 0
              • hwittenbornH Offline
                hwittenborn
                last edited by

                Yeah, this was all working before in ProGet v5. All of these issues were when I was changing things right after upgrading the other day.

                1 Reply Last reply Reply Quote 0
                • hwittenbornH Offline
                  hwittenborn
                  last edited by

                  I just went ahead and recreated the key, and everything started working fine. I'm assuming something got messed up during the upgrade then, thought I can't really guarantee anything outside of what's working now.

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

                    @hwittenborn thanks for letting me know -- that was going to be my next suggestion. It's very possible the key had an unexpected combination of properties/permissions and that didn't translate to the v6 internal model

                    But easy enough to recreate in a case like 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