Add restrict-metadata-access #2435

Merged
merged 3 commits into from Jul 12, 2017

Conversation

Projects
None yet
4 participants
Member

geoffjentry commented Jul 11, 2017

One could argue that "auth file" is now a misnomer, but I rationalized my laziness for maintaining the name in that this relates to auth. Up to you all.

geoffjentry added some commits Jul 11, 2017

@geoffjentry geoffjentry Add restrict-metadata-access
58348eb
@geoffjentry geoffjentry oops
e5da338

mcovarr self-assigned this Jul 12, 2017

Contributor

danbills commented Jul 12, 2017 edited by briandmaher

👍

Approved with PullApprove

@@ -46,6 +47,14 @@ class JesAttributesSpec extends FlatSpec with Matchers {
jesAttributes.computeServiceAccount should be("testing")
}
+ it should "parse restrict-metadata-access" taggedAs IntegrationTest in {
+ val backendConfig = ConfigFactory.parseString(configString(genomics = """restrict-metadata-access = true """))
@kshakir

kshakir Jul 12, 2017

Contributor

Are the triple quotes necessary?

@geoffjentry

geoffjentry Jul 12, 2017

Member

This is either copy/paste or intellij. will look and modify as appropriate.

Contributor

kshakir commented Jul 12, 2017 edited by briandmaher

👍 Minor comments, otherwise LGTM.

Approved with PullApprove

@@ -76,6 +78,7 @@ object JesAttributes {
val maxPollingInterval: Int = backendConfig.as[Option[Int]]("maximum-polling-interval").getOrElse(600)
val computeServiceAccount: String = backendConfig.as[Option[String]]("genomics.compute-service-account").getOrElse("default")
val genomicsAuthName: ErrorOr[String] = validate { backendConfig.as[String]("genomics.auth") }
+ val genomicsRestrictMetadataAccess: ErrorOr[Boolean] = validate { backendConfig.as[Option[Boolean]]("genomics.restrict-metadata-access").getOrElse(false) }
@mcovarr

mcovarr Jul 12, 2017

Contributor

should this really be on by default?

@geoffjentry

geoffjentry Jul 12, 2017

Member

discussed in slack

Contributor

mcovarr commented Jul 12, 2017 edited by briandmaher

👍

Approved with PullApprove

@geoffjentry geoffjentry code review
9c1d6f7

@geoffjentry geoffjentry merged commit 2862235 into develop Jul 12, 2017

4 checks passed

code-review/pullapprove Approved by danbills, kshakir, mcovarr
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
coverage/coveralls Coverage increased (+0.02%) to 67.486%
Details

@geoffjentry geoffjentry added a commit that referenced this pull request Jul 12, 2017

@geoffjentry @geoffjentry geoffjentry + geoffjentry Add restrict-metadata-access (#2435)
Add restrict-metadata-access
9c9b743

mcovarr deleted the jg_restrict_metadata branch Jul 17, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment