[GRASS-dev] [GRASS GIS] #3551: Please use env vars instead of cmd line parameters for credentials

GRASS GIS trac at osgeo.org
Tue Apr 24 11:22:27 PDT 2018


#3551: Please use env vars instead of cmd line parameters for credentials
--------------------------+------------------------------
  Reporter:  frankie      |      Owner:  grass-dev@…
      Type:  enhancement  |     Status:  new
  Priority:  normal       |  Milestone:
 Component:  Addons       |    Version:  unspecified
Resolution:               |   Keywords:  r.in.srtm.region
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+------------------------------
Changes (by neteler):

 * keywords:   => r.in.srtm.region
 * type:  defect => enhancement
 * component:  Default => Addons


Comment:

 Suggestion: The best way might be to use a password file. A standard
 approach for this is used by e.g. i.modis:

 See "netrc" related code here:

 https://trac.osgeo.org/grass/browser/grass-
 addons/grass7/imagery/i.modis/i.modis.download/i.modis.download.py#L193

 Note: Credentials are obtained from such a .netrc file also by wget, ftp
 and other software.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3551#comment:4>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list