From dev-return-89605-archive-asf-public=cust-asf.ponee.io@sling.apache.org Sat Jun 23 01:28:19 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 53583180647 for ; Sat, 23 Jun 2018 01:28:19 +0200 (CEST) Received: (qmail 22421 invoked by uid 500); 22 Jun 2018 23:28:18 -0000 Mailing-List: contact dev-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list dev@sling.apache.org Received: (qmail 22409 invoked by uid 99); 22 Jun 2018 23:28:17 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jun 2018 23:28:17 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 3EDE51804D2 for ; Fri, 22 Jun 2018 23:28:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.898 X-Spam-Level: * X-Spam-Status: No, score=1.898 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id s0Ym0KAXLpKI for ; Fri, 22 Jun 2018 23:28:15 +0000 (UTC) Received: from mail-wr0-f176.google.com (mail-wr0-f176.google.com [209.85.128.176]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 11E095F17E for ; Fri, 22 Jun 2018 23:28:15 +0000 (UTC) Received: by mail-wr0-f176.google.com with SMTP id w10-v6so8119913wrk.9 for ; Fri, 22 Jun 2018 16:28:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=lzPrIKU/QRnKKBhEjk6sH12j435UwovF1w680ajI6ng=; b=udVlLhv3JL0Og5HqE5vG9bmubahumDXo1A7NAdxFNlBm5t7sr88yrHWE1LDHWwZe/O n9C6WbB1vDxxwoOiJ+dPmSW20w+iqlkkKm+NlLeYS/y5Y+kwON6+YiB+ybrBe8hL9WxG XUHw442luMwLbwTsiZtFVjCTHgCxW36Aa5vsUbxIJHFGIFSAeGHgFM3MFIs39NKCd+w4 0IpWHsZn1dKlMxs6FVrUtwS4ShAbF0JVD08WUkpJ1AyUmC6SGjA5dgWKP+iVK6WAuCbk z4820fbtFX19XEMjzOi//djbbFbubKVJraHt3YLI+J8pWvGUZ+3YdKyyRhhTB3fRPQg0 jwng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=lzPrIKU/QRnKKBhEjk6sH12j435UwovF1w680ajI6ng=; b=MFMdFqrlTG0eVfM//7VlsXlfeDF/c+LEbejKbQnzwAgkBQ8IGL5gPTSE9l5S1kYhHr fX2s4MNERA1eLeViPsUGo+FuclNq+peZyaKUJy2/XzsLPp2uHyLy1FHS6zWpYy/qorMg 9yMJ4gDbm6wwPpYab6foBB3gaaZYEFPwBkejtdHxXDwjC5mfq/uUWWmQa/8UAxQS0Kkz atIp2WBpngYLg0nfK2SuvkgdALQhH8MNCljOmF2pritz+Vp047cUpCceV5g7b9V1oAax tv49/V0r7yViWahrI9X3a9Peas+Yte1HSrnv+Wfn2Fc5NRHJe5KnHavLZfPy71X/yylo bvTw== X-Gm-Message-State: APt69E14EmMt3eu8oBWa68UHXRiB+uKXbESX4wODqlsim9QiOqEwmNia Bhd0FPveIv8UAS/JeduANhK+biYDKq9MOUmj2LQ= X-Google-Smtp-Source: AAOMgpcgMap+FdlnuvE9+MiCwMGsdB48bQzwRF3Mg0VHoNpUZ4WCU7fiwAqORaHkEZoU6hBykgPgJ+jfKmgdpwcNwio= X-Received: by 2002:a5d:464e:: with SMTP id j14-v6mr2961550wrs.52.1529710094506; Fri, 22 Jun 2018 16:28:14 -0700 (PDT) MIME-Version: 1.0 References: <1529676389.1233443.1416976776.1E193487@webmail.messagingengine.com> In-Reply-To: <1529676389.1233443.1416976776.1E193487@webmail.messagingengine.com> From: Eric Norman Date: Fri, 22 Jun 2018 16:28:02 -0700 Message-ID: Subject: Re: New "capabilities" module, feedback welcome To: dev@sling.apache.org Content-Type: multipart/alternative; boundary="000000000000caddf1056f43623a" --000000000000caddf1056f43623a Content-Type: text/plain; charset="UTF-8" Honestly, I haven't seen any explanation of the use cases that would justify the complexity of the solution. You seem to be creating a resource in the reposotory whose sole purpose is to trigger rendering by the servlet bound to the resource type. With that in mind, my inclination would be to replace the capability_resource/renderer_servlet/shadow_acl_node solution with a single servlet that is mounted at /system/capabilities and remove all the sling specific semantics from the equation. No resource or shadow resource would be necessary. I would expect that a request that returns a report of registered OSGi services shouldn't need to know anything else about sling components running in the same container. The rendering and access control could easily be dealt with within the servlet impl and not require all of the complex administration of the proposed solution. But then again, I may not fully grasp the goals of your use case. Regards, Eric On Fri, Jun 22, 2018, 7:06 AM Jason E Bailey wrote: > After looking into it more, I'm kinda surprised that you didn't go with > the more Sling/ RESTful approach of > > $ curl -s -u admin:admin > http://localhost:8080/org/apache/sling/capabilities.1.json | jq . > > { > "osgi": { > "framework.bundle.symbolic.name": "org.apache.felix.framework", > "framework.bundle.version": "5.6.10" > }, > "jvm": { > "java.specification.version": "1.8", > "java.vm.version": "25.171-b11", > "java.vm.vendor": "Oracle Corporation" > } > } > > You could then control access via ACL and just have the resourceType > report itself rather then everything. > > > - Jason > > On Wed, Jun 20, 2018, at 9:38 AM, Bertrand Delacretaz wrote: > > Hi, > > > > I've been working on a (very simple) module to create a "capabilities" > > endpoint, where a Sling instance can let HTTP clients know about its > > version levels, presence or absence of certain services etc. > > > > It's at > https://github.com/apache/sling-whiteboard/tree/master/capabilities > > and if no one is opposed I'll move it to its own module and make a > > first release later this week. > > > > Feedback is welcome. > > > > -Bertrand > --000000000000caddf1056f43623a--