-
Notifications
You must be signed in to change notification settings - Fork 810
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add file-based access permissions for SharePoint ingest (#1628)
This PR: - defines rbac_data as a SourceMetadata field, - manages connections to an external api for obtaining rbac data with ConnectorRBAC class, - serializes rbac data and saves it to the disk, - matches the rbac_data in the disk to each IngestDoc, using a common field, - forwards rbac data to Elements, via the partition() function To test the changes, run `examples/ingest/sharepoint/ingest.sh` with the relevant rbac & connector credentials --------- Co-authored-by: ryannikolaidis <[email protected]> Co-authored-by: ahmetmeleq <[email protected]>
- Loading branch information
1 parent
3ec3673
commit 94836cf
Showing
24 changed files
with
1,481 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Description: Delete (cleanup) permissions files in a folder, so that they are not included in | ||
# text diff tests. | ||
# | ||
# Arguments: | ||
# - $1: Name of the folder to do the cleanup operation in. | ||
|
||
set +e | ||
if [ "$#" -ne 1 ]; then | ||
echo "Please provide a folder to clean the files in: $0 <folder_path>" | ||
exit 1 | ||
fi | ||
|
||
folder_path="$1" | ||
if [ ! -d "$folder_path" ]; then | ||
echo "'$folder_path' is not a directory. Please provide a folder / directory." | ||
exit 1 | ||
fi | ||
|
||
for file in "$folder_path"/*_SEP_*; do | ||
if [ -e "$file" ]; then | ||
rm "$file" | ||
fi | ||
done | ||
|
||
echo "Completed cleanup for permissions files" |
Oops, something went wrong.