0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 04:12:23 +01:00
posthog/ee
Michael Matloka 3c0737f0fd
Plugins access control (#3486)
* Add Organization.PluginsAccess

* Rename PluginsAccess to PluginsAccessLevel

* Use Organization.plugins_access_level in can_…_plugins_via_api

* Add migration for Organization.plugins_access_level

* Remove unused PLUGINS_CLOUD_WHITELISTED_ORG_IDS

* Update access.py

* Add OrganizationPluginsAccessLevel TS enum

* Fix merge

* Disable LocalPlugin UI on Cloud

* Move away from PluginAccess interface

* Extend PluginsAccessLevel range

* Refactor PluginsAccessLevel for brevity

* Remove PluginAccess interface completely

* Add plugins managed globally

* Update migration

* Show managing org name in "Managed" plugin tag

* Smoothen some rough edges

* Smoothen more edges

* Restore correct MULTI_TENANCY default

* All the edges

* Fix most existing tests

* Remove PLUGINS_*_VIA_API env var support

* Update pluginsNeedingUpdates

* Remove can_*_plugins_via_api from instance status page

* Add tests and polish permissioning

* Update migration

* Fix typing

* Make plugin drawer UI less intrusive

* Update migration

* Fix Uninstall button condition

* Use unified _preflight status endpoint instead of the custom plugins one

* Fix plugin update label condition

* Fix "Check for updates" button condition

* Explain PluginsAccessLevel choices with comments

* Hide global plugin installation option on self-hosted

* Don't actions.loadRepository() as install org

* Improve permissioning with tests

* Satisfy mypy

* Add plugins access level to admin and fix org admin

* Check plugins access level more

* Rename endWithPeriod

* Refactor FE access control checks to accessControl.ts

* Deduplicate permissioning

* Add exception message

* Align backend and frontend plugins access level helpers

* Add plugins access level helper tests

* Fix ChartFilter
2021-03-17 15:01:55 +01:00
..
api Add organization settings (#3324) 2021-03-10 13:09:35 +01:00
bin Run tests via pytest (#3417) 2021-02-24 09:32:44 +02:00
certs Publish events to Kafka for consumption (#1644) 2020-09-15 20:04:38 -07:00
clickhouse Auto filter test accounts (#3492) 2021-03-11 18:16:38 +01:00
idl Delete omni_person.proto (#3014) 2021-01-21 14:13:04 +01:00
kafka_client Enable PLUGIN_SERVER_INGESTION (#3107) 2021-02-04 16:17:24 +01:00
management/commands Fix setting up test databases on clickhouse (#3451) 2021-02-24 11:58:01 +02:00
migrations Fix Master EE code (#1701) 2020-09-24 06:14:17 -04:00
models Fix webhooks specifity (#3463) 2021-02-24 23:14:02 +01:00
tasks Handle webhooks better (#3605) 2021-03-09 16:37:42 +01:00
__init__.py
apps.py
conftest.py Fix getting earliest timestamp on EE with no events (#3501) 2021-02-26 15:31:22 +02:00
docker-compose.ch.test.yml Update posthog-js to 1.9.0 and @posthog/plugin-server to 0.11.3 (#3565) 2021-03-03 12:27:44 +01:00
docker-compose.ch.yml Update posthog-js to 1.9.0 and @posthog/plugin-server to 0.11.3 (#3565) 2021-03-03 12:27:44 +01:00
LICENSE Updated where our enterprise terms are found (#2881) 2021-01-08 12:09:27 +01:00
settings.py Plugins access control (#3486) 2021-03-17 15:01:55 +01:00
urls.py Debug CH queries (#2666) 2020-12-07 16:06:14 +01:00