Skip to content

Instantly share code, notes, and snippets.

@dolph dolph/folsom-memcache-500 Secret
Last active Dec 20, 2015

Embed
What would you like to do?
stable/folsom + memcache token driver
DELETE http://localhost:35357/v2.0/tokens/{token_id}
2013-08-12 10:56:25 ERROR [root] Key length is > 250
Traceback (most recent call last):
File "/Users/dolph/Projects/keystone/keystone/common/wsgi.py", line 204, in __call__
result = method(context, **params)
File "/Users/dolph/Projects/keystone/keystone/service.py", line 547, in delete_token
self.assert_admin(context)
File "/Users/dolph/Projects/keystone/keystone/common/wsgi.py", line 237, in assert_admin
context=context, token_id=context['token_id'])
File "/Users/dolph/Projects/keystone/keystone/common/manager.py", line 47, in _wrapper
return f(*args, **kw)
File "/Users/dolph/Projects/keystone/keystone/token/backends/memcache.py", line 58, in get_token
token = self.client.get(ptk)
File "/Users/dolph/Environments/folsom/lib/python2.7/site-packages/memcache.py", line 898, in get
return self._get('get', key)
File "/Users/dolph/Environments/folsom/lib/python2.7/site-packages/memcache.py", line 847, in _get
self.check_key(key)
File "/Users/dolph/Environments/folsom/lib/python2.7/site-packages/memcache.py", line 1059, in check_key
% self.server_max_key_length)
MemcachedKeyLengthError: Key length is > 250
Status: 200
Content-Length: 2922
Content-Location: http://localhost:35357/v2.0/tokens/revoked
Vary: X-Auth-Token
Date: Fri, 19 Jul 2013 21:04:31 GMT
Content-Type: application/json
{
"signed": "-----BEGIN CMS-----\nMIIIIQYJKoZIhvcNAQcCoIIIEjCCCA4CAQExCTAHBgUrDgMCGjCCBncGCSqGSIb3\nDQEHAaCCBmgEggZkeyJyZXZva2VkIjogW3siZXhwaXJlcyI6ICIyMDEzLTA3LTIw\nVDIwOjU5OjM5WiIsICJpZCI6ICJNSUlFbUFZSktvWklodmNOQVFjQ29JSUVpVEND\nQklVQ0FRRXhDVEFIQmdVckRnTUNHakNDQXU0R0NTcUdTSWIzRFFFSEFhQ0NBdDhF\nZ2dMYmV5SmhZMk5sYzNNaU9pQjdJblJ2YTJWdUlqb2dleUpwYzNOMVpXU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TcvdjMiLCAiaWQiOiAiZGNhMTliMTZmZGE3NGNkZWE3NmYxYzZkOGQzZDBhODYiLCAicHVibGljVVJMIjogImh0dHA6Ly9sb2NhbGhvc3Q6MzUzNTcvdjMifV0sICJlbmRwb2ludHNfbGlua3MiOiBbXSwgInR5cGUiOiAiaWRlbnRpdHkiLCAibmFtZSI6ICJrZXlzdG9uZSJ9XSwgInVzZXIiOiB7InVzZXJuYW1lIjogImFkbWluIiwgInJvbGVzX2xpbmtzIjogW10sICJpZCI6ICIwOTI2YWE4NzE1M2M0NGNlOGUxNWJlYzU3MmQwNjcxZCIsICJyb2xlcyI6IFt7Im5hbWUiOiAiYWRtaW4ifV0sICJuYW1lIjogImFkbWluIn0sICJtZXRhZGF0YSI6IHsiaXNfYWRtaW4iOiAwLCAicm9sZXMiOiBbImYyODMzYjU0M2ViMjQ4NGI5ZmFlYTAzZGM4NmMxMzlkIl19fX0xggGBMIIBfQIBATBcMFcxCzAJBgNVBAYTAlVTMQ4wDAYDVQQIEwVVbnNldDEOMAwGA1UEBxMFVW5zZXQxDjAMBgNVBAoTBVVuc2V0MRgwFgYDVQQDEw93d3cuZXhhbXBsZS5jb20CAQEwBwYFKw4DAhowDQYJKoZIhvcNAQEBBQAEggEAVM9qtOxh4IaRM3slaVcVYYcAYWP4Gxnp8tg9xRY7gkt4OfJUFwBQlAApSiDqcFkOAsgx4UQNytcjpCgioXRFjrk-W7VgvY5tLQgibzMQM2NvIjX0fAIhViciR9qfwL4lu6Nn9zTq66gU8yvDZqBA-oo6SdA9y2yr9-xX+hEkC4x1QQhHbdXVwW8U-UivmwPuleyE5iAk0EQBgu1t6L6b5na01iQuVtgXnL-WOSNAQlD5zTRJ2EcJNoYRcxrp1GnVsdBmcNw9exD6T9sKcP+AUwl7CudMVowq1VHxn8iamh7lsMCX1ZvksKdYThBc95xtISt9pSikc2cyrzqm0Lallg=="}]}
Status: 200
Content-Length: 794
Content-Location: http://localhost:35357/v2.0/tokens/revoked
Vary: X-Auth-Token
Date: Fri, 19 Jul 2013 21:11:34 GMT
Content-Type: application/json
{
"signed": "-----BEGIN CMS-----\nMIICEwYJKoZIhvcNAQcCoIICBDCCAgACAQExCTAHBgUrDgMCGjBrBgkqhkiG9w0B\nBwGgXgRceyJyZXZva2VkIjogW3siZXhwaXJlcyI6ICIyMDEzLTA3LTIwVDIxOjEw\nOjA5WiIsICJpZCI6ICIxZWZlNTQ5OTNlMzdlZDA5ZTM3YzljNTViODNkYjk4NiJ9\nXX0xggGBMIIBfQIBATBcMFcxCzAJBgNVBAYTAlVTMQ4wDAYDVQQIEwVVbnNldDEO\nMAwGA1UEBxMFVW5zZXQxDjAMBgNVBAoTBVVuc2V0MRgwFgYDVQQDEw93d3cuZXhh\nbXBsZS5jb20CAQEwBwYFKw4DAhowDQYJKoZIhvcNAQEBBQAEggEAKNmnkmIE0heZ\nihusUUhaaHnvh8IzucfmpGdyePxdwN6R4Dt0R2n08lat9CQhszXDoetwHOHPxJtR\nQF2AMeGcJxPv4greo9J31jKEg7m1HslrOycuThldCT/hyXGesedsAY2xzfdXcT+p\nBja9hWMLnQ40qk1RZN2nXQk0DnWoLWVTpKD5Q9i/ZeGmHqOxf2J5I07jAD0q/iIJ\ncdrZbEwapaod3fY1aSSsXAjqpSJ/fUpDlI5JVgW1+FR941ayDl+oWqwmAVjw8KNj\nHhgqZbESAEzpg/L6xnF8tLQua4+mkiMC0Rga9v8yS9+INp2IpkI741z1dO6o9eVL\n1c4UmF9zZg==\n-----END CMS-----\n"
}
Verified:
{"revoked": [{"expires": "2013-07-20T21:10:09Z", "id": "1efe54993e37ed09e37c9c55b83db986"}]}
master + kvs token driver
{"revoked": [{"expires": "2013-08-13T15:10:44Z", "id": "76a5b6d53d0e53fa04c296742dcafd21"}]}
master + sql token driver
{"revoked": [{"expires": "2013-08-13T15:08:21Z", "id": "6a1a516633a17ffff97faae637c33d1a"}]}
master + memcache token driver
{"revoked": [{"tenant": {"description": "", "enabled": true, "id": "132765ca55924f7abcfe373eec74f95e", "name": "admin"}, "user_id": "a84fa362e7d44237a195838320376574", "bind": null, "expires": "2013-08-13T15:09:42.000000", "token_data": {"access": {"token": {"issued_at": "2013-08-12T15:09:42.927270", "expires": "2013-08-13T15:09:42Z", "id": "MIIEmAYJKoZIhvcNAQcCoIIEiTCCBIUCAQExCTAHBgUrDgMCGjCCAu4GCSqGSIb3DQEHAaCCAt8EggLbeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0wOC0xMlQxNTowOTo0Mi45MjcyNzAiLCAiZXhwaXJlcyI6ICIyMDEzLTA4LTEzVDE1OjA5OjQyWiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogIiIsICJlbmFibGVkIjogdHJ1ZSwgImlkIjogIjEzMjc2NWNhNTU5MjRmN2FiY2ZlMzczZWVjNzRmOTVlIiwgIm5hbWUiOiAiYWRtaW4ifX0sICJzZXJ2aWNlQ2F0YWxvZyI6IFt7ImVuZHBvaW50cyI6IFt7ImFkbWluVVJMIjogImh0dHA6Ly9sb2NhbGhvc3Q6MzUzNTcvdjMiLCAicmVnaW9uIjogbnVsbCwgImludGVybmFsVVJMIjogImh0dHA6Ly9sb2NhbGhvc3Q6MzUzNTcvdjMiLCAiaWQiOiAiN2Y5MmNmNGFkYzlmNDU0Y2I1YTA1MDcwMWI4ZGUxNjMiLCAicHVibGljVVJMIjogImh0dHA6Ly9sb2NhbGhvc3Q6MzUzNTcvdjMifV0sICJlbmRwb2ludHNfbGlua3MiOiBbXSwgInR5cGUiOiAiaWRlbnRpdHkiLCAibmFtZSI6ICJrZXlzdG9uZSJ9XSwgInVzZXIiOiB7InVzZXJuYW1lIjogImFkbWluIiwgInJvbGVzX2xpbmtzIjogW10sICJpZCI6ICJhODRmYTM2MmU3ZDQ0MjM3YTE5NTgzODMyMDM3NjU3NCIsICJyb2xlcyI6IFt7Im5hbWUiOiAiYWRtaW4ifV0sICJuYW1lIjogImFkbWluIn0sICJtZXRhZGF0YSI6IHsiaXNfYWRtaW4iOiAwLCAicm9sZXMiOiBbIjA0ZDllMDFiODMyMzQzODI5NDFhMDFiY2Y1ZjYwNTNkIl19fX0xggGBMIIBfQIBATBcMFcxCzAJBgNVBAYTAlVTMQ4wDAYDVQQIEwVVbnNldDEOMAwGA1UEBxMFVW5zZXQxDjAMBgNVBAoTBVVuc2V0MRgwFgYDVQQDEw93d3cuZXhhbXBsZS5jb20CAQEwBwYFKw4DAhowDQYJKoZIhvcNAQEBBQAEggEAvc7mcgDDoOqALbdioyXnvjDMdE6L-zRoU0+T2Zu6gnc2Yr6FwG9+T-1593pYgi8uaGfjIVgyyMlTppcSr3+UQT2A7Ipx04u48Hb9k0wdytgHhtB9Wa6TaTdoe7JSV6a5eeLKct7iua4HBQ7vG+JV43XZtZ-NCWKks6tiDi1NSRnbwYmQxt3G1UApsAFBXSzQQJeuDCa2Q6kSTu7USrqqhJxild70uxjOz5pc8bLH+tc4UYeOPIHBo-7nD+meLy59lCxHZ-hmq058xDroo2fi3BLRtt7sV+8L0dxtYCTfJ-GZyTJcqKGNJc4pm-Cs6+vuVobpyOlmcA0MQZ6Hc7z7dQ==", "tenant": {"description": "", "enabled": true, "id": "132765ca55924f7abcfe373eec74f95e", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://localhost:35357/v3", "region": null, "internalURL": "http://localhost:35357/v3", "id": "7f92cf4adc9f454cb5a050701b8de163", "publicURL": "http://localhost:35357/v3"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "a84fa362e7d44237a195838320376574", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["04d9e01b83234382941a01bcf5f6053d"]}}}, "user": {"enabled": true, "name": "admin", "id": "a84fa362e7d44237a195838320376574"}, "key": "MIIEmAYJKoZIhvcNAQcCoIIEiTCCBIUCAQExCTAHBgUrDgMCGjCCAu4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wGA1UEBxMFVW5zZXQxDjAMBgNVBAoTBVVuc2V0MRgwFgYDVQQDEw93d3cuZXhhbXBsZS5jb20CAQEwBwYFKw4DAhowDQYJKoZIhvcNAQEBBQAEggEAvc7mcgDDoOqALbdioyXnvjDMdE6L-zRoU0+T2Zu6gnc2Yr6FwG9+T-1593pYgi8uaGfjIVgyyMlTppcSr3+UQT2A7Ipx04u48Hb9k0wdytgHhtB9Wa6TaTdoe7JSV6a5eeLKct7iua4HBQ7vG+JV43XZtZ-NCWKks6tiDi1NSRnbwYmQxt3G1UApsAFBXSzQQJeuDCa2Q6kSTu7USrqqhJxild70uxjOz5pc8bLH+tc4UYeOPIHBo-7nD+meLy59lCxHZ-hmq058xDroo2fi3BLRtt7sV+8L0dxtYCTfJ-GZyTJcqKGNJc4pm-Cs6+vuVobpyOlmcA0MQZ6Hc7z7dQ==", "id": "536c59f94abac8f1b5b21bc028ccce92", "trust_id": null, "metadata": {"roles": ["04d9e01b83234382941a01bcf5f6053d"]}}]}
stable/grizzly + kvs
{"revoked": [{"expires": "2013-08-13T15:29:02Z", "id": "MIIEFQYJKoZIhvcNAQcCoIIEBjCCBAICAQExCTAHBgUrDgMCGjCCAu4GCSqGSIb3DQEHAaCCAt8EggLbeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0wOC0xMlQxNToyOTowMi4xMTIxNTkiLCAiZXhwaXJlcyI6ICIyMDEzLTA4LTEzVDE1OjI5OjAyWiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogIiIsICJlbmFibGVkIjogdHJ1ZSwgImlkIjogImU0MzA4OGNmZGZiNDQ5MGNiZTVlNzVjMDczZDcyODc1IiwgIm5hbWUiOiAiYWRtaW4ifX0sICJzZXJ2aWNlQ2F0YWxvZyI6IFt7ImVuZHBvaW50cyI6IFt7ImFkbWluVVJMIjogImh0dHA6Ly9sb2NhbGhvc3Q6MzUzNTcvdjMiLCAicmVnaW9uIjogbnVsbCwgImludGVybmFsVVJMIjogImh0dHA6Ly9sb2NhbGhvc3Q6MzUzNTcvdjMiLCAiaWQiOiAiNjFjYzg5MmQzMmIyNDI4N2EwYjVjODVhZTIxYWM2MDAiLCAicHVibGljVVJMIjogImh0dHA6Ly9sb2NhbGhvc3Q6MzUzNTcvdjMifV0sICJlbmRwb2ludHNfbGlua3MiOiBbXSwgInR5cGUiOiAiaWRlbnRpdHkiLCAibmFtZSI6ICJrZXlzdG9uZSJ9XSwgInVzZXIiOiB7InVzZXJuYW1lIjogImFkbWluIiwgInJvbGVzX2xpbmtzIjogW10sICJpZCI6ICIzOTMyYzFiZTM5ZDg0NWM0ODFiZDZlYmUwYTRlNWFhZCIsICJyb2xlcyI6IFt7Im5hbWUiOiAiYWRtaW4ifV0sICJuYW1lIjogImFkbWluIn0sICJtZXRhZGF0YSI6IHsiaXNfYWRtaW4iOiAwLCAicm9sZXMiOiBbImYxZTE3NmM0ZDQ4YjRlYTg4YWU5YmY2NTRlNmI4NzE0Il19fX0xgf8wgfwCAQEwXDBXMQswCQYDVQQGEwJVUzEOMAwGA1UECBMFVW5zZXQxDjAMBgNVBAcTBVVuc2V0MQ4wDAYDVQQKEwVVbnNldDEYMBYGA1UEAxMPd3d3LmV4YW1wbGUuY29tAgEBMAcGBSsOAwIaMA0GCSqGSIb3DQEBAQUABIGAn20rgWSXit3UClQdG3JZmEsJMMbv5PYaSPpF62YCNQY--scGuOPlIHnK5m8lJJLa8iyeiRrCXdluJ9VUs3hy69HGf8ZmHAy+FnT0tw3AiCp0hSL22O3npkdTXXZEjIzv4W9QHgQojXhv5j9X-1FdRRG8a6-4hML5GJKLSmyA6Gg="}]}
stable/grizzly + memcache
{"revoked": [{"tenant": {"enabled": true, "id": "408950eeb15049088e3b3c1e638e39a3", "name": "admin", "description": ""}, "user_id": "bafe07c7de694932b8547ce7bc134df2", "expires": "2013-08-13T15:30:06.596748", "user": {"enabled": true, "name": "admin", "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Rwb2ludHNfbGlua3MiOiBbXSwgInR5cGUiOiAiaWRlbnRpdHkiLCAibmFtZSI6ICJrZXlzdG9uZSJ9XSwgInVzZXIiOiB7InVzZXJuYW1lIjogImFkbWluIiwgInJvbGVzX2xpbmtzIjogW10sICJpZCI6ICJiYWZlMDdjN2RlNjk0OTMyYjg1NDdjZTdiYzEzNGRmMiIsICJyb2xlcyI6IFt7Im5hbWUiOiAiYWRtaW4ifV0sICJuYW1lIjogImFkbWluIn0sICJtZXRhZGF0YSI6IHsiaXNfYWRtaW4iOiAwLCAicm9sZXMiOiBbIjNiMmM5YzYzMzBkODRkYTk4ZDI1MGY3ZWI3YjlmMmEwIl19fX0xgf8wgfwCAQEwXDBXMQswCQYDVQQGEwJVUzEOMAwGA1UECBMFVW5zZXQxDjAMBgNVBAcTBVVuc2V0MQ4wDAYDVQQKEwVVbnNldDEYMBYGA1UEAxMPd3d3LmV4YW1wbGUuY29tAgEBMAcGBSsOAwIaMA0GCSqGSIb3DQEBAQUABIGAKnDbvklShDhALcibnhiQ0u343uqIa45Hfq+xxQWNH4ZtzeyTmOtZtMPUz+va8mRM4qVRC8L19zjJEqL8Bm52YHzh1xb1CecaH7uxaxS-ZubrC+bPCmZ3M2Snb9b08L9JMTLHbpSZ44KaCWZCJKOOnhkaITdEVCKGkZGfLwcuRXI=", "trust_id": null, "metadata": {"roles": ["3b2c9c6330d84da98d250f7eb7b9f2a0"]}}]}
stable/grizzly + sql
{"revoked": [{"expires": "2013-08-13T15:30:55Z", "id": "dde516fdba6d33af74edbeb1732c9c1b"}]}
stable/folsom + kvs
{"revoked": [{"expires": "2013-08-13T15:53:48Z", "id": "MIIC4wYJKoZIhvcNAQcCoIIC1DCCAtACAQExCTAHBgUrDgMCGjCCAbwGCSqGSIb3DQEHAaCCAa0EggGpeyJhY2Nlc3MiOiB7InRva2VuIjogeyJleHBpcmVzIjogIjIwMTMtMDgtMTNUMTU6NTM6NDhaIiwgImlkIjogInBsYWNlaG9sZGVyIiwgInRlbmFudCI6IHsiZW5hYmxlZCI6IHRydWUsICJkZXNjcmlwdGlvbiI6IG51bGwsICJuYW1lIjogImFkbWluIiwgImlkIjogIjcxYzExYmE5NDIzZTQwYjQ4YmRmZmI4ZTY0OWQ0MDEyIn19LCAic2VydmljZUNhdGFsb2ciOiBbXSwgInVzZXIiOiB7InVzZXJuYW1lIjogImFkbWluIiwgInJvbGVzX2xpbmtzIjogW10sICJpZCI6ICI4NTk3Mzk5NGMyYzE0NmQwYmJjMTk4NDlhNjcxMGM0NCIsICJyb2xlcyI6IFt7Im5hbWUiOiAiYWRtaW4ifV0sICJuYW1lIjogImFkbWluIn0sICJtZXRhZGF0YSI6IHsiaXNfYWRtaW4iOiAwLCAicm9sZXMiOiBbImU2YjA4NDk0ZjUxZTRmOTI4ZDM1MTQzODA5Y2NlZGVkIl19fX0xgf8wgfwCAQEwXDBXMQswCQYDVQQGEwJVUzEOMAwGA1UECBMFVW5zZXQxDjAMBgNVBAcTBVVuc2V0MQ4wDAYDVQQKEwVVbnNldDEYMBYGA1UEAxMPd3d3LmV4YW1wbGUuY29tAgEBMAcGBSsOAwIaMA0GCSqGSIb3DQEBAQUABIGAtWqkO6Jgeq1hjMVLWbAguJQui9WmwyvzowTLsdh1j-nyXVDPiNUS7IQq4T3UkZU6gP9d5Upep+PzBzLU3sZOqYbNtVJ7krSnylZboln9uwMb5P7I1eajFudD6joxY4Voz4M7ff0vlMCYm9LD+3voF7V93yB7aGDQoZjp1ZS8VrI="}]}
stable/folsom + memcache
attempting to revoke a token raises 500: MemcachedKeyLengthError: Key length is > 250
stable/folsom + sql
{"revoked": [{"expires": "2013-08-13T15:58:30Z", "id": "bc6ce9c5ee8a5a4d1d6e3c8f97bf98d7"}, {"expires": "2013-08-13T15:58:55Z", "id": "9119f26e432e029d3f2092cefc19007e"}]}
import hashlib
import json
import requests
from keystoneclient.common import cms
from keystoneclient.v2_0 import client
CWD = '/Users/dolph/Projects/keystone/'
SIGNING_CERT_FILE_NAME = CWD + 'etc/keystone/ssl/certs/signing_cert.pem'
CA_FILE_NAME = CWD + 'etc/keystone/ssl/certs/ca.pem'
c1 = client.Client(
username='admin',
password='secrete',
tenant_name='admin',
auth_url='http://localhost:5000/v2.0/')
c2 = client.Client(
username='admin',
password='secrete',
tenant_name='admin',
auth_url='http://localhost:5000/v2.0/')
r = requests.delete(
'http://localhost:35357/v2.0/tokens/%s' % c2.auth_token,
headers={'X-Auth-Token': c1.auth_token})
assert r.status_code == 204, r.status_code
hashed = hashlib.md5(c2.auth_token).hexdigest()
print 'hashed:', hashed
r = requests.get(
'http://localhost:35357/v2.0/tokens/revoked',
headers={'X-Auth-Token': 'ADMIN'})
assert r.status_code == 200, r.status_code
signed_msg = r.json()['signed']
msg = cms.cms_verify(signed_msg, SIGNING_CERT_FILE_NAME, CA_FILE_NAME)
print msg
revocation_list = json.loads(msg)['revoked']
revoked_ids = [x['id'] for x in revocation_list]
assert hashed in revoked_ids
#!/bin/bash
rm -rf keystone.db
./bin/keystone-manage db_sync
rm -rf etc/keystone/
./bin/keystone-manage pki_setup
echo start keystone-all...
read
keystone-workout bootstrap
unset OS_SERVICE_TOKEN
unset OS_SERVICE_ENDPOINT
python repro_1202952.py
cat etc/keystone.conf | grep driver | grep token
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.