Uploaded image for project: 'Content Gateway'
  1. Content Gateway
  2. CGW-660

DevSuite T&C's signing status check doesn't work for users created before May 18th

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • DM 3.5.3
    • None
    • None

      Customers report issues with using Account Page (#1) in Development Suite Installer, Rick Wagner reported this and found out that users registered before May 18th cannot use login/password to install devsuite, because download manager returns 'false' for T&C's signing check. Workaround for this cases is to go again through registration process and use new registration credentials.

      For users created before April release it just returns the message: "Invalid user credentials for user <user.name>".

      UPDATE:
      Workaround is to try to sign in into developers.redhat.com account, accept T&C's requested at sign in time, proceed to Container Development Kit Download and download CDK itself not Development Suite Installer. This will trigger request for any missing info including T&C's signing.

        1. devsuite-error.png
          devsuite-error.png
          62 kB
        2. invalid-credentials.png
          invalid-credentials.png
          15 kB
        3. sign-rh-subscription-agreement.png
          sign-rh-subscription-agreement.png
          30 kB
        4. tandcs-list.png
          tandcs-list.png
          17 kB
        5. tncagain.png
          tncagain.png
          34 kB

            [CGW-660] DevSuite T&C's signing status check doesn't work for users created before May 18th

            The tc-accepted rest service now properly returns

            {"result": false}

            if the terms and conditions are not met but the user credentials are OK.

            Note: not yet in production. This will happen when this issue is marked Done

            David Hladky added a comment - The tc-accepted rest service now properly returns {"result": false} if the terms and conditions are not met but the user credentials are OK. Note: not yet in production. This will happen when this issue is marked Done

            But yes, long term, the installer may have some bits which have different subs attached, so we do need to be able to generically support them all.

            Pete Muir (Inactive) added a comment - But yes, long term, the installer may have some bits which have different subs attached, so we do need to be able to generically support them all.

            devsuite MUST use the same model as the cdk - the full RHEL Dev Suite Sub. I have updated this in the download manager - it looks like it was set incorrectly originally to the Red Hat Developers Sub.

            If this was incorrectly set all along, it does explain why this issue was occurring.

            Pete Muir (Inactive) added a comment - devsuite MUST use the same model as the cdk - the full RHEL Dev Suite Sub. I have updated this in the download manager - it looks like it was set incorrectly originally to the Red Hat Developers Sub. If this was incorrectly set all along, it does explain why this issue was occurring.

            Red Hat Developers Subscription does not require the additional terms and conditions to be signed, however if you are using the web browser, Keycloak asks you to sign them anyway.

            Red Hat Enterprise Linux Developer Suite Subscription requires the additional TCs as well.

            IMO you should be able to download all terms and condition models, because all of them are valid options. You just need to do the things right to handle the download. If you still do not understand what to do, please, organize a call where we may discuss it.

            David Hladky added a comment - Red Hat Developers Subscription does not require the additional terms and conditions to be signed, however if you are using the web browser, Keycloak asks you to sign them anyway. Red Hat Enterprise Linux Developer Suite Subscription requires the additional TCs as well. IMO you should be able to download all terms and condition models, because all of them are valid options. You just need to do the things right to handle the download. If you still do not understand what to do, please, organize a call where we may discuss it.

            CDK and DevSuite have different tc model:

            • devsuite - "tcModel":"Red Hat Developers Subscription"
            • cdk - "tcModel":"Red Hat Enterprise Linux Developer Suite Subscription"

            Should we just update devsuite to have the same tc model as cdk has?

            Denis Golovin (Inactive) added a comment - CDK and DevSuite have different tc model: devsuite - "tcModel":"Red Hat Developers Subscription" cdk - "tcModel":"Red Hat Enterprise Linux Developer Suite Subscription" Should we just update devsuite to have the same tc model as cdk has?

            Now my account gets in exactly the same state as reported by Rick Wagner, I can download the installer, but get T&C's error. Workaround is sign in to developers.redhat.com and try to download CDK. This would trigger additional info request

            and after I agree on all T&C's Installer Account page works fine.

            This confirms Pete's suggestion above about iteration over each download being long term solution for installer.

            Denis Golovin (Inactive) added a comment - Now my account gets in exactly the same state as reported by Rick Wagner, I can download the installer, but get T&C's error. Workaround is sign in to developers.redhat.com and try to download CDK. This would trigger additional info request and after I agree on all T&C's Installer Account page works fine. This confirms Pete's suggestion above about iteration over each download being long term solution for installer.

            Installer sends http GET request with basic authentication to tc-accepted rest service the same way it would be sent by browser or any http client, so I think it does not matter where it comes form JavaScript, browser or curl command line.

            Does authentication method matter in this case? New account credentials works fine in both cases for tc-accepted rest service and developers.redhat.com.

            This specific user has valid credentials obviously, because OpenID auth accepts it and let it go further to 'Addition Action Required' page which requests to sign additional T&C. But res service that supposed to check if T&C's are accepted returns 401 for this user instead of false to indicate problem with T&C's.

            I'll just go ahead and accept missing T&C and see what will happen next.

            Denis Golovin (Inactive) added a comment - Installer sends http GET request with basic authentication to tc-accepted rest service the same way it would be sent by browser or any http client, so I think it does not matter where it comes form JavaScript, browser or curl command line. Does authentication method matter in this case? New account credentials works fine in both cases for tc-accepted rest service and developers.redhat.com. This specific user has valid credentials obviously, because OpenID auth accepts it and let it go further to 'Addition Action Required' page which requests to sign additional T&C. But res service that supposed to check if T&C's are accepted returns 401 for this user instead of false to indicate problem with T&C's. I'll just go ahead and accept missing T&C and see what will happen next.

            Sounds like https://issues.jboss.org/browse/RHDENG-564 is the right longer term solution (and specifically what Rob was going to implement), and then in the installer we have to iterate through each download and check it can be signed (and if not pull up the correct URL for people to go sign at).

            Pete Muir (Inactive) added a comment - Sounds like https://issues.jboss.org/browse/RHDENG-564 is the right longer term solution (and specifically what Rob was going to implement), and then in the installer we have to iterate through each download and check it can be signed (and if not pull up the correct URL for people to go sign at).

            The behaviour of Download Manager is correct. tc-accepted is a rest service and uses basic authentication. The page you use is using different authentication method - OpenID. The tc-accepted rest service was never meant to work with Javascript, because it would require people to pass their user credentials over insecure web.

            So if you call it, you get 401 no matter if you have or have not signed the terms and conditions - DM is simply missing user credentials and the correct response for such case is 401.

            David Hladky added a comment - The behaviour of Download Manager is correct. tc-accepted is a rest service and uses basic authentication. The page you use is using different authentication method - OpenID. The tc-accepted rest service was never meant to work with Javascript, because it would require people to pass their user credentials over insecure web. So if you call it, you get 401 no matter if you have or have not signed the terms and conditions - DM is simply missing user credentials and the correct response for such case is 401.

            dhladky@redhat.com, this account has valid credentials, if I supply invalid credentials I get this page below

            Problem is developers.redhat.com and download manager behavior is different for nivologd account. developers.redhat.com asks about providing additional information, specifically signing T&C. Download manager returns authentication error instead of false, to indicate T&C's is not signed.

            Current registration workflow asks to sign tree items and nivologd user does not have one marked below
            .

            Is that valid behavior for download manager?

            Denis Golovin (Inactive) added a comment - dhladky@redhat.com , this account has valid credentials, if I supply invalid credentials I get this page below Problem is developers.redhat.com and download manager behavior is different for nivologd account. developers.redhat.com asks about providing additional information, specifically signing T&C. Download manager returns authentication error instead of false, to indicate T&C's is not signed. Current registration workflow asks to sign tree items and nivologd user does not have one marked below . Is that valid behavior for download manager?

              dhladky@redhat.com David Hladky
              nivologd@gmail.com Denis Golovin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: