Skip to content

Commit

Permalink
Add credentials information for shim (#1756)
Browse files Browse the repository at this point in the history
* Add credentials information for shim

* Address review comment
  • Loading branch information
dilipped authored Nov 8, 2023
1 parent 92c81e4 commit 423c588
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions gslib/addlhelp/shim.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@
transition to this new CLI, gsutil provides a shim that translates your gsutil
commands to gcloud storage commands if an equivalent exists, and falls back to
gsutil's usual behavior if an equivalent does not exist.
<B> PREREQUISITES </B>
You should be running gsutil binary installed via Cloud SDK tool.
To verify this, run ``gsutil ver -l`` and you should be able to see
``pass cloud sdk credentials to gsutil: True``. If it is ``False``,
try running ``gcloud config set pass_credentials_to_gsutil True``.
If you do not have ``gcloud`` installed, follow the
`Cloud SDK installation instructions. <https://cloud.google.com/sdk/docs/install>`_.
<B>TO ENABLE</B>
Expand Down Expand Up @@ -220,6 +229,9 @@
Configuration found in the boto file is mapped 1:1 to gcloud environment
variables where appropriate.
Important: The ``gs_oauth2_refresh_token`` and ``gs_service_key_file`` fields
are ignored by the shim and authentication is taken care by ``gcloud``.
[Credentials]
------------------------
Expand Down

0 comments on commit 423c588

Please sign in to comment.