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 58DA6200B6D for ; Mon, 8 Aug 2016 18:16:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 577DE160AB4; Mon, 8 Aug 2016 16:16:22 +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 A8E33160A91 for ; Mon, 8 Aug 2016 18:16:21 +0200 (CEST) Received: (qmail 20693 invoked by uid 500); 8 Aug 2016 16:16:20 -0000 Mailing-List: contact issues-help@aurora.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aurora.apache.org Delivered-To: mailing list issues@aurora.apache.org Received: (qmail 20674 invoked by uid 99); 8 Aug 2016 16:16:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2016 16:16:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8A5972C0D5D for ; Mon, 8 Aug 2016 16:16:20 +0000 (UTC) Date: Mon, 8 Aug 2016 16:16:20 +0000 (UTC) From: "Benjamin Staffin (JIRA)" To: issues@aurora.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AURORA-1746) Shiro authorization errors could be friendlier MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 08 Aug 2016 16:16:22 -0000 Benjamin Staffin created AURORA-1746: ---------------------------------------- Summary: Shiro authorization errors could be friendlier Key: AURORA-1746 URL: https://issues.apache.org/jira/browse/AURORA-1746 Project: Aurora Issue Type: Story Components: Scheduler Reporter: Benjamin Staffin Priority: Minor When the scheduler is configured to use Kerberos auth with shiro, the error messages it returns to clients are not as informative as they could be. For example: {code} Subject org.apache.shiro.web.subject.support.WebDelegatingSubject@585fe96c is not permitted to JobScopedRpcPermission{rpc=startJobUpdate, permittedJob=IJobKey{role=foo, environment=devel, name=fancyjob}} {code} It would be very nice if the message masked the {{org.apache.shiro.web.subject[...]}} class name and either (a) listed the actual subject/principal name of the client ({{username@SOME.REALM}}), or (b) generically referred to "the client". I would also suggest using the term "authorized" rather than "permitted". This is probably debatable, and the semantic difference is minimal, but to me the former more directly hints at a thing that can be configured, whereas the current message might be misinterpreted to mean something that cannot be done at all. For bonus points, also rewrite the {{JobScopedRpcPermission}} part of the message to be friendlier. That part at least includes enough details that an informed user could figure out what it means after staring at it a bit. -- This message was sent by Atlassian JIRA (v6.3.4#6332)