Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-6516

Move mysql root password to secret

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 2.9.1 GA
    • OSE Templates, System
    • False
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Undefined
    • Hide

      It is possible to fix this issue by manually getting MYSQL_ROOT_PASSWORD from the new env and update the secret/system-database URL field accordingly.

      Show
      It is possible to fix this issue by manually getting MYSQL_ROOT_PASSWORD from the new env and update the secret/system-database URL field accordingly.

      In the Backup/restore procedure one of the steps is to migrate MySQL db, however root password in MySQL DC is generated (or set) at install time while its value in the system-* pod is in the secret system-database URL field.

      Thus in a restored environment system-app is failing with:

      Mysql2::Error::ConnectionError: Access denied for user 'root'@'10.129.3.130' (using password: YES)
      

      Moving MYSQL_ROOT_PASSWORD value to a secret should solve the issue.

              Unassigned Unassigned
              rhn-support-cpalmier Carlo Palmieri (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: