전역 범위의 관리자 API 키를 제공하지 않으면서도 데이터 탐색 쿼리에 대해 읽기 및 쓰기 권한을 모두 부여할 수 있는 API 키를 설정하는 방법이 있나요?
Data explorer cannot write anything, ever.
You can create a query and allow members of a group who cannot otherwise have access to the plugin to run particular queries.
Sorry, maybe it was not written well. Can queries themselves not be created via API?
That is the function in question—read and write the actual queries themselves, not within a query.
Oh. Sorry. I did miss that. So you want to create queries via the API, not just run them. That is different.
I suspect that the answer is no.
What problem do you have that writing queries via the API is going to solve? Do you need to create a lot of them or something?
You can create them via API, my question is if we can somehow limit the scope of an API key for that. Currently an API key scope can be limited to reading data explorer queries, but it doesn’t give an option to limit a scope to writing.
So today, if I want to give someone in my business the ability to write queries to data explorer, I have to give them a full global admin API key.
Here are the docs on creating queries via API:
Ah. I see. You trust a particular human to write queries, but not anything else. I don’t think there’s a way to do that currently.
질문하신 내용은 많은 커뮤니티에 유용할 것 같은 좋은 아이디어인 것 같습니다. data_explorer_allowed_groups와 같은 설정을 추가하여, 관리자 외에 더 많은 그룹에게 데이터 탐색기(Data Explorer)에 대한 전체 접근 권한을 부여할 수 있게 하는 것이죠.
이렇게 하면 해당 그룹에 접근 권한이 허용된 경우, 해당 사용자의 API 키를 사용하여 쿼리를 생성하고 접근할 수 있게 될 것입니다.
현재는 그룹 페이지를 통해 기존 쿼리에만 접근 권한을 부여할 수 있습니다.
이 요청을 Contribute > Feature 채널로 이동하여 기능 요청으로 검토받을 수 있도록 했습니다. 채택될지는 확실하지 않지만, 적어도 아이디어를 공유하는 것에는 도움이 될 것입니다.
이렇게 하지 않는 이유는 해당 사용자에게 데이터베이스 내 모든 것(비밀번호, IP 주소(모더레이터가 가지고 있는 것), SiteSettings의 모든 시크릿, 그리고 아마도 다른 몇 가지 항목)에 대한 전체(다만 읽기 전용) 액세스 권한을 부여하기 때문입니다. 물론 읽기 전용이므로 관리자 권한과는 동일하지 않습니다. 또한, 로그인 링크를 받아 다른 사용자로 로그인하는 데 필요한 시크릿도 포함됩니다.