# \[SOLVED\] Unauthorized when use plugins/gcr:latest with drone:1.0.0-rc.2

**URL:** <https://drone.discourse.group/t/solved-unauthorized-when-use-plugins-gcr-latest-with-drone-1-0-0-rc-2/9733>\
**Category:** Drone Support\
**Created:** [December 11, 2018, 9:02am UTC](https://drone.discourse.group/t/solved-unauthorized-when-use-plugins-gcr-latest-with-drone-1-0-0-rc-2/9733 "2018-12-11T09:02:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kxw07](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/kxw07/32/3715_2.png) [@kxw07](https://drone.discourse.group/u/kxw07)\
**Post date:** [December 11, 2018, 9:02am UTC](https://drone.discourse.group/t/solved-unauthorized-when-use-plugins-gcr-latest-with-drone-1-0-0-rc-2/9733/1 "2018-12-11T09:02:52Z")

</div>

Hi All,

I encounter a problem, as title.  
I have google it for a while, but didn’t get any answer.

Here is part log:  
unauthorized: You don’t have the needed permissions to perform this operation, and you may have invalid credentials. To authenticate your request, follow the steps in: [https://cloud.google.com/container-registry/docs/advanced-authentication](https://cloud.google.com/container-registry/docs/advanced-authentication)

And my yml:  
kind: pipeline  
name: default

steps:

- name: publish  
image: plugins/gcr  
settings:  
registry: [asia.gcr.io](http://asia.gcr.io)  
repo: report-163115/linebot  
tags: ${DRONE\_TAG}  
dockerfile: ./Dockerfile  
json\_key:  
from\_secret: google\_credentials

Thank for your reading

---

<div class="post-metadata">

**Author:** ![kxw07](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/kxw07/32/3715_2.png) [@kxw07](https://drone.discourse.group/u/kxw07)\
**Post date:** [December 11, 2018, 9:09am UTC](https://drone.discourse.group/t/solved-unauthorized-when-use-plugins-gcr-latest-with-drone-1-0-0-rc-2/9733/2 "2018-12-11T09:09:50Z")

</div>

> [@On another topic](https://drone.discourse.group/t/3186/1):
>
> google\_credentials

Hi All,

I found the problem.  
Keyfile’s format is mess, so I generate another one.  
And it success!!!
