Skip to content

Commit

Permalink
drop authz and entities services
Browse files Browse the repository at this point in the history
Authz and Entities servicers pre-date ReBAC implementation
(#73) and currently it's just a
wrapper around Relations service. Since having multiple services to
access the same data can be confusing and misleading, aim is to focus
purely on the Relations service going forward.
  • Loading branch information
uatuko committed Nov 28, 2024
1 parent cd8cc47 commit 7e12c2a
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 1,165 deletions.
16 changes: 0 additions & 16 deletions proto/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
# ruek/api/v1/**/*.proto
cmake_path(SET authz_proto ${CMAKE_CURRENT_SOURCE_DIR}/ruek/api/v1/authz.proto)
cmake_path(SET authz_grpcxx_header ${CMAKE_CURRENT_BINARY_DIR}/ruek/api/v1/authz.grpcxx.pb.h)
cmake_path(SET authz_header ${CMAKE_CURRENT_BINARY_DIR}/ruek/api/v1/authz.pb.h)
cmake_path(SET authz_source ${CMAKE_CURRENT_BINARY_DIR}/ruek/api/v1/authz.pb.cc)

cmake_path(SET principals_proto ${CMAKE_CURRENT_SOURCE_DIR}/ruek/api/v1/principals.proto)
cmake_path(SET principals_grpcxx_header ${CMAKE_CURRENT_BINARY_DIR}/ruek/api/v1/principals.grpcxx.pb.h)
cmake_path(SET principals_header ${CMAKE_CURRENT_BINARY_DIR}/ruek/api/v1/principals.pb.h)
Expand All @@ -14,30 +9,19 @@ cmake_path(SET relations_grpcxx_header ${CMAKE_CURRENT_BINARY_DIR}/ruek/api/v1/r
cmake_path(SET relations_header ${CMAKE_CURRENT_BINARY_DIR}/ruek/api/v1/relations.pb.h)
cmake_path(SET relations_source ${CMAKE_CURRENT_BINARY_DIR}/ruek/api/v1/relations.pb.cc)

cmake_path(SET entities_proto ${CMAKE_CURRENT_SOURCE_DIR}/ruek/api/v1/entities.proto)
cmake_path(SET entities_grpcxx_header ${CMAKE_CURRENT_BINARY_DIR}/ruek/api/v1/entities.grpcxx.pb.h)
cmake_path(SET entities_header ${CMAKE_CURRENT_BINARY_DIR}/ruek/api/v1/entities.pb.h)
cmake_path(SET entities_source ${CMAKE_CURRENT_BINARY_DIR}/ruek/api/v1/entities.pb.cc)

set(protos
${authz_proto}
${principals_proto}
${relations_proto}
${entities_proto}
)

set(headers
${authz_header} ${authz_grpcxx_header}
${principals_header} ${principals_grpcxx_header}
${relations_header} ${relations_grpcxx_header}
${entities_header} ${entities_grpcxx_header}
)

set(sources
${authz_source}
${principals_source}
${relations_source}
${entities_source}
)

add_custom_command(
Expand Down
41 changes: 0 additions & 41 deletions proto/ruek/api/v1/authz.proto

This file was deleted.

51 changes: 0 additions & 51 deletions proto/ruek/api/v1/entities.proto

This file was deleted.

6 changes: 0 additions & 6 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@ int main(int argc, char *argv[]) {

grpcxx::server server;

svc::Authz a;
server.add(a.service());

svc::Entities e;
server.add(e.service());

svc::Principals p;
server.add(p.service());

Expand Down
6 changes: 0 additions & 6 deletions src/svc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
add_library(svc)
target_sources(svc
PRIVATE
authz.cpp
entities.cpp
principals.cpp
relations.cpp
PUBLIC
FILE_SET headers TYPE HEADERS
FILES
authz.h
entities.h
principals.h
relations.h
svc.h
Expand Down Expand Up @@ -42,8 +38,6 @@ if (RUEK_BUILD_TESTING)
add_executable(svc_tests)
target_sources(svc_tests
PRIVATE
authz_test.cpp
entities_test.cpp
principals_test.cpp
relations_test.cpp
)
Expand Down
120 changes: 0 additions & 120 deletions src/svc/authz.cpp

This file was deleted.

39 changes: 0 additions & 39 deletions src/svc/authz.h

This file was deleted.

Loading

0 comments on commit 7e12c2a

Please sign in to comment.