{"id":92114,"date":"2020-08-23T19:41:56","date_gmt":"2020-08-23T17:41:56","guid":{"rendered":"https:\/\/prohoster.info\/blog\/administrirovanie\/realizacziya-rolevoj-modeli-dostupa-s-ispolzovaniem-row-level-security-v-postgresql"},"modified":"2020-08-23T19:41:56","modified_gmt":"2020-08-23T17:41:56","slug":"realizacziya-rolevoj-modeli-dostupa-s-ispolzovaniem-row-level-security-v-postgresql","status":"publish","type":"post","link":"https:\/\/prohoster.info\/es\/blog\/administrirovanie\/realizacziya-rolevoj-modeli-dostupa-s-ispolzovaniem-row-level-security-v-postgresql","title":{"rendered":"Implementaci\u00f3n de un modelo de acceso basado en roles utilizando Row Level Security en PostgreSQL","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>Desarrollo del tema <noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/515896\/\">Estudio sobre la implementaci\u00f3n de Row Level Security en PostgreSQL<\/a><\/noindex> y <b>para una respuesta ampliada<\/b> en <noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/515628\/#comment_21973176\">comentario.<\/a><\/noindex><\/p>\n<p>La estrategia utilizada implica la utilizaci\u00f3n del concepto de 'L\u00f3gica de negocio en la base de datos', que se describe con m\u00e1s detalle aqu\u00ed \u2014 <noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/515628\/\">Estudio sobre la implementaci\u00f3n de la l\u00f3gica de negocio en funciones almacenadas de PostgreSQL<\/a><\/noindex><\/p>\n<p>La parte te\u00f3rica est\u00e1 excelentemente descrita en la documentaci\u00f3n <noindex><a rel=\"nofollow\" href=\"https:\/\/postgrespro.ru\/\">Postgres Pro<\/a><\/noindex> \u2014 <noindex><a rel=\"nofollow\" href=\"https:\/\/postgrespro.ru\/docs\/postgrespro\/11\/ddl-rowsecurity\">Pol\u00edticas de protecci\u00f3n de filas<\/a><\/noindex>. A continuaci\u00f3n, se analiza la implementaci\u00f3n pr\u00e1ctica <b>de una tarea empresarial espec\u00edfica: un modelo de acceso a datos basado en roles.<\/b><\/p>\n<p><img decoding=\"async\" alt=\"Implementaci\u00f3n de un modelo de acceso basado en roles utilizando Row Level Security en PostgreSQL\" src=\"\/wp-content\/uploads\/2020\/08\/df69397b8638421732a67e457c99857c.png\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<blockquote><p>El art\u00edculo no contiene nada nuevo, no hay significados ocultos ni conocimientos secretos. Simplemente es un bosquejo sobre la implementaci\u00f3n pr\u00e1ctica de una idea te\u00f3rica. Si a alguien le interesa, que lea. Si no le interesa, no pierda su tiempo en vano.<\/p><\/blockquote>\n<p><noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><\/p>\n<h2>Planteamiento del problema<\/h2>\n<p>\nEs necesario delimitar el acceso para ver\/insertar\/modificar\/eliminar documentos seg\u00fan el rol del usuario de la aplicaci\u00f3n. Por rol, se entiende un registro en la tabla <b>roles<\/b> relacionada con la tabla mediante una relaci\u00f3n de muchos a muchos. <b>usuarios<\/b>Los detalles de la implementaci\u00f3n de las tablas se omiten debido a su trivialidad. Tambi\u00e9n se omiten detalles espec\u00edficos de implementaci\u00f3n relacionados con el dominio.<\/p>\n<h2>Implementaci\u00f3n<\/h2>\n<p><\/p>\n<h4>Creamos roles, esquemas, tabla<\/h4>\n<p><\/p>\n<p>                        <b class=\"spoiler_title\">Creaci\u00f3n de objetos de la base de datos<\/b><\/p>\n<pre><code class=\"pgsql\">CREATE ROLE store;\nCREATE SCHEMA store AUTHORIZATION store;\nCREATE TABLE store.docs\n(\n  id integer ,         --id del documento\n  man_id integer , --id del gerente del documento\n  stat_id integer ,  --id del estado del documento\n  ...\n  is_del BOOLEAN DEFAULT FALSE \n);\nALTER TABLE store.docs ADD CONSTRAINT doc_pk PRIMARY KEY (id);\nALTER TABLE store.docs OWNER TO store ;\n<\/code><\/pre>\n<p><\/p>\n<h4>Creamos funciones para implementar RLS<\/h4>\n<p>\nComprobaci\u00f3n de la posibilidad de realizar SELECT en la fila<\/p>\n<p>                        <b class=\"spoiler_title\">check_select<\/b><\/p>\n<pre><code class=\"pgsql\">CREAR O REEMPLAZAR FUNCI\u00d3N store.check_select ( current_id store.docs.id%TYPE ) DEVUELVE boolean AS $$\nDECLARE\n  resultado boolean ;\n  curr_pid integer ;\n  curr_stat_id integer ;\n  doc_man_id integer ;\nBEGIN \n  -- DBA tiene acceso a todos los documentos\n  IF SESSION_USER = 'curr_dba'\n  THEN\n    RETURN TRUE ;\n  END IF ;\n  --------------------------------\n\n  --Si el documento tiene la etiqueta 'eliminado' - no mostrar en la selecci\u00f3n\n  SELECT\n    is_del\n  INTO\n    resultado\n  FROM\n    store.docs\n  WHERE\n    id = current_id ;\n IF resultado = TRUE\n THEN\n   RETURN FALSE ;\n END IF ;\n --------------------------------\n\n --Obtener id del usuario actual\n SELECT\n   service_function.get_curr_pid ()\n INTO\n   curr_pid ;\n --------------------------------\n\n --Obtener id del gerente del documento\n SELECT\n   man_id\n INTO\n   doc_man_id\n FROM\n   store.docs\n WHERE\n   id = current_id ;\n --------------------------------\n\n --Si el gerente del documento no es el usuario actual o no hay gerente asignado\n --incluir documento en la selecci\u00f3n\n IF doc_man_id != curr_pid OR doc_man_id IS NULL\n THEN\n   RETURN TRUE  ;\n ELSE\n   --Obtener el estado actual del documento\n   SELECT\n     stat_id                                         \n   INTO\n     curr_statid\n   FROM\n     store.docs\n   WHERE\n     id = current_id ;\n    \n   --Si el estado permite ver el documento - incluir documento en la selecci\u00f3n                     \n   IF curr_statid = 4 OR curr_statid = 9\n   THEN\n     RETURN TRUE ;\n   ELSE\n   --De otro modo - excluir documento de la selecci\u00f3n\n     RETURN FALSE ;\n    END IF ;\n  END IF ;\n  --------------------------------\n\n RETURN FALSE ;\nEND\n$$ LENGUAJE plpgsql DEFINICI\u00d3N DE SEGURIDAD;\nALTERAR FUNCI\u00d3N store.check_select( store.docs.id%TYPE  ) PROPIETARIO A store ;\nREVOCAR EJECUTAR EN FUNCI\u00d3N store.check_select( store.docs.id%TYPE  ) DE publico; \nOTORGAR EJECUTAR EN FUNCI\u00d3N store.check_select( store.docs.id%TYPE  ) A service_functions; \n<\/code><\/pre>\n<p>\nComprobaci\u00f3n de la posibilidad de realizar un INSERT de fila<\/p>\n<p>                        <b class=\"spoiler_title\">check_insert<\/b><\/p>\n<pre><code class=\"pgsql\">CREAR O REEMPLAZAR FUNCI\u00d3N store.check_insert ( current_id store.docs.id%TYPE ) DEVUELVE boolean AS $$\nDECLARE\n  curr_role_id integer ;\nBEGIN\n  --DBA puede a\u00f1adir una fila en cualquier caso\n  IF SESSION_USER = 'curr_dba'\n  THEN\n    RETURN TRUE ;\n  END IF ;\n  --------------------------------\n\n --Obtener id del rol del usuario actual \n SELECT\n   service_functions.current_rid()\n  INTO\n    curr_role_id ;\n --------------------------------\n\n--Si el rol permite la creaci\u00f3n de un nuevo documento\n--permitir\nIF curr_role_id = 3 OR curr_role_id = 5     \nTHEN\n  RETURN TRUE ;\nEND IF ;\n--------------------------------\nRETURN FALSE  ;\nEND\n$$ LENGUAJE plpgsql DEFINICI\u00d3N DE SEGURIDAD;\nALTERAR FUNCI\u00d3N store.check_insert( store.docs.id%TYPE  ) PROPIETARIO A store ;\nREVOCAR EJECUTAR EN FUNCI\u00d3N store.check_insert( store.docs.id%TYPE  ) DE publico;\nOTORGAR EJECUTAR EN FUNCI\u00d3N store.check_insert( store.docs.id%TYPE  ) A service_functions; \n<\/code><\/pre>\n<p>\nComprobaci\u00f3n de la posibilidad de realizar un DELETE de fila<\/p>\n<p>                        <b class=\"spoiler_title\">check_delete<\/b><\/p>\n<pre><code class=\"pgsql\">CREAR O REEMPLAZAR FUNCI\u00d3N store.check_delete ( current_id store.docs.id%TYPE )\nDEVUELVE boolean AS $$\nBEGIN  \n  --Solo DBA puede eliminar la fila \n  IF SESSION_USER = 'curr_dba'\n  THEN\n    RETURN TRUE ;\n  END IF ;\n  --------------------------------\n\n  RETURN FALSE ;\nEND\n$$ LENGUAJE plpgsql\nDEFINICI\u00d3N DE SEGURIDAD;\nALTERAR FUNCI\u00d3N store.check_delete( store.docs.id%TYPE  ) PROPIETARIO A store ;\nREVOCAR EJECUTAR EN FUNCI\u00d3N store.check_delete( store.docs.id%TYPE  ) DE publico;<\/code><\/pre>\n<p>\nComprobaci\u00f3n de la posibilidad de realizar un UPDATE de fila.<\/p>\n<p>                        <b class=\"spoiler_title\">actualizar_usando<\/b><\/p>\n<pre><code class=\"pgsql\">CREAR O REEMPLAZAR FUNCI\u00d3N store.actualizar_usando ( current_id store.docs.id%TYPE , is_del boolean  )\nRETORNA boolean AS $$\nCOMIENZA  \n   --Los documentos con estado 'eliminado' no se pueden editar\n   SI is_del \n   ENTONCES\n     RETORNAR FALSE ;\n SINO\n    RETORNAR TRUE ;\n  FIN SI ;\n\nFIN\n$$ LENGUAJE plpgsql DEFINIDOR DE SEGURIDAD;\nALTERAR FUNCI\u00d3N store.actualizar_usando(  store.docs.id%TYPE ,  boolean  ) PROPIETARIO A store ;\nREVOCAR EJECUCI\u00d3N EN FUNCI\u00d3N store.actualizar_usando(  store.docs.id%TYPE ,  boolean  ) DE p\u00fablico;\nOTORGAR EJECUCI\u00d3N EN FUNCI\u00d3N store.actualizar_usando( store.docs.id%TYPE  ) A service_functions;<\/code><\/pre>\n<p><\/p>\n<p>                        <b class=\"spoiler_title\">actualizar_verificar<\/b><\/p>\n<pre><code class=\"pgsql\">CREAR O REEMPLAZAR FUNCI\u00d3N store.actualizar_con_verificaci\u00f3n ( current_id store.docs.id%TYPE , is_del boolean )\nRETORNA boolean AS $$\nDECLARAR\n  current_rid entero ;\n  current_statid entero ;\nCOMIENZA                \n\n  --El DBA puede ver la fila \n  SI SESSION_USER = 'curr_dba'\n  ENTONCES\n    RETORNAR TRUE ;\n  FIN SI ;\n  --------------------------------\n\n --Obtener id del rol del usuario actual \n SELECCIONAR\n   service_functions.current_rid()\n  EN INTO\n    curr_role_id ;\n --------------------------------                            \n\n --Eliminaci\u00f3n del documento - cambio de marca \n SI is_deleted\n ENTONCES\n   --Si el rol del usuario ***\n   SI current_role_id = 3        \n   ENTONCES\n      SELECCIONAR\n        stat_id                                          \n      EN INTO\n        curr_statid\n      DE\n        store.docs\n      DONDE\n        id = current_id ;\n\n      --El documento en estado *** no se puede eliminar \n      SI current_status_id = 11\n      ENTONCES\n         RETORNAR FALSE ;\n      SINO\n      --Se puede eliminar el documento en otros estados\n        RETORNAR TRUE ;\n      FIN SI ;\n\n    --De lo contrario, si el rol del usuario ***\n    O SINO current_role_id = 5            \n    ENTONCES\n      --Todos los estados del documento \n      RETORNAR TRUE ;\n    O SINO\n      --Otros usuarios no pueden eliminar documentos\n      RETORNAR FALSE ;\n    FIN SI ;\n SINO      \n   --La actualizaci\u00f3n del documento est\u00e1 permitida\n    RETORNAR TRUE ;\nFIN SI ;\n\nRETORNAR FALSE ;\nFIN\n$$ LENGUAJE plpgsql DEFINIDOR DE SEGURIDAD;\nALTERAR FUNCI\u00d3N store.actualizar_con_verificaci\u00f3n( storg.docs.id%TYPE ,  boolean   ) PROPIETARIO A store ;\nREVOCAR EJECUCI\u00d3N EN FUNCI\u00d3N store.actualizar_con_verificaci\u00f3n( storg.docs.id%TYPE ,  boolean   ) DE p\u00fablico;\nOTORGAR EJECUCI\u00d3N EN FUNCI\u00d3N store.actualizar_con_verificaci\u00f3n( store.docs.id%TYPE  ) A service_functions;<\/code><\/pre>\n<p>\nActivaci\u00f3n de la pol\u00edtica de Seguridad a Nivel de Fila para la tabla.<\/p>\n<p>                        <b class=\"spoiler_title\">ACTIVAR SEGURIDAD A NIVEL DE FILA<\/b><\/p>\n<pre><code class=\"pgsql\">ALTERAR TABLA store.docs ACTIVAR SEGURIDAD A NIVEL DE FILA ;\n\nCREAR POL\u00cdTICA doc_seleccionar EN store.docs PARA SELECCIONAR A service_functions USANDO ( (SELECCIONAR store.check_select(id)) );\nCREAR POL\u00cdTICA doc_insertar EN store.docs PARA INSERTAR A service_functions CON VERIFICACI\u00d3N ( (SELECCIONAR store.check_insert(id)) );\nCREAR POL\u00cdTICA docs_eliminar EN store.docs PARA ELIMINAR A service_functions USANDO ( (SELECCIONAR store.check_delete(id)) );\n\nCREAR POL\u00cdTICA doc_actualizar_usando EN store.docs PARA ACTUALIZAR A service_functions USANDO ( (SELECCIONAR store.actualizar_usando(id , is_del )) );\nCREAR POL\u00cdTICA doc_actualizar_verificar EN store.docs PARA ACTUALIZAR A service_functions  CON VERIFICACI\u00d3N ( (SELECCIONAR store.actualizar_con_verificaci\u00f3n(id , is_del )) );<\/code><\/pre>\n<p><\/p>\n<h2>Summary<\/h2>\n<p>\nEsto funciona.<\/p>\n<p>La estrategia propuesta permiti\u00f3 trasladar la implementaci\u00f3n del modelo de roles del nivel de funciones comerciales al nivel de almacenamiento de datos. <\/p>\n<p>Las funciones pueden ser utilizadas como plantilla para implementar modelos m\u00e1s sofisticados de ocultamiento de datos, si as\u00ed lo requieren las exigencias comerciales.<br \/>\n<br \/>Fuente: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/516040\/\">habr.com<\/a> <\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0420\u0430\u0437\u0432\u0438\u0442\u0438\u0435 \u0442\u0435\u043c\u044b \u042d\u0442\u044e\u0434 \u043f\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 Row Level Secutity \u0432 PostgreSQL \u0438 \u0434\u043b\u044f \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u043e\u0433\u043e \u043e\u0442\u0432\u0435\u0442\u0430 \u043d\u0430 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044f \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0438 \u00ab\u0411\u0438\u0437\u043d\u0435\u0441-\u043b\u043e\u0433\u0438\u043a\u0430 \u0432 \u0411\u0414\u00bb, \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u0447\u0443\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u0437\u0434\u0435\u0441\u044c \u2014 \u042d\u0442\u044e\u0434 \u043f\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0431\u0438\u0437\u043d\u0435\u0441-\u043b\u043e\u0433\u0438\u043a\u0438 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0445\u0440\u0430\u043d\u0438\u043c\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 PostgreSQL \u0422\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 Postgres Pro \u2014 \u041f\u043e\u043b\u0438\u0442\u0438\u043a\u0438 \u0437\u0430\u0449\u0438\u0442\u044b \u0441\u0442\u0440\u043e\u043a. \u041d\u0438\u0436\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":92115,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-92114","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0420\u0430\u0437\u0432\u0438\u0442\u0438\u0435 \u0442\u0435\u043c\u044b \u042d\u0442\u044e\u0434 \u043f\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 Row Level Secutity \u0432 PostgreSQL \u0438 \u0434\u043b\u044f \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u043e\u0433\u043e \u043e\u0442\u0432\u0435\u0442\u0430 \u043d\u0430\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/es\/blog\/administrirovanie\/realizacziya-rolevoj-modeli-dostupa-s-ispolzovaniem-row-level-security-v-postgresql\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"es_ES\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0440\u043e\u043b\u0435\u0432\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Row Level Security \u0432 PostgreSQL | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0420\u0430\u0437\u0432\u0438\u0442\u0438\u0435 \u0442\u0435\u043c\u044b \u042d\u0442\u044e\u0434 \u043f\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 Row Level Secutity \u0432 PostgreSQL \u0438 \u0434\u043b\u044f \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u043e\u0433\u043e \u043e\u0442\u0432\u0435\u0442\u0430 \u043d\u0430\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/es\/blog\/administrirovanie\/realizacziya-rolevoj-modeli-dostupa-s-ispolzovaniem-row-level-security-v-postgresql\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-08-23T17:41:56+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-08-23T17:41:56+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Implementaci\u00f3n de un modelo de acceso basado en roles utilizando Row Level Security en PostgreSQL | ProHoster","description":"Desarrollo del tema Estudio sobre la implementaci\u00f3n de Row Level Security en PostgreSQL y para una respuesta m\u00e1s extensa sobre","canonical_url":"https:\/\/prohoster.info\/es\/blog\/administrirovanie\/realizacziya-rolevoj-modeli-dostupa-s-ispolzovaniem-row-level-security-v-postgresql","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"es_ES","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0440\u043e\u043b\u0435\u0432\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Row Level Security \u0432 PostgreSQL | ProHoster","og:description":"\u0420\u0430\u0437\u0432\u0438\u0442\u0438\u0435 \u0442\u0435\u043c\u044b \u042d\u0442\u044e\u0434 \u043f\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 Row Level Secutity \u0432 PostgreSQL \u0438 \u0434\u043b\u044f \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u043e\u0433\u043e \u043e\u0442\u0432\u0435\u0442\u0430 \u043d\u0430","og:url":"https:\/\/prohoster.info\/es\/blog\/administrirovanie\/realizacziya-rolevoj-modeli-dostupa-s-ispolzovaniem-row-level-security-v-postgresql","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2020-08-23T17:41:56+00:00","article:modified_time":"2020-08-23T17:41:56+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"92114","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":null,"breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 12:14:23","updated":"2022-10-06 10:04:45","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/es\/wp-json\/wp\/v2\/posts\/92114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/es\/wp-json\/wp\/v2\/comments?post=92114"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/es\/wp-json\/wp\/v2\/posts\/92114\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/es\/wp-json\/wp\/v2\/media\/92115"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/es\/wp-json\/wp\/v2\/media?parent=92114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/es\/wp-json\/wp\/v2\/categories?post=92114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/es\/wp-json\/wp\/v2\/tags?post=92114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}