Skip to content

feat: implement instance and table level IAM policy#584

Merged
crwilcox merged 7 commits intogoogleapis:masterfrom
AVaksman:table_level_IAM_controls
Nov 26, 2019
Merged

feat: implement instance and table level IAM policy#584
crwilcox merged 7 commits intogoogleapis:masterfrom
AVaksman:table_level_IAM_controls

Conversation

@AVaksman
Copy link
Contributor

@AVaksman AVaksman commented Nov 20, 2019

The new features allow user to check and tune IAM policy for the resource (instance, table) level:

  • getIamPolicy - allows a user obtain the current resource IAM policy.

  • setIamPolicy - allows a user to set resource level IAM policy.

  • testIamPermissions - allows a user to pass a list of permissions and get back a sub-list of granted permissions.

  • Ensure the tests and linter pass

  • Code coverage does not decrease (if any source code was changed)

  • Appropriate docs were updated (if necessary)

Fixes #581

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 20, 2019
@AVaksman AVaksman requested a review from crwilcox November 20, 2019 23:25
@crwilcox crwilcox requested a review from kolea2 November 21, 2019 22:11
@codecov
Copy link

codecov bot commented Nov 22, 2019

Codecov Report

Merging #584 into master will increase coverage by 0.41%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #584      +/-   ##
==========================================
+ Coverage   86.82%   87.24%   +0.41%     
==========================================
  Files          33       33              
  Lines        1981     2046      +65     
  Branches      349      373      +24     
==========================================
+ Hits         1720     1785      +65     
  Misses        233      233              
  Partials       28       28
Impacted Files Coverage Δ
src/table.ts 98.61% <100%> (+0.14%) ⬆️
src/instance.ts 96.92% <100%> (+0.6%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c5ceaeb...06c6620. Read the comment docs.

@AVaksman
Copy link
Contributor Author

@crwilcox I added implementation for Instance level Iam policy and documents snippets.

Copy link

@bcoe bcoe left a comment

Choose a reason for hiding this comment

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

@AVaksman mind adding a bit of a description in the issue comment about this feature, just a high level of outline of the behavior.

@AVaksman AVaksman changed the title feat: implement table level IAM policy feat: implement instance and table level IAM policy Nov 25, 2019
@AVaksman
Copy link
Contributor Author

@AVaksman mind adding a bit of a description in the issue comment about this feature, just a high level of outline of the behavior.

@bcoe is this OK, or you where implying something more? I mean that is a very minimalistic one line description.

@AVaksman AVaksman force-pushed the table_level_IAM_controls branch from a3c83f5 to 7c6979c Compare November 25, 2019 18:31
@crwilcox crwilcox merged commit 5c22968 into googleapis:master Nov 26, 2019
billyjacobson pushed a commit that referenced this pull request Nov 27, 2019
* feat: add table level IAM policy controls

* lint: lint

* feat: add instance level IAM policy

* docs: update description

* docs: add document snippets

* lint: lint
billyjacobson added a commit that referenced this pull request Dec 3, 2019
* Reads and filters WIP, working Reads tests and current format for Reads snippets

* working tests for solo filters

* Composing filters

* add bulk region tags

* Change testing instance

* Linted

* feat: implement instance and table level IAM policy (#584)

* feat: add table level IAM policy controls

* lint: lint

* feat: add instance level IAM policy

* docs: update description

* docs: add document snippets

* lint: lint

* Linted
Fixed headers
Removed unnceccessary asyncs
Arrow functions where possible

* Arrow functions

* destructure Bigtable require

* Using snapshots for testing

* Change functions to use a switch

* Fix timezone issue for tests

* Lint snapshot files

* Clean up loops, add update snapshot method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement table level IAM policy

5 participants