]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rgw/rgw_crypt_sanitize.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab ft=cpp
7 #include "rgw_common.h"
10 namespace crypt_sanitize
{
13 * Temporary container for suppressing printing if variable contains secret key.
16 std::string_view name
;
17 std::string_view value
;
19 env(std::string_view name
, std::string_view value
)
20 : name(name
), value(value
) {}
24 * Temporary container for suppressing printing if aws meta attributes contains secret key.
27 std::string_view name
;
28 std::string_view value
;
29 x_meta_map(std::string_view name
, std::string_view value
)
30 : name(name
), value(value
) {}
34 * Temporary container for suppressing printing if s3_policy calculation variable contains secret key.
37 std::string_view name
;
38 std::string_view value
;
39 s3_policy(std::string_view name
, std::string_view value
)
40 : name(name
), value(value
) {}
44 * Temporary container for suppressing printing if auth string contains secret key.
47 const req_state
* const s
;
48 std::string_view value
;
49 auth(const req_state
* const s
, std::string_view value
)
50 : s(s
), value(value
) {}
54 * Temporary container for suppressing printing if log made from civetweb may contain secret key.
57 const std::string_view buf
;
58 explicit log_content(const std::string_view buf
)
62 std::ostream
& operator<<(std::ostream
& out
, const env
& e
);
63 std::ostream
& operator<<(std::ostream
& out
, const x_meta_map
& x
);
64 std::ostream
& operator<<(std::ostream
& out
, const s3_policy
& x
);
65 std::ostream
& operator<<(std::ostream
& out
, const auth
& x
);
66 std::ostream
& operator<<(std::ostream
& out
, const log_content
& x
);