diff --git a/docs/Authorization.md b/docs/Authorization.md index 94d99f81..ab1874c4 100644 --- a/docs/Authorization.md +++ b/docs/Authorization.md @@ -163,12 +163,11 @@ as required by Google for headless computers/cloud shells; this is required as o ``` ## Manage Projects In all of the project commands, the Google Workspace admin/GCP project manager `` can be omitted; you will be prompted for a value. -You must enter a full address, i.e., user@domain.com; you will be required to enter the password. +You must enter a full address, i.e., user@domain.com; you will be required to authenticate. -For `print|show projects`, you can eliminate the password requirement by enabling the following scope in `gam update serviceaccount`; -GAM will then use Service Account access to display projects. +For `print|show projects`, you can eliminate the password prompt and authentication requirement by specifying the super admin emailaddress used in `gam oauth create`. ``` -[*] 9) Cloud Resource Manager API v3 +gam print projects admin admin@domain.com ``` ## Authorize a super admin to create projects diff --git a/docs/GamUpdates.md b/docs/GamUpdates.md index cdb15955..0df6e1ee 100644 --- a/docs/GamUpdates.md +++ b/docs/GamUpdates.md @@ -10,6 +10,13 @@ Add the `-s` option to the end of the above commands to suppress creating the `g See [Downloads-Installs-GAM7](https://github.com/GAM-team/GAM/wiki/Downloads-Installs) for Windows or other options, including manual installation +### 7.00.26 + +Updated `drive_dir` in `gam.cfg` to allow the value `.` that causes `redirect csv|stdout|stderr ` +to write `` in the current directory without having to prefix `` with `./`. + +Upgraded to OpenSSL 3.4.0 where possible. + ### 7.00.25 Updated authentication process for `gam print|show projects`. diff --git a/docs/How-to-Upgrade-Legacy-GAM-to-GAM7.md b/docs/How-to-Upgrade-Legacy-GAM-to-GAM7.md index 3fccded6..e9d4b184 100644 --- a/docs/How-to-Upgrade-Legacy-GAM-to-GAM7.md +++ b/docs/How-to-Upgrade-Legacy-GAM-to-GAM7.md @@ -251,7 +251,7 @@ writes the credentials into the file oauth2.txt. admin@server:/Users/admin$ rm -f /Users/admin/GAMConfig/oauth2.txt admin@server:/Users/admin$ gam version WARNING: Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: /Users/admin/GAMConfig/oauth2.txt, Not Found -GAM 7.00.25 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.00.26 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.13.0 64-bit final MacOS Sonoma 14.5 x86_64 @@ -923,7 +923,7 @@ writes the credentials into the file oauth2.txt. C:\>del C:\GAMConfig\oauth2.txt C:\>gam version WARNING: Config File: C:\GAMConfig\gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: C:\GAMConfig\oauth2.txt, Not Found -GAM7 7.00.25 - https://github.com/GAM-team/GAM - pythonsource +GAM7 7.00.26 - https://github.com/GAM-team/GAM - pythonsource GAM Team Python 3.13.0 64-bit final Windows-10-10.0.17134 AMD64 diff --git a/docs/Version-and-Help.md b/docs/Version-and-Help.md index a3944fd6..2d223bd9 100644 --- a/docs/Version-and-Help.md +++ b/docs/Version-and-Help.md @@ -3,7 +3,7 @@ Print the current version of Gam with details ``` gam version -GAM 7.00.25 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.00.26 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.13.0 64-bit final MacOS Sonoma 14.5 x86_64 @@ -15,7 +15,7 @@ Time: 2023-06-02T21:10:00-07:00 Print the current version of Gam with details and time offset information ``` gam version timeoffset -GAM 7.00.25 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.00.26 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.13.0 64-bit final MacOS Sonoma 14.5 x86_64 @@ -27,7 +27,7 @@ Your system time differs from www.googleapis.com by less than 1 second Print the current version of Gam with extended details and SSL information ``` gam version extended -GAM 7.00.25 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.00.26 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.13.0 64-bit final MacOS Sonoma 14.5 x86_64 @@ -35,17 +35,17 @@ Path: /Users/Admin/bin/gam7 Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, customer_id: my_customer, domain: domain.com Time: 2023-06-02T21:10:00-07:00 Your system time differs from admin.googleapis.com by less than 1 second -OpenSSL 3.1.1 30 May 2023 -cryptography 41.0.1 -filelock 3.13.0 -google-api-python-client 2.88.0 -google-auth-httplib2 0.1.0 -google-auth-oauthlib 1.0.0 -google-auth 2.19.1 +OpenSSL 3.4.0 22 Oct Sep 2024 +cryptography 43.0.3 +filelock 3.16.1 +google-api-python-client 2.149.0 +google-auth-httplib2 0.2.0 +google-auth-oauthlib 1.2.1 +google-auth 2.35.0 httplib2 0.22.0 passlib 1.7.4 -python-dateutil 2.8.2 -yubikey-manager 5.1.1 +python-dateutil 2.9.0.post0 +yubikey-manager 5.5.1 admin.googleapis.com connects using TLSv1.3 TLS_AES_256_GCM_SHA384 ``` @@ -64,7 +64,7 @@ MacOS High Sierra 10.13.6 x86_64 Path: /Users/Admin/bin/gam7 Version Check: Current: 5.35.08 - Latest: 7.00.25 + Latest: 7.00.26 echo $? 1 ``` @@ -72,7 +72,7 @@ echo $? Print the current version number without details ``` gam version simple -7.00.25 +7.00.26 ``` In Linux/MacOS you can do: ``` @@ -82,7 +82,7 @@ echo $VER Print the current version of Gam and address of this Wiki ``` gam help -GAM 7.00.25 - https://github.com/GAM-team/GAM +GAM 7.00.26 - https://github.com/GAM-team/GAM GAM Team Python 3.13.0 64-bit final MacOS Sonoma 14.5 x86_64 diff --git a/src/GamUpdate.txt b/src/GamUpdate.txt index f9d53c1e..c57af05f 100644 --- a/src/GamUpdate.txt +++ b/src/GamUpdate.txt @@ -1,3 +1,12 @@ +7.00.26 + +Updated `drive_dir` in `gam.cfg` to allow the value `.` that causes `redirect csv|stdout|stderr ` +to write `` in the current directory without having to prefix `` with `./`. + +7.00.25 + +Updated authentication process for `gam print|show projects`. + 7.00.24 Updated `gam print|show projects ... showiampolicies 0|1|3` to use non-service account authentication. diff --git a/src/gam/__init__.py b/src/gam/__init__.py index 67daccbf..7d731801 100755 --- a/src/gam/__init__.py +++ b/src/gam/__init__.py @@ -25,7 +25,7 @@ https://github.com/GAM-team/GAM/wiki """ __author__ = 'GAM Team ' -__version__ = '7.00.25' +__version__ = '7.00.26' __license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)' #pylint: disable=wrong-import-position @@ -3671,7 +3671,7 @@ def SetGlobalVariables(): dirPath = os.path.expanduser(_stripStringQuotes(GM.Globals[GM.PARSER].get(sectionName, itemName))) if (not dirPath) and (itemName in {GC.GMAIL_CSE_INCERT_DIR, GC.GMAIL_CSE_INKEY_DIR}): return dirPath - if (not dirPath) or (not os.path.isabs(dirPath)): + if (not dirPath) or (not os.path.isabs(dirPath) and dirPath != '.'): if (sectionName != configparser.DEFAULTSECT) and (GM.Globals[GM.PARSER].has_option(sectionName, itemName)): dirPath = os.path.join(os.path.expanduser(_stripStringQuotes(GM.Globals[GM.PARSER].get(configparser.DEFAULTSECT, itemName))), dirPath) if not os.path.isabs(dirPath): diff --git a/src/gam/gamlib/glapi.py b/src/gam/gamlib/glapi.py index 071d98dd..a2c82629 100644 --- a/src/gam/gamlib/glapi.py +++ b/src/gam/gamlib/glapi.py @@ -49,7 +49,6 @@ CLOUDIDENTITY_ORGUNITS = 'cloudidentityorgunits' CLOUDIDENTITY_ORGUNITS_BETA = 'cloudidentityorgunitsbeta' CLOUDIDENTITY_USERINVITATIONS = 'cloudidentityuserinvitations' CLOUDRESOURCEMANAGER = 'cloudresourcemanager' -CLOUDRESOURCEMANAGER_V1 = 'cloudresourcemanager1' CONTACTS = 'contacts' CONTACTDELEGATION = 'contactdelegation' DATATRANSFER = 'datatransfer'