Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

403 Insufficient Permission error when writing to GCS #709

Closed
SinaChavoshi opened this issue Jan 20, 2019 · 1 comment
Closed

403 Insufficient Permission error when writing to GCS #709

SinaChavoshi opened this issue Jan 20, 2019 · 1 comment
Assignees

Comments

@SinaChavoshi
Copy link
Contributor

When attempting to copy files to GCS I get an AccessDenied error however the kubeflow user service account has write access to the bucket,

sample component is as follows:

def copy_to_gcs_op(step_name='load data'):
return dsl.ContainerOp(
name = step_name,
image = GCLOUD_SDK,
command=['sh', '-c'],
arguments = [''gsutil -m cp -R gs:// "]
).apply(use_gcp_secret('user-gcp-sa'))

results in:

Copying file:///mnt/vol/retrain_logs/validation/events.out.tfevents.1547924733.tfhub-image-classifier-bjpjx-2847653555 [Content-Type=application/octet-stream]...
/ [0/2 files][ 0.0 B/ 4.6 MiB] 0% Done
AccessDeniedException: 403 Insufficient Permission
CommandException: 1 files/objects could not be transferred.

@SinaChavoshi
Copy link
Contributor Author

Seems like this issue is now resolved as of pipelines 1.7. Just in case, you can add the secret using .apply(use_gcp_secret('')), which will mount the json auth file under '/secret/gcp-credentials/.json'

example:

def some_op(step_name='some op'):
    return dsl.ContainerOp(
        name = step_name,
        image = <image>,
        command=['sh', '-c'],
        arguments = ['''gcloud auth activate-service-account --key-file '/secret/gcp-credentials/user-gcp-sa.json' && gsutil  <some_command> ''']).apply(use_gcp_secret('user-gcp-sa'))

Linchin pushed a commit to Linchin/pipelines that referenced this issue Apr 11, 2023
* ACM should point at kubeflowt/testing/master

related to GoogleCloudPlatform/kubeflow-distribution#51

* Delete old config for auto-deploy.yaml

* Fix the makefile
magdalenakuhn17 pushed a commit to magdalenakuhn17/pipelines that referenced this issue Oct 22, 2023
* Predict protocol V2 proposal

* Add clarifying statement about use of platform

* Model version should be specified as a string

* Add endorsements

* Fix typo

* Update docs/predict-api/v2/required_api.md

Co-Authored-By: Animesh Singh <singhan@us.ibm.com>

* Update required_api.md

Co-authored-by: Animesh Singh <singhan@us.ibm.com>
HumairAK pushed a commit to red-hat-data-services/data-science-pipelines that referenced this issue Mar 11, 2024
HumairAK pushed a commit to red-hat-data-services/data-science-pipelines that referenced this issue Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants