Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Streams

Operation
Privileges Required (Proposed)
Integration test name
CreateADMINBasicAuthorizationTestBase.testStreamPrivileges
Retrieving eventsREADBasicAuthorizationTestBase.testStreamPrivileges
Sending events to a stream (sync, async, or batch)WRITEBasicAuthorizationTestBase.testStreamPrivileges
DropADMINBasicAuthorizationTestBase.testStreamPrivileges
Drop-all in the namespaceADMIN on all the streams in the namespace 
UpdateADMIN 
TruncateADMIN 
View/List Easy to add
Get stream propertyADMIN | READEasy to add

 

Principal

Operation
Privileges Required (Proposed)
Integration test name
Deploy an app to impersonate a principalADMINAppImpersonationAuthorizationTest(in pr)
Create a namespace with owner prinicpalADMINNamespaceImpersonationBasicAuthorizationTest
Create a dataset with owner prinicpalADMINAppImpersonationAuthorizationTest(in pr)
Create a stream with owner prinicpalADMIN 

 

More in integration tests:

  1. Test creating namespaces with two different clients and try to delete them to test the explore user name issue(in pr)
  2. test namespace creation with different owners and make sure the owner is correct(in pr)
  3. all basic tests with ns/app impersonation, custom mapping 
  4. role based auth test(in pr)

 

More to do list:

  1. test create dataset with an unauthorized dataset type
  2. test CDAP-8568 with minimal privilege required