Pawel Tetera 9e67409f33 Add --debug-with-secrets and truncate by default
Previously, data which may be considered sensitive
such as the X-Auth-Token or X-Storage-Token headers is hidden for
the --info option but not --debug.

This patch enables truncating of LOGGER_SENSITIVE_HEADERS by default for
--debug so that end users can share debug output more easily without
having to manually sanitize logs and adds unit tests for it.

A separate --debug-with-secrets option is provided should explicit
printing of auth tokens be desirable, mimicking the old behaviour.

--debug-insecure, suggested on launchpad naming was considered as well
however a --insecure param which skips SSL verification already exists
and does something else. The --with-secrets suffix should also help
make the purpose of this param explicit enough.

Closes-Bug: #2061011
Closes-Bug: #2061012
Change-Id: Ie64b0f496c016a5871de7ada84acb572c008d127
2025-03-27 10:11:54 +00:00
2014-03-25 11:36:39 +00:00
2023-03-21 13:07:04 -07:00
2022-01-12 10:19:50 +01:00
2018-07-13 11:24:24 -07:00
2018-11-05 09:52:03 +07:00
2019-04-19 19:32:30 +00:00
2024-02-27 09:14:44 -08:00
2024-04-29 15:30:55 -07:00
2024-08-27 10:59:03 -07:00
2024-08-27 10:59:03 -07:00
2012-05-08 16:30:13 +01:00
2013-05-01 12:23:12 -04:00
2022-03-21 18:31:10 +00:00
2022-03-16 15:06:19 -07:00
2022-03-16 15:06:19 -07:00
2024-02-27 08:50:27 -08:00

Team and repository tags

image

Python bindings to the OpenStack Object Storage API

Latest Version

This is a python client for the Swift API. There's a Python API (the swiftclient module), and a command-line script (swift).

Development takes place via the usual OpenStack processes as outlined in the OpenStack wiki.

This code is based on the original client previously included with OpenStack's Swift. The python-swiftclient is licensed under the Apache License like the rest of OpenStack.

Contents:

Description
OpenStack Storage (Swift) Client
Readme 14 MiB
Languages
Python 99.9%
Shell 0.1%