Session and Statement Query Banding #553

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

Comments

Projects
None yet
1 participant
@timowest
Member

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

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Dec 9, 2013

Member

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);
}
Member

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

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Dec 22, 2013

Member

Released in 3.3.0

Member

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