You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(boto3): Gate user identifying resource id behind user_info - #7970
Currently SNS extension sets cloud.resource_id/ cloud.account_id from EndpointArn, PlatformApplicationArn, SubscriptionArn, TargetArn or TopicArn; but some of these can expose PII:
File:tests.integrations.django.test_cache_module Suite:py3.14-django-v5.2.17 Error: tests/integrations/django/test_cache_module.py:307: in test_cache_spans_decorator
assert not spans[0]["attributes"]["cache.hit"]
E assert not True
Stack Trace
tests/integrations/django/test_cache_module.py:307: in test_cache_spans_decorator
assert not spans[0]["attributes"]["cache.hit"]
E assert not True
File:tests.integrations.django.asgi.test_asgi Suite:py3.7-django-v3.2.25 Error: .tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/testing.py:74: in receive_output
return await self.output_queue.get()
/usr/local/lib/python3.7/asyncio/queues.py:159: in get
await getter
E concurrent.futures._base.CancelledError
During handling of the above exception, another exception occurred:
tests/integrations/django/asgi/test_asgi.py:896: in test_user_identity_error_event_data_collection
await comm.get_response()
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/channels/testing/http.py:42: in get_response
response_start = await self.receive_output(timeout)
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/testing.py:85: in receive_output
raise e
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/testing.py:74: in receive_output
return await self.output_queue.get()
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/timeout.py:71: in aexit
self._do_exit(exc_type)
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/timeout.py:108: in _do_exit
raise asyncio.TimeoutError
E concurrent.futures._base.TimeoutError
Stack Trace
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/testing.py:74: in receive_output
return await self.output_queue.get()
/usr/local/lib/python3.7/asyncio/queues.py:159: in get
await getter
E concurrent.futures._base.CancelledError
During handling of the above exception, another exception occurred:
tests/integrations/django/asgi/test_asgi.py:896: in test_user_identity_error_event_data_collection
await comm.get_response()
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/channels/testing/http.py:42: in get_response
response_start = await self.receive_output(timeout)
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/testing.py:85: in receive_output
raise e
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/testing.py:74: in receive_output
return await self.output_queue.get()
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/timeout.py:71: in __aexit__
self._do_exit(exc_type)
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/timeout.py:108: in _do_exit
raise asyncio.TimeoutError
E concurrent.futures._base.TimeoutError
File:tests.integrations.django.asgi.test_asgi Suite:py3.7-django-v3.2.25 Error: .tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/testing.py:74: in receive_output
return await self.output_queue.get()
/usr/local/lib/python3.7/asyncio/queues.py:159: in get
await getter
E concurrent.futures._base.CancelledError
During handling of the above exception, another exception occurred:
tests/integrations/django/asgi/test_asgi.py:896: in test_user_identity_error_event_data_collection
await comm.get_response()
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/channels/testing/http.py:42: in get_response
response_start = await self.receive_output(timeout)
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/testing.py:85: in receive_output
raise e
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/testing.py:74: in receive_output
return await self.output_queue.get()
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/timeout.py:71: in aexit
self._do_exit(exc_type)
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/timeout.py:108: in _do_exit
raise asyncio.TimeoutError
E concurrent.futures._base.TimeoutError
Stack Trace
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/testing.py:74: in receive_output
return await self.output_queue.get()
/usr/local/lib/python3.7/asyncio/queues.py:159: in get
await getter
E concurrent.futures._base.CancelledError
During handling of the above exception, another exception occurred:
tests/integrations/django/asgi/test_asgi.py:896: in test_user_identity_error_event_data_collection
await comm.get_response()
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/channels/testing/http.py:42: in get_response
response_start = await self.receive_output(timeout)
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/testing.py:85: in receive_output
raise e
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/testing.py:74: in receive_output
return await self.output_queue.get()
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/timeout.py:71: in __aexit__
self._do_exit(exc_type)
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/timeout.py:108: in _do_exit
raise asyncio.TimeoutError
E concurrent.futures._base.TimeoutError
File:tests.integrations.django.asgi.test_asgi Suite:py3.7-django-v3.2.25 Error: .tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/testing.py:74: in receive_output
return await self.output_queue.get()
/usr/local/lib/python3.7/asyncio/queues.py:159: in get
await getter
E concurrent.futures._base.CancelledError
During handling of the above exception, another exception occurred:
tests/integrations/django/asgi/test_asgi.py:896: in test_user_identity_error_event_data_collection
await comm.get_response()
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/channels/testing/http.py:42: in get_response
response_start = await self.receive_output(timeout)
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/testing.py:85: in receive_output
raise e
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/testing.py:74: in receive_output
return await self.output_queue.get()
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/timeout.py:71: in aexit
self._do_exit(exc_type)
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/timeout.py:108: in _do_exit
raise asyncio.TimeoutError
E concurrent.futures._base.TimeoutError
Stack Trace
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/testing.py:74: in receive_output
return await self.output_queue.get()
/usr/local/lib/python3.7/asyncio/queues.py:159: in get
await getter
E concurrent.futures._base.CancelledError
During handling of the above exception, another exception occurred:
tests/integrations/django/asgi/test_asgi.py:896: in test_user_identity_error_event_data_collection
await comm.get_response()
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/channels/testing/http.py:42: in get_response
response_start = await self.receive_output(timeout)
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/testing.py:85: in receive_output
raise e
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/testing.py:74: in receive_output
return await self.output_queue.get()
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/timeout.py:71: in __aexit__
self._do_exit(exc_type)
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/timeout.py:108: in _do_exit
raise asyncio.TimeoutError
E concurrent.futures._base.TimeoutError
File:tests.integrations.django.asgi.test_asgi Suite:py3.7-django-v3.2.25 Error: .tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/testing.py:74: in receive_output
return await self.output_queue.get()
/usr/local/lib/python3.7/asyncio/queues.py:159: in get
await getter
E concurrent.futures._base.CancelledError
During handling of the above exception, another exception occurred:
tests/integrations/django/asgi/test_asgi.py:896: in test_user_identity_error_event_data_collection
await comm.get_response()
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/channels/testing/http.py:42: in get_response
response_start = await self.receive_output(timeout)
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/testing.py:85: in receive_output
raise e
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/testing.py:74: in receive_output
return await self.output_queue.get()
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/timeout.py:71: in aexit
self._do_exit(exc_type)
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/timeout.py:108: in _do_exit
raise asyncio.TimeoutError
E concurrent.futures._base.TimeoutError
Stack Trace
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/testing.py:74: in receive_output
return await self.output_queue.get()
/usr/local/lib/python3.7/asyncio/queues.py:159: in get
await getter
E concurrent.futures._base.CancelledError
During handling of the above exception, another exception occurred:
tests/integrations/django/asgi/test_asgi.py:896: in test_user_identity_error_event_data_collection
await comm.get_response()
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/channels/testing/http.py:42: in get_response
response_start = await self.receive_output(timeout)
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/testing.py:85: in receive_output
raise e
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/testing.py:74: in receive_output
return await self.output_queue.get()
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/timeout.py:71: in __aexit__
self._do_exit(exc_type)
.tox/py3.7-django-v3.2.25/lib/python3.7/site-packages/asgiref/timeout.py:108: in _do_exit
raise asyncio.TimeoutError
E concurrent.futures._base.TimeoutError
✅ Patch coverage is 100.00%. Project has 2064 uncovered lines.
❌ Project coverage is 90.13%. Comparing base (888b3d3) to head (99de60f).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Currently SNS extension sets
cloud.resource_id/cloud.account_idfromEndpointArn,PlatformApplicationArn,SubscriptionArn,TargetArnorTopicArn; but some of these can expose PII:EndpointArn/TargetArn(…:endpoint/GCM/myapp/<id>) point to a device's push token (https://docs.aws.amazon.com/sns/latest/dg/mobile-platform-endpoint.html + https://docs.aws.amazon.com/sns/latest/api/API_Publish.html)SubscriptionArn(…:orders:<id>) points to one subscriber, e.g. email or phone number (https://docs.aws.amazon.com/sns/latest/api/API_Subscribe.html)Issues
Resolves #7969