Adam C. Emerson
80b285d329
rgw: Write documentation for bucket policies
...
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2017-05-17 14:22:18 -04:00
Adam C. Emerson
b7d0b740c0
rgw: RESTful bucket policy ops
...
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2017-05-17 14:22:18 -04:00
Adam C. Emerson
266103fa22
rgw: Verify policies as WELL as ACLs
...
Only hook into object/bucket checks for now. Once we have STS (giving
us Roles) or User/Group policies it will make sense to hook into
those, too.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2017-05-17 14:22:18 -04:00
Adam C. Emerson
908d9e46d2
rgw: Build bucket permission and environment in req_state
...
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2017-05-17 14:22:18 -04:00
Adam C. Emerson
69a5eebd8a
rgw: Add basic support for IAM policies
...
This support is currently incomplete but should provide a starting
point.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2017-05-17 14:22:18 -04:00
Adam C. Emerson
8416f1c569
buffer: Make the use of static areas more convenient
...
Make three wrapper functions to tidy up the process of making a
bufferlist holding a single static buffer.
The lack of any decent handling of const in buffer::list makes me wax
wroth, but it's a bit much to fix right now.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2017-05-17 14:22:18 -04:00
Adam C. Emerson
9e8172b840
rgw: Move globbing flags to header
...
So they can be used when calling the function
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2017-05-17 14:22:18 -04:00
Adam C. Emerson
56167d19f8
rgw: Add is_identity to AuthApplier class
...
Eventually this will allow us to match all authentication information
against all specified principals in a policy.
Right now it handles users and wildcards.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2017-05-17 14:22:18 -04:00
Adam C. Emerson
7cd1ccf422
common: Add ISO-8601 Date Support
...
For parsing and unparsing from ceph::real_time.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2017-05-17 14:22:15 -04:00
Adam C. Emerson
c3f2447c80
submodule: Tencent's RapidJSON library
...
This is a high performance, MIT licensed JSON parsing library. It
provides a SAX interface so that I can compile an S3 policy without
building up a JSONObject tree in the middle that gets thrown away.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2017-05-17 12:26:39 -04:00
Adam C. Emerson
64acb16354
common: Add make_unique
...
There are parts of C++14 that are both useful and easy to
implement. This is one of them.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2017-05-17 12:26:39 -04:00
Sage Weil
752b8389da
Merge pull request #13731 from liewegas/wip-19119
...
PendingReleaseNotes: warning about 'osd rm ...' and #19119
2017-05-17 10:43:18 -05:00
Sage Weil
3c6755e036
PendingReleaseNotes: warning about 'osd rm ...' and #19119
...
See http://tracker.ceph.com/issues/19119
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-17 11:42:55 -04:00
Sage Weil
c94645567b
Merge pull request #14873 from liewegas/wip-bluefs-position
...
os/bluestore: put bluefs in the middle of the shared device
Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
2017-05-17 10:29:52 -05:00
Sage Weil
55c47ef6e1
Merge pull request #14902 from liewegas/wip-upmap
...
osd/OSDMap: improve upmap calculation
Reviewed-by: Loic Dachary <loic@dachary.org>
2017-05-17 10:29:28 -05:00
Sage Weil
35834a308e
Merge pull request #14933 from liewegas/wip-asok-schema
...
common/perf_counters: make schema more friendly and update docs
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
2017-05-17 10:29:09 -05:00
Sage Weil
16cce5a56b
Merge pull request #14967 from tchaikov/wip-faster-cull
...
mgr: optimize DaemonStateIndex::cull() a little bit
Reviewed-by: John Spray <john.spray@redhat.com>
2017-05-17 10:28:49 -05:00
Sage Weil
81bd3025d1
Merge pull request #15002 from dachary/wip-19836-crush-pre-luminous
...
crush: encode can override weights with weight set
Reviewed-by: Sage Weil <sage@redhat.com>
2017-05-17 10:26:06 -05:00
Sage Weil
9a06fdbffe
Merge pull request #15031 from tchaikov/wip-drop-unused-opts
...
config_opts: drop unused opts
Reviewed-by: Sage Weil <sage@redhat.com>
2017-05-17 10:25:25 -05:00
Sage Weil
570f576468
Merge pull request #15043 from tchaikov/wip-19884
...
ceph-detect-init: detect init system by poking the system
Reviewed-by: Loic Dachary <ldachary@redhat.com>
2017-05-17 10:24:50 -05:00
Sage Weil
0260a52631
Merge pull request #15059 from liewegas/wip-mon-kvtype
...
mon: fix mon_keyvaluedb application
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-17 10:24:19 -05:00
John Wilkins
3b943b49e8
Merge pull request #15032 from tchaikov/wip-doc-opts
...
doc: add descriptions for mon/mgr options
Reviewed-by: John Wilkins <jowilkin@redhat.com>
2017-05-17 08:04:29 -07:00
John Spray
618b9b3f3f
Merge pull request #15127 from tchaikov/wip-vstart-mgr-debug-ms
...
vstart: "debug_ms=1" for mgr by default
Reviewed-by: John Spray <john.spray@redhat.com>
2017-05-17 12:18:15 +01:00
Kefu Chai
fab6fc15e1
Merge pull request #15103 from drunkard/master
...
doc: minor fixes in radosgw/
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-17 17:00:56 +08:00
Kefu Chai
ae8eee2fde
Merge pull request #15080 from hikycool/master
...
doc: update the usage of 'ceph-deploy purge'
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-17 16:54:42 +08:00
Kefu Chai
a6daa84d1a
vstart: "debug_ms=1" for mgr by default
...
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-05-17 10:31:46 +08:00
Yuri Weinstein
26df056e34
Merge pull request #15087 from liewegas/wip-thrash-ec
...
qa/suites/rados: fix ec thrashing
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-05-16 13:20:34 -07:00
Yuri Weinstein
07ac91d4b9
Merge pull request #15072 from liewegas/wip-crush-swap-bucket
...
mon,crush: add 'osd crush swap-bucket' command
Reviewed-by: Loic Dachary <loic@dachary.org>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-16 13:19:59 -07:00
Yuri Weinstein
9187156b55
Merge pull request #15069 from tchaikov/wip-inttypes-cleanup
...
int_types.h: remove hacks to workaround old systems
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
2017-05-16 13:18:23 -07:00
Yuri Weinstein
98827f4490
Merge pull request #15057 from liewegas/wip-osd-choose-cleanup
...
osd/PG: drop pre-firefly compat_mode for choose_*_acting
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: David Zafman <dzafman@redhat.com>
2017-05-16 13:17:37 -07:00
Yuri Weinstein
a49d9c5637
Merge pull request #15042 from badone/wip-redundant-headers-3
...
common: Remove redundant includes
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-16 13:16:43 -07:00
Yuri Weinstein
0e03291cf6
Merge pull request #14989 from liewegas/wip-19877
...
osd: fix past_intervals base case by adding epoch_pool_created to pg_history_t
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-05-16 13:13:36 -07:00
Jason Dillaman
38ba53d076
Merge pull request #15113 from trociny/wip-unittest_librbd-cleanup
...
test/librbd: unit tests cleanup
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-05-16 14:05:38 -04:00
Mykola Golub
dbde7af146
Merge pull request #15093 from dillaman/wip-19929
...
librbd: reacquire lock should update lock owner client id
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-05-16 19:40:38 +03:00
Casey Bodley
978f1d3abb
Merge pull request #10690 from ceph/wip-rgw-polymorphic-errors
...
rgw: polymorphic error codes
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-05-16 11:54:27 -04:00
John Spray
60f904615f
Merge pull request #15096 from jcsp/wip-journalrepair-test
...
qa: simplify TestJournalRepair
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2017-05-16 16:11:57 +01:00
Sage Weil
225bc60092
Merge pull request #15110 from tchaikov/wip-build-using-cmake
...
doc: use do_cmake.sh instead of `cmake ..`
Reviewed-by: Sage Weil <sage@redhat.com>
2017-05-16 09:20:50 -05:00
Kefu Chai
e7d1d877dd
Merge pull request #15023 from tchaikov/wip-cmdparse-constness
...
cmdparse: more constness
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-05-16 22:19:40 +08:00
Sage Weil
035c398487
Merge pull request #15112 from jcsp/wip-19940
...
ceph-create-keys: update client.admin if it already exists
Reviewed-by: Sage Weil <sage@redhat.com>
2017-05-16 08:43:18 -05:00
Matt Benjamin
fc286d6115
Merge pull request #15097 from linuxbox2/wip-rgwfile-write3
...
rgw_file: v3: fix write-timer action
2017-05-16 09:07:09 -04:00
Mykola Golub
c0c644333b
test/librbd: make unit tests pass when cache is disabled
...
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2017-05-16 14:39:41 +02:00
Mykola Golub
c065cbdb20
test/librbd: TestMockImageRemoveRequest gmock warnings
...
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2017-05-16 14:39:37 +02:00
Drunkard Zhang
63855e381e
doc: add hyperlink on ACL settings
...
The link listed at bottom but never used, I think it's missed by author.
Signed-off-by: Drunkard Zhang <gongfan193@gmail.com>
2017-05-16 20:32:29 +08:00
John Spray
82332b7a3b
ceph-create-keys: update client.admin if it already exists
...
This means that anyone who de-privileges their client.admin
user will find that it gets resets with full privileges again.
This is necessary because we cannot distinguish between an old
key and a deliberately de-privileged key, and it's okay because
this is the admin key, it's meant to have access to everything.
Fixes: http://tracker.ceph.com/issues/19940
Signed-off-by: John Spray <john.spray@redhat.com>
2017-05-16 13:28:48 +01:00
Drunkard Zhang
0f811b3d5d
doc: typo fixes in doc/radosgw/multisite
...
Signed-off-by: Drunkard Zhang <gongfan193@gmail.com>
2017-05-16 20:20:49 +08:00
Kefu Chai
ba6e5e8d68
doc: use do_cmake.sh instead of cmake ..
...
user could be confused at seeing errors like:
src/CMakeLists.txt:644 (add_subdirectory): The source directory /src/lua
does not contain a CMakeLists.txt file.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-05-16 18:54:41 +08:00
John Spray
3155335c4c
Merge pull request #15094 from fullerdj/wip-djf-19893
...
qa/cephfs: Fix for test_data_scan
Reviewed-by: John Spray <john.spray@redhat.com>
2017-05-16 10:51:55 +01:00
John Spray
71e3a85368
Merge pull request #14938 from michaelsevilla/f19362
...
mds: add perf counters for file system operations
Reviewed-by: John Spray <john.spray@redhat.com>
2017-05-16 10:45:34 +01:00
John Spray
5efad43ec8
Merge pull request #15018 from ukernel/wip-19890
...
pybind: fix open flags calculation
Reviewed-by: John Spray <john.spray@redhat.com>
2017-05-16 10:15:03 +01:00
John Spray
ea4a165f17
Merge pull request #14769 from ukernel/wip-19755
...
osdc/Filer: truncate large file party by party
Reviewed-by: John Spray <john.spray@redhat.com>
2017-05-16 10:13:58 +01:00