-
Notifications
You must be signed in to change notification settings - Fork 306
Added ACL feature #2190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Added ACL feature #2190
Conversation
|
@AlexBlueSteele Do you want to continue on this PR? If so, could you make sure that all the tests are passing locally? And then I can start reviewing the code ;) |
I will work on this. Thanks! |
|
|
I'm wondering if we need the acl_support setting? I believe that the other one is enough. WDYT? |
I think it's nice to have because some people might not care about ACLs when crawling on windows. It adds slight overhead in storage and performance. |
|
@dadoonet I updated the demo data above to reflect the ACL collection for the folder index as well. The final part that I think needs to be changed its the verbosity of the debug statements. I don't know how verbose you want it. Thoughts? |
dadoonet
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a great start and thank you so much for working on this.
Bonus point for writing some documentation ;)
Could you fix the issues I mentioned before?
Also, next steps would be IMO to add if possible an Integration Tests about this. May be in FsCrawlerTestAttributesIT?
Would that be possible for you?
Also did you run the code locally and does it do what you are expecting?
I'm still wondering if we really need another acl_support attribute or consider that we want want to collect all the available metadata on files and folders whenever we are asking for attributes...
core/src/main/java/fr/pilato/elasticsearch/crawler/fs/FsParserAbstract.java
Show resolved
Hide resolved
...ler-abstract/src/main/java/fr/pilato/elasticsearch/crawler/fs/crawler/FileAbstractModel.java
Outdated
Show resolved
Hide resolved
core/src/main/java/fr/pilato/elasticsearch/crawler/fs/FsParserAbstract.java
Show resolved
Hide resolved
beans/src/main/java/fr/pilato/elasticsearch/crawler/fs/beans/Folder.java
Outdated
Show resolved
Hide resolved
beans/src/main/java/fr/pilato/elasticsearch/crawler/fs/beans/Folder.java
Outdated
Show resolved
Hide resolved
framework/src/main/java/fr/pilato/elasticsearch/crawler/fs/framework/FsCrawlerUtil.java
Outdated
Show resolved
Hide resolved
framework/src/main/java/fr/pilato/elasticsearch/crawler/fs/framework/FsCrawlerUtil.java
Outdated
Show resolved
Hide resolved
framework/src/main/java/fr/pilato/elasticsearch/crawler/fs/framework/FsCrawlerUtil.java
Outdated
Show resolved
Hide resolved
framework/src/main/java/fr/pilato/elasticsearch/crawler/fs/framework/FsCrawlerUtil.java
Show resolved
Hide resolved
framework/src/test/java/fr/pilato/elasticsearch/crawler/fs/framework/FsCrawlerUtilTest.java
Outdated
Show resolved
Hide resolved
I will work on this as soon as I get the chance! Thanks for spending the time to CR!! |
|



Ticket: #2186
Test run output:
File index
Folder index
Note
Adds
fs.acl_supportto collect and index file/folder ACLs, updates mappings/templates, wiring, docs, and tests.FileAclandFsCrawlerUtil#getFileAcls(...); adds ACL extraction for local files.beans.Attributeswithaclandbeans.Folderwithattributes; propagate attributes/ACLs inFsParserAbstract.FileAbstractModelcarriesacls;FileAbstractorFilefills ACLs (FTP/SSH return empty lists).fs.acl_support(+ defaults, parsing, validation warning ifattributes_supportis false).fscrawler_mapping_attributeswithattributes.acl.{principal,type,permissions,flags}.acl_supportin admin guides (index.rst,local-fs.rst,rest.rst) with examples.FsCrawlerUtilTest,JsonUtilTest, settings loader/parser tests) and update sample configs.Written by Cursor Bugbot for commit b61843c. This will update automatically on new commits. Configure here.