Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
7e3c9fcc
Commit
7e3c9fcc
authored
Aug 07, 2017
by
Konstantin Chukhlomin
Committed by
bergquist
Sep 15, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduced OAuth scope to read_write
parent
fcdf2820
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletions
+3
-1
docs/sources/installation/configuration.md
+2
-0
pkg/components/imguploader/gcsuploader.go
+1
-1
pkg/components/imguploader/gcsuploader_test.go
+0
-0
No files found.
docs/sources/installation/configuration.md
View file @
7e3c9fcc
...
@@ -683,6 +683,8 @@ basic auth password
...
@@ -683,6 +683,8 @@ basic auth password
Path to JSON key file associated with a Google service account to authenticate and authorize.
Path to JSON key file associated with a Google service account to authenticate and authorize.
Service Account keys can be created and downloaded from https://console.developers.google.com/permissions/serviceaccounts.
Service Account keys can be created and downloaded from https://console.developers.google.com/permissions/serviceaccounts.
Service Account should have "Storage Object Writer" role.
### bucket name
### bucket name
Bucket Name on Google Cloud Storage.
Bucket Name on Google Cloud Storage.
...
...
pkg/components/imguploader/gc
p
uploader.go
→
pkg/components/imguploader/gc
s
uploader.go
View file @
7e3c9fcc
...
@@ -39,7 +39,7 @@ func (u *GCSUploader) Upload(imageDiskPath string) (string, error) {
...
@@ -39,7 +39,7 @@ func (u *GCSUploader) Upload(imageDiskPath string) (string, error) {
log
.
Debug
(
"Creating JWT conf"
)
log
.
Debug
(
"Creating JWT conf"
)
conf
,
err
:=
google
.
JWTConfigFromJSON
(
data
,
"https://www.googleapis.com/auth/devstorage.
full_control
"
)
conf
,
err
:=
google
.
JWTConfigFromJSON
(
data
,
"https://www.googleapis.com/auth/devstorage.
read_write
"
)
if
err
!=
nil
{
if
err
!=
nil
{
return
""
,
err
return
""
,
err
}
}
...
...
pkg/components/imguploader/gc
p
uploader_test.go
→
pkg/components/imguploader/gc
s
uploader_test.go
View file @
7e3c9fcc
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment