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!

    Proget ClearTextPassword Authentication error

    Scheduled Pinned Locked Moved Support
    2 Posts 2 Posters 27 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.
    • P Offline
      peter.siegel_7115
      last edited by

      Hello,

      I'm trying to use a private proget nuget feed in a docker (linux) based build pipeline:

      Nuget.config:
      <?xml version="1.0" encoding="utf-8"?><configuration> <packageSources> <add key="Vertical" value="https://proget.something/nuget/VerticalNugets/" /> </packageSources> <activePackageSource> <add key="All" value="(Aggregate source)" /> </activePackageSource> <packageSourceCredentials> <Vertical> <add key="Username" value="Myusername" /> <add key="ClearTextPassword" value="somecleartextpw" /> </Vertical> </packageSourceCredentials></configuration>

      docker script:

      FROM mcr.microsoft.com/dotnet/core/sdk:3.0 AS build-env
      WORKDIR /app
      ARG progetpw
      ENV DOTNET_CLI_TELEMETRY_OPTOUT 1
      ENV NUGET_VERSION 4.4.1

      copy csproj and restore as distinct layers

      COPY *.csproj ./
      RUN echo "$progetpw" | base64 --decode > nuget.config
      run cat nuget.config
      RUN dotnet restore

      copy everything else and build

      COPY . ./
      RUN dotnet publish -c Release -o out

      The nuget file seems correct, but when i do dotnet restore i get the following error:

      Response status code does not indicate success: 504 (Gateway Time-out).
      "FindPackagesByIdAsyncCore" wird für die Quelle "https://proget.something/nuget/VerticalNugets/FindPackagesById()

      Auth via Encrypted password in nuget works on windows but dotnet cli does not support encrypted passwords on linux and CleartextPasswords do not seem to work with proget.

      What can i do?

      BR Peter

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

        The 504 error indicates that the dotnet client on your linux server isn't able to connect to ProGet, or that there's some intermediate proxy's preventing the request. So, I would investigate the networking side of things.

        Note that the password setting (CleartextPassword vs EncryptedPassword) doesn't matter, since they both arrive to ProGet as the same Basic authentication header.

        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