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

feat: Add block proB pod unless authpolicy present #16

Closed
wants to merge 6 commits into from

Conversation

wg102
Copy link
Contributor

@wg102 wg102 commented Jun 9, 2021

Closes #15

Assumptions:
The pod inherits the notebook-name and classification labels.

The authorization policy is {NOTEBOOK_NAME}-protected-b-block

This blocks all the pods that are not unclassified. Not only the protected-b ones.
And it applies to all notebooks, it is not restricted to rstudio images since it is hard to detect which image it is.
The Authorization Policy will only be blocking certain URLs which are specific to rstudio.

cc @zachomedia

@wg102 wg102 requested a review from zachomedia June 15, 2021 18:36
@zachomedia zachomedia linked an issue Jun 15, 2021 that may be closed by this pull request
If classification not provided assumed unclassified
@wg102
Copy link
Contributor Author

wg102 commented Jul 14, 2021

Updated the PR to be specifically about protected-b classification label since

If the classification label is not provided, then the workload is assumed to be Unclassified.

Copy link
Contributor

@zachomedia zachomedia left a comment

Choose a reason for hiding this comment

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

Thank you, at first glance this is looking good to me! I just have one change to request that isn't anything major!

aaw/prob-auth/template.yaml Outdated Show resolved Hide resolved
Copy link
Contributor

@blairdrummond blairdrummond left a comment

Choose a reason for hiding this comment

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

LGTM!

@blairdrummond
Copy link
Contributor

@zachomedia Are you able to re-review?

@sylus
Copy link
Member

sylus commented Aug 18, 2021

I rebased this and pushed to master :D

fb76512

@sylus sylus closed this Aug 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Block creation of ProB Notebook until AuthorizationPolicy comes up
4 participants