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

Session and Statement Query Banding #553

Closed
timowest opened this issue Nov 15, 2013 · 2 comments
Closed

Session and Statement Query Banding #553

timowest opened this issue Nov 15, 2013 · 2 comments
Milestone

Comments

@timowest
Copy link
Member

@timowest timowest commented Nov 15, 2013

Query Banding is there term for data security and Multi-tenancy support. It can be used to control what data a particular Customer can see. The scope of work could be the ability to pass this down as you stated as the SET QUERY BAND value on the statement or session level (we’d have to clear it on the session level before returning back to the pool).

Column to Role level security will be implemented using Custom User Data Type classes similar to this example of encrypted columns.

timowest added a commit that referenced this issue Dec 4, 2013
timowest added a commit that referenced this issue Dec 4, 2013
@timowest
Copy link
Member Author

@timowest timowest commented Dec 9, 2013

Usage examples:

protected SetQueryBandClause setQueryBand() {
    return new SetQueryBandClause(connection, configuration);
}

@IncludeIn(TERADATA)
public void SetQueryBand_ForSession() {
    setQueryBand().set("a", "bb").forSession().execute();
    query().from(survey).list(survey.id);
}

@Test
@IncludeIn(TERADATA)
public void SetQueryBand_ForTransaction() {
    setQueryBand().set("a", "bb").forTransaction().execute();
    query().from(survey).list(survey.id);
}
@timowest
Copy link
Member Author

@timowest timowest commented Dec 22, 2013

Released in 3.3.0

@timowest timowest closed this Dec 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant