Open TrevorBenson opened 2 weeks ago
@pmoravec @TurboTurtle Is sosreport
acceptable as the UserAgent label for uploads from both sos report
and sos collect
? Did I miss any UserAgent which might be preferred instead?
TIA
Good question. A safe default may just be sos
, to cover both use cases. Alternatively, we could just match it to the component, e.g. sos-report
and sos-collect
, if it would for any reason be desirable to not glob everything together.
Request
Set a custom UserAgent for S3 (boto3) so that sos report can be identified as the upload client for S3 buckets. This could be a string like
sos
,sosreport
, orsos-report
etc..Reason
Permits identifying sos report/collect as a specific UserAgent instead of generically reporting the same UseAgent any Python script using boto3 does. Custom policies can be defined on s3 buckets. One use of a policy could be a condition/requirement for the UserAgent string. Two potential use cases by using a custom UserAgent in a policy: