From c1ed996b1dce056982229c1d3105ff3956a668c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Wed, 19 Oct 2016 15:05:30 +0200 Subject: [PATCH] Only send the first 20 characters of the token --- lib/remote_storage/swift.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/remote_storage/swift.rb b/lib/remote_storage/swift.rb index ed527bb..2fb5fa4 100644 --- a/lib/remote_storage/swift.rb +++ b/lib/remote_storage/swift.rb @@ -457,7 +457,7 @@ module RemoteStorage rescue RestClient::Unauthorized => ex Raven.capture_exception( ex, - tags: { swift_token: settings.swift_token, + tags: { swift_token: settings.swift_token[0..19], # send the first 20 characters swift_token_loaded_at: settings.swift_token_loaded_at } ) server.halt 500