-
Notifications
You must be signed in to change notification settings - Fork 21
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
[IA-5061] Update Leo to set a parent for notebook-cluster and persistent-disk resources #4781
Conversation
@@ -315,45 +315,6 @@ class SamAuthProvider[F[_]: OpenTelemetryMetrics]( | |||
} yield roles.nonEmpty | |||
} | |||
|
|||
override def notifyResourceCreated[R]( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed old resource creation/deletion methods.
* @return access token for the user's arbitrary pet service account, or SamException if | ||
* the pet could not be retrieved. | ||
*/ | ||
def getArbitraryPetServiceAccountToken(userEmail: WorkbenchEmail)(implicit ev: Ask[F, AppContext]): F[String] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I missed this earlier when implementing SamService
- this is needed for Azure functionality.
...c/main/scala/org/broadinstitute/dsde/workbench/leonardo/http/service/DiskServiceInterp.scala
Show resolved
Hide resolved
@@ -23,12 +22,10 @@ import org.typelevel.log4cats.StructuredLogger | |||
|
|||
import scala.concurrent.ExecutionContext | |||
|
|||
class DiskV2ServiceInterp[F[_]: Parallel](config: PersistentDiskConfig, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These fields were unused.
a31cc22
to
362ceac
Compare
I'm in the process of testing on a BEE, but requesting reviews in the meantime (@mlilynolting @LizBaldo ). Thanks! |
...main/scala/org/broadinstitute/dsde/workbench/leonardo/http/service/LeoAppServiceInterp.scala
Outdated
Show resolved
Hide resolved
This looks great; I'd like to ideally replace |
FWIW, documented test plan here: https://broadworkbench.atlassian.net/wiki/spaces/IA/pages/3362848772/Leonardo+Access+Control+-+Desired+State#BEE-Test-Plan |
Yeah it would be nice to have some more nesting of resources, actions, and roles… I can explore a little bit. |
@mlilynolting @LizBaldo I applied PR feedback so far (refactored |
core/src/main/scala/org/broadinstitute/dsde/workbench/leonardo/samModels.scala
Outdated
Show resolved
Hide resolved
core/src/main/scala/org/broadinstitute/dsde/workbench/leonardo/samModels.scala
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lfg
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, it is super clear, I just have a few minor comments.
core/src/main/scala/org/broadinstitute/dsde/workbench/leonardo/samModels.scala
Outdated
Show resolved
Hide resolved
core/src/main/scala/org/broadinstitute/dsde/workbench/leonardo/samModels.scala
Show resolved
Hide resolved
...c/main/scala/org/broadinstitute/dsde/workbench/leonardo/http/service/DiskServiceInterp.scala
Show resolved
Hide resolved
...ain/scala/org/broadinstitute/dsde/workbench/leonardo/http/service/RuntimeServiceInterp.scala
Outdated
Show resolved
Hide resolved
...est/scala/org/broadinstitute/dsde/workbench/leonardo/http/service/AppServiceInterpSpec.scala
Outdated
Show resolved
Hide resolved
Applied PR feedback and re-tested, including auth domains as described here: https://broadworkbench.atlassian.net/wiki/spaces/IA/pages/3362848772/Leonardo+Access+Control+-+Desired+State I think everything is working well. Going to do some final review/validation, then plan to merge this. |
JIRA ticket: https://broadworkbench.atlassian.net/browse/IA-5061
Dependencies
Depends on Sam PR: broadinstitute/sam#1535.
Summary of changes
Phase 2 of Simplify Leo Access Control epic. Sets a parent (google-project for V1, workspace for V2) for all new notebook-cluster and persistent-disk resources in Sam.
It's a big change set but there is more deleted code than added.
What
Why
Testing these changes
What to test
Test plan: https://broadworkbench.atlassian.net/wiki/spaces/IA/pages/3362848772/Leonardo+Access+Control+-+Desired+State#BEE-Test-Plan
Who tested and where
jenkins retest
orjenkins multi-test
.