Skip to content
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

Feature introduce visible by attribute #10

Merged
merged 4 commits into from
Dec 21, 2023

Conversation

marmoure
Copy link
Contributor

https://www.algolia.com/doc/guides/security/api-keys/how-to/user-restricted-access-to-data/
Following Algolia recommandation the visible_by attribute can be used to restrict data access
the indexer now has the option to add this attribute in collection.xconf

<collection xmlns="http://exist-db.org/collection-config/1.0">
    <index xmlns:r="http://raskovnik.org">
        <algolia>
            <namespaceMappings>
                <namespaceMapping>
                    <prefix>r</prefix>
                    <namespace>http://raskovnik.org</namespace>
                </namespaceMapping>
            </namespaceMappings>
            <index name="my-algolia-index-1" visibleBy="/path/to/unique-id/r:visibleBy">
               ...
            </index>
        </algolia>
    </index>
</collection>

@BCDH BCDH deleted a comment from marmoure Nov 9, 2023
@adamretter adamretter merged commit 193a0b3 into BCDH:master Dec 21, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants