Project

General

Profile

Actions

Feature #77974

closed

Qualified Guessing database credentials during installation routine

Added by Falk Röder about 8 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Could have
Category:
Install Tool
Target version:
Start date:
2016-09-16
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Idea of this feature is, to check during the installation routine several places on the server for stored database connection credentials and of course databases. These could be suggestet to the installing user.
Questions is: Where to check? These credentials normally are stored very savely. In recommended files like my.cnf etc. no credentials are nor should be stored. Is there another way?

Actions #1

Updated by Christian Kuhn about 8 years ago

that was just an idea.

i guess, we will have dotenv within the core sooner or later. the install tool could then search for such a file and see if it finds variable definitions that look like db credentials.

i think there could be 2 guesses:

  • check if a home dir is set via env vars. if so, look out for a ~/.my.cnf file.
  • check for a .env file one directory above PATH_site (one above doc-root). if so, file_get_contents() it and see if there are TYPO3_DB_ variables.
Actions #2

Updated by Falk Röder about 8 years ago

Thanks. Working on it.

Actions #3

Updated by Riccardo De Contardi over 7 years ago

  • Target version changed from 8 LTS to 9.0
Actions #4

Updated by Christian Kuhn almost 7 years ago

  • Status changed from New to Closed

this has partially been implemented with other tickets by taking information from .env. closing this as 'nothing more to do here at the moment'.

Actions

Also available in: Atom PDF