Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9F73D200CFE for ; Fri, 25 Aug 2017 01:31:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9DD9116BDE1; Thu, 24 Aug 2017 23:31:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id ECD6B16BDDC for ; Fri, 25 Aug 2017 01:31:07 +0200 (CEST) Received: (qmail 93515 invoked by uid 500); 24 Aug 2017 23:31:04 -0000 Mailing-List: contact issues-help@geode.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.apache.org Delivered-To: mailing list issues@geode.apache.org Received: (qmail 93501 invoked by uid 99); 24 Aug 2017 23:31:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Aug 2017 23:31:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 5FCA2C057F for ; Thu, 24 Aug 2017 23:31:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id LCJht2tMw3qg for ; Thu, 24 Aug 2017 23:31:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id DFE5060D92 for ; Thu, 24 Aug 2017 23:31:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 95832E01E5 for ; Thu, 24 Aug 2017 23:31:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id B02CD2538E for ; Thu, 24 Aug 2017 23:31:00 +0000 (UTC) Date: Thu, 24 Aug 2017 23:31:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@geode.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GEODE-3447) Implement client authorization for the new protocol MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 24 Aug 2017 23:31:08 -0000 [ https://issues.apache.org/jira/browse/GEODE-3447?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1614= 0933#comment-16140933 ]=20 ASF GitHub Bot commented on GEODE-3447: --------------------------------------- Github user pivotal-amurmann commented on a diff in the pull request: https://github.com/apache/geode/pull/719#discussion_r135154701 =20 --- Diff: geode-protobuf/src/test/java/org/apache/geode/protocol/Author= izationIntegrationTest.java --- @@ -0,0 +1,206 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more = contributor license + * agreements. See the NOTICE file distributed with this work for addi= tional information regarding + * copyright ownership. The ASF licenses this file to You under the Ap= ache License, Version 2.0 (the + * "License"); you may not use this file except in compliance with the= License. You may obtain a + * copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software= distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITION= S OF ANY KIND, either express + * or implied. See the License for the specific language governing per= missions and limitations under + * the License. + */ +package org.apache.geode.protocol; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.same; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.when; + +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.net.Socket; +import java.util.Properties; +import java.util.concurrent.TimeUnit; + +import org.awaitility.Awaitility; +import org.junit.After; +import org.junit.Before; +import org.junit.Rule; +import org.junit.Test; +import org.junit.contrib.java.lang.system.RestoreSystemProperties; +import org.junit.experimental.categories.Category; + +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.CacheFactory; +import org.apache.geode.cache.server.CacheServer; +import org.apache.geode.internal.AvailablePortHelper; +import org.apache.geode.management.internal.security.ResourceConstants= ; +import org.apache.geode.protocol.protobuf.AuthenticationAPI; +import org.apache.geode.protocol.protobuf.ClientProtocol; +import org.apache.geode.protocol.protobuf.ProtobufSerializationService= ; +import org.apache.geode.protocol.protobuf.ProtocolErrorCode; +import org.apache.geode.protocol.protobuf.RegionAPI; +import org.apache.geode.protocol.protobuf.serializer.ProtobufProtocolS= erializer; +import org.apache.geode.protocol.protobuf.utilities.ProtobufUtilities; +import org.apache.geode.security.ResourcePermission; +import org.apache.geode.security.SecurityManager; +import org.apache.geode.serialization.registry.exception.CodecAlreadyR= egisteredForTypeException; +import org.apache.geode.test.junit.categories.IntegrationTest; + +@Category(IntegrationTest.class) +public class AuthorizationIntegrationTest { --- End diff -- =20 Hugs for not adding this to the existing Roundtrip test! =F0=9F=A4=97 > Implement client authorization for the new protocol > --------------------------------------------------- > > Key: GEODE-3447 > URL: https://issues.apache.org/jira/browse/GEODE-3447 > Project: Geode > Issue Type: New Feature > Components: client/server > Reporter: Brian Baynes > Assignee: Bruce Schuchardt > > As a user of the new client/server protocol, I need to make sure the clie= nts using the protocol to access my grid are authorized to perform each ope= ration they attempt. > Implement client authorization for operations in new protocol based on ex= isting authorization configuration. -- This message was sent by Atlassian JIRA (v6.4.14#64029)