mdeuser commented on a change in pull request #3388: Update require-whisk-auth behavior to secure web action URL: https://github.com/apache/incubator-openwhisk/pull/3388#discussion_r172628041
########## File path: core/controller/src/main/scala/whisk/core/controller/WebActions.scala ########## @@ -719,7 +741,8 @@ trait WhiskWebActionsApi extends Directives with ValidateRequestSize with PostAc private def confirmExportedAction(actionLookup: Future[WhiskActionMetaData], authenticated: Boolean)( implicit transid: TransactionId): Future[WhiskActionMetaData] = { actionLookup flatMap { action => - val requiresAuthenticatedUser = action.annotations.getAs[Boolean]("require-whisk-auth").exists(identity) + val requiresAuthenticatedUser = + action.annotations.getAs[Boolean](WhiskAction.requireWhiskAuthAnnotation).exists(identity) Review comment: let's discuss after the refactoring into a separate method.. @markusthoemmes wanted to be sure we minimized the deserialization of the json values. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services