031a8e140a
Chore: upgrade gocloud.dev and go mod tidy ( #47797 )
2022-04-15 07:48:44 -07:00
54de1078c8
remove the global log error/warn etc functions ( #41404 )
...
* remove the global log error/warn etc functions and use request context logger whenever possible
2021-11-08 17:56:56 +01:00
681218275e
remove crit and trace ( #40320 )
2021-10-26 17:36:24 +02:00
f326b79cc1
Security: Add gosec G304 auditing annotations ( #29578 )
...
* Security: Add gosec G304 auditing annotations
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* add G304 auditing comment
Signed-off-by: bergquist <carl.bergquist@gmail.com>
* add G304 auditing comment
Signed-off-by: bergquist <carl.bergquist@gmail.com>
* add G304 auditing comment
Signed-off-by: bergquist <carl.bergquist@gmail.com>
* add G304 auditing comment
Signed-off-by: bergquist <carl.bergquist@gmail.com>
* add G304 auditing comment
Signed-off-by: bergquist <carl.bergquist@gmail.com>
* add G304 auditing comment
Signed-off-by: bergquist <carl.bergquist@gmail.com>
* add G304 auditing comment
Signed-off-by: bergquist <carl.bergquist@gmail.com>
* add G304 auditing comment
Signed-off-by: bergquist <carl.bergquist@gmail.com>
* Add gosec annotations
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* add G304 auditing comment
Signed-off-by: bergquist <carl.bergquist@gmail.com>
* add G304 auditing comment
Signed-off-by: bergquist <carl.bergquist@gmail.com>
* Add gosec annotations
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* add G304 auditing comment
Signed-off-by: bergquist <carl.bergquist@gmail.com>
* add G304 auditing comment
Signed-off-by: bergquist <carl.bergquist@gmail.com>
* add G304 auditing comment
Signed-off-by: bergquist <carl.bergquist@gmail.com>
* Add gosec annotations
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* space
Signed-off-by: bergquist <carl.bergquist@gmail.com>
* Add gosec annotations
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: bergquist <carl.bergquist@gmail.com>
2020-12-03 22:13:06 +01:00
f2b7fbc32a
Chore: Check errors from Close calls ( #29562 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-12-03 10:11:14 +01:00
415638cdda
Chore: Use interfaces where possible ( #26392 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-07-23 08:17:20 +02:00
4c56eb3991
Chore: Enable goprintffuncname and nakedret linters ( #26376 )
...
* Chore: Enable goprintffuncname linter
* Chore: Enable nakedret linter
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-07-23 08:14:39 +02:00
7329671793
Cloudwatch: prefer webIdentity over EC2 role ( #23452 )
2020-04-08 23:58:32 -07:00
dbda5aece9
cloudwatch: Replicate SDK behaviour for WebIdentityRole ( #21594 )
...
* Replicate SDK behaviour for WebIdentityRole
Fix #20473
* Use WebIdentityRole in s3 uploader as well
* Use consistent casing
* use WebIdentityRole to assume another role
Co-authored-by: eV <ev@7pr.xyz>
2020-04-08 15:05:24 +02:00
71ffd1d108
Alerting: Fix image rendering and uploading timeout preventing to send alert notifications ( #21536 )
...
* svc alerting - use a shorter ctx to upload the img
This will prevent timeout on img upload to cancel the notifications from being sent
* components img uploader - pass the ctx to aws lib
* make webdavuploader use the ctx
* make azureblobuploader use the ctx
* rename uploadImage() to renderAndUploadImage()
for better clarity about what this method work
* Use timeout + 2s for plugin renderer (same as service and phantomjs)
* Make sure that original EvalContext is updated after render and upload
* Verify notification sent even if render or image upload times out
* fix lint
* fixes after review
Co-authored-by: Edouard Hur <3418467+hekmon@users.noreply.github.com>
Fixes #21018
2020-01-17 12:07:16 +01:00
42032f6c03
ImgUploader: add support for non-amazon S3 ( #20354 )
...
* imguploader: add support for non-Amazon S3 endpoints and forcing of path-style S3 addressing
fixes #11240
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-01-02 15:10:20 +01:00
35e0e078b7
pkg/util: Check errors ( #19832 )
...
* pkg/util: Check errors
* pkg/services: DRY up code
2019-10-23 10:40:12 +02:00
3ff3e0f2ac
Defer closing of files ( #17213 )
...
Signed-off-by: CodeLingo Bot <bot@codelingo.io>
2019-05-22 08:48:47 +02:00
2fff8f77dc
move log package to /infra ( #17023 )
...
ref #14679
Signed-off-by: zhulongcheng <zhulongcheng.me@gmail.com>
2019-05-13 08:45:54 +02:00
53c7b33926
imguploader: Add support for ECS credential provider for S3
2018-09-26 10:22:17 +10:00
12c9860882
string formating fixes
2018-08-28 22:33:38 +02:00
e4541a7fd1
support for s3 path ( #9151 )
2017-10-04 21:04:20 +02:00
50d82155ed
Merge branch 'master' of https://github.com/williamjoy/grafana into williamjoy-master
2017-09-27 09:37:26 +02:00
c7698a09ed
pass context to image uploaders
2017-09-15 16:11:02 +02:00
37962216ed
get s3 url via aws-sdk-go, fix #9189
2017-09-12 21:52:40 -04:00
befc15c5a1
fix: s3 image uploads to us-east-1 (us standard) did not return correct image urls so images shared to slack and other services was not correct, fixes #8444
2017-05-23 15:50:22 +02:00
02455753b5
Specify region for s3 ( #8251 )
2017-05-01 19:22:20 +02:00
b387a8759e
use session.NewSession() ( #7745 )
2017-03-06 21:08:16 +01:00
7e4c101d02
S3 IAM support ( #7058 )
...
* add s3 dependencly
* rewrite image uploader by aws-sdk-go
* improve backward compatibility of s3 image uploading
* set default for expires option
* remove acl and expires
2017-01-11 14:00:49 +01:00
50b41130ca
feat(alerting): fixed s3 upload issue, progress on alerting on null/missing data, updated ini package to get the support for line continuations
2016-09-07 10:11:00 +02:00
99e99922b4
feat(alerting): add support for uploading images to webdav.
...
closes #5770
2016-08-11 16:48:54 +02:00