Skip to content

Revoking public schema access not working as expected #91

@SharpEdgeMarshall

Description

@SharpEdgeMarshall

Like this issue on terraform when you create a schema and explicitly set a SchemaPolicy for PUBLIC role it's ignored and PUBLIC role has Create and Usage permissions

Example code

pulumi_postgresql.Schema("schema",
        name="public",
        database=db.name,
        owner=role.name,
        policies=[
            # PUBLIC role
            pgsql.outputs.SchemaPolicy(
                create=False,
                usage=False,
            )
        ],
        opts=default_resource_opt
    )

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting-upstreamThe issue cannot be resolved without action in another repository (may be owned by Pulumi).kind/bugSome behavior is incorrect or out of spec

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions