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

Pass properties when checking access for CREATE SCHEMA #15153

Merged
merged 2 commits into from
Nov 24, 2022

Conversation

kokosing
Copy link
Member

Pass properties when checking access for CREATE SCHEMA

@cla-bot cla-bot bot added the cla-signed label Nov 22, 2022
@kokosing kokosing force-pushed the origin/master/161_schema_props branch 2 times, most recently from e8c66b1 to 19ac128 Compare November 24, 2022 12:47
@kokosing kokosing force-pushed the origin/master/161_schema_props branch from 19ac128 to b01b550 Compare November 24, 2022 14:11
@kokosing
Copy link
Member Author

CI hit: #14814

@kokosing kokosing merged commit e16620f into trinodb:master Nov 24, 2022
@kokosing kokosing deleted the origin/master/161_schema_props branch November 24, 2022 18:46
@github-actions github-actions bot added this to the 404 milestone Nov 24, 2022
@colebow
Copy link
Member

colebow commented Nov 28, 2022

Do we need release notes for this?

@kokosing
Copy link
Member Author

No user visible impact. It changed the SPI though:

SPI
- Pass properties map argument to access control methods for check create schema access.

*/
default void checkCanCreateSchema(SystemSecurityContext context, CatalogSchemaName schema, Map<String, Object> properties)
{
denyCreateSchema(schema.toString());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not delegate to checkCanCreateSchema(context, schema)?
that would make the change backward-compatible.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

proposing #15618 to address this

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right. That was a mistake.

utk-spartan added a commit to utk-spartan/ranger that referenced this pull request Mar 8, 2023
Incorporate following changes

Pass properties when checking access for CREATE SCHEMA
trinodb/trino#15153
trinodb/trino@e16620f

Support ALTER COLUMN SET DATA TYPE statement
trinodb/trino#11608
trinodb/trino@ef94c0d
utk-spartan added a commit to razorpay/ranger that referenced this pull request Mar 8, 2023
Incorporate following changes

Pass properties when checking access for CREATE SCHEMA
trinodb/trino#15153
trinodb/trino@e16620f

Support ALTER COLUMN SET DATA TYPE statement
trinodb/trino#11608
trinodb/trino@ef94c0d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants