add_executable(ceph-monstore-tool
ceph_monstore_tool.cc
+ ../auth/cephx/CephxKeyServer.cc
../mgr/mgr_commands.cc)
target_link_libraries(ceph-monstore-tool os global Boost::program_options)
install(TARGETS ceph-monstore-tool DESTINATION bin)
inc.encode(bl, CEPH_FEATURES_ALL);
}
+ // prime rotating secrets
+ {
+ KeyServer ks(g_ceph_context, nullptr);
+ KeyServerData::Incremental auth_inc;
+ auth_inc.op = KeyServerData::AUTH_INC_SET_ROTATING;
+ bool r = ks.prepare_rotating_update(auth_inc.rotating_bl);
+ ceph_assert(r);
+ AuthMonitor::Incremental inc;
+ inc.inc_type = AuthMonitor::AUTH_DATA;
+ encode(auth_inc, inc.auth_data);
+ inc.auth_type = CEPH_AUTH_CEPHX;
+ inc.encode(bl, CEPH_FEATURES_ALL);
+ }
+
const string prefix("auth");
auto last_committed = st.get(prefix, "last_committed") + 1;
auto t = make_shared<MonitorDBStore::Transaction>();