You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2020/08/17 20:15:43 UTC

[GitHub] [openwhisk] rads18 opened a new issue #4944: OpenWhisk Web Enabled action pickup random subject

rads18 opened a new issue #4944:
URL: https://github.com/apache/openwhisk/issues/4944


   <!--
   We use the issue tracker for bugs and feature requests. For general questions and discussion please use http://slack.openwhisk.org/ or https://openwhisk.apache.org/contact.html instead.
   
   Do NOT share passwords, credentials or other confidential information.
   
   Before creating a new issue, please check if there is one already open that
   fits the defect you are reporting.
   If you open an issue and realize later it is a duplicate of a pre-existing
   open issue, please close yours and add a comment to the other.
   
   Issues can be created for either defects or enhancement requests. If you are a committer than please add the labels "bug" or "feature". If you are not a committer please make clear in the comments which one it is, so that committers can add these labels later.
   
   If you are reporting a defect, please edit the issue description to include the
   information shown below.
   
   If you are reporting an enhancement request, please include information on what you are trying to achieve and why that enhancement would help you.
   
   For more information about reporting issues, see
   https://github.com/apache/openwhisk/blob/master/CONTRIBUTING.md#raising-issues
   
   Use the commands below to provide key information from your environment:
   You do not have to include this information if this is a feature request.
   -->
   
   ## Environment details:
   
   *Kubernetes,  kubernetes 1.13
   * Docker version 18.09.7
   
   ## Steps to reproduce the issue:
   
   1.   Create an action with Web enabled 
             wsk -i action create HelloGet helloget.py --web true
   2.   Use the action URL to call it via a browser
             Get action URL > wsk -i action get <ActionName> --url
             Example https://<openwhisk url>/api/v1/web/autofocus/default/HelloGet
   
   3.   The subject is random ID in your namespace
   
   
   ## Provide the expected results and outputs:
   
   It should rather tie to an internal OpenWhisk account or allow administrator to set a default id to use for web enabled actions
   activations
   output comes here
   ```
       "namespace": "testns",
       "name": "HelloGet",
       "version": "0.0.2",
       **"subject": "<openwhiskweb?>",** <-- Should have ability to use some internal id for the activation or allow to set a default ID for web enabled activations
   
   
   ## Provide the actual results and outputs:
   
   ```
       "namespace": "testns",
       "name": "HelloGet",
       "version": "0.0.2",
       **"subject": "zuser1",** <-- picks a random ID or appears to be the first id with first alphabet descending order
   ```
   
   ## Additional information you deem important:
   * The issue happens consistently for any invocation to web enabled action via curl or any browser.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openwhisk] rabbah commented on issue #4944: OpenWhisk Web Enabled action pickup random subject

Posted by GitBox <gi...@apache.org>.
rabbah commented on issue #4944:
URL: https://github.com/apache/openwhisk/issues/4944#issuecomment-675094592


   Do you have multiple users sharing the `testns` namespace? If so, one is picked to record as the subject and it is the first subject returned from the couchdd index.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openwhisk] rads18 commented on issue #4944: OpenWhisk Web Enabled action pickup random subject

Posted by GitBox <gi...@apache.org>.
rads18 commented on issue #4944:
URL: https://github.com/apache/openwhisk/issues/4944#issuecomment-675096717


   thanks Rabbah to pick this up, yes we have multiple users in the OpenWhisk(OW) namespace(NS) .
   It been setup by our admin , like one OW NS for each team or project.  Is there a way to lock it to a specific ID in the NS?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openwhisk] rads18 edited a comment on issue #4944: OpenWhisk Web Enabled action pickup random subject

Posted by GitBox <gi...@apache.org>.
rads18 edited a comment on issue #4944:
URL: https://github.com/apache/openwhisk/issues/4944#issuecomment-675099460


   Is there a way to hide subject only when its a web enabled call?.. we do find the use of subject for other activation which which are not web enabled. I understand the code is set to do that but isint that incorrect reporting ? because that user did not really activate that action


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openwhisk] rads18 commented on issue #4944: OpenWhisk Web Enabled action pickup random subject

Posted by GitBox <gi...@apache.org>.
rads18 commented on issue #4944:
URL: https://github.com/apache/openwhisk/issues/4944#issuecomment-675099460


   Is there a way to hide subject only when its a web enabled call?.. we do find the use of subject for other activation which which are not web enabled


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openwhisk] rabbah commented on issue #4944: OpenWhisk Web Enabled action pickup random subject

Posted by GitBox <gi...@apache.org>.
rabbah commented on issue #4944:
URL: https://github.com/apache/openwhisk/issues/4944#issuecomment-675109301


   > Is there a way to hide subject only when its a web enabled call?
   
   Not without editing the code for the system.
   
   >  I understand the code is set to do that but isint that incorrect reporting.
   
   The management of users (subjects and namespaces) has generally been outside of scope for openwhisk. This is usually tied to an identity management service in the provider's cloud.
   
   We'd need to introduce the concept of a "subject owning a namespace". It is currently ambiguous when sharing a namespace between subjects who to attach to the activation record.
   
   If this is a feature you'd like to see - I'd be happy to work with you or others on your team to implement it. Contributions are welcomed.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openwhisk] rabbah commented on issue #4944: OpenWhisk Web Enabled action pickup random subject

Posted by GitBox <gi...@apache.org>.
rabbah commented on issue #4944:
URL: https://github.com/apache/openwhisk/issues/4944#issuecomment-675097926


   The code is here - you'll see `limit = 1` which essentially picks the subject.
   
   https://github.com/apache/openwhisk/blob/2036548e62dbf959d91c2328e86318bd7cfa656f/common/scala/src/main/scala/org/apache/openwhisk/core/entity/Identity.scala#L83
   
   If the db is not changing (you're not adding and removing subjects frequently) the choice should be stable.
   There isn't a way to do what you want right now - you'd need to make some changes to the system. For example: specify if the subject is the "default" for the namespace, update the views to return the default subject or remove the limit and then filter in code.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openwhisk] rads18 commented on issue #4944: OpenWhisk Web Enabled action pickup random subject

Posted by GitBox <gi...@apache.org>.
rads18 commented on issue #4944:
URL: https://github.com/apache/openwhisk/issues/4944#issuecomment-675113542


   appreciate the transparency .. yes it is a feature that  makes logical sense to have 
   
   Either a way designate an id in OW NS which will show as subject or a way to set a default for an NS which will auto assign "default" when a web activation happens 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openwhisk] rabbah commented on issue #4944: OpenWhisk Web Enabled action pickup random subject

Posted by GitBox <gi...@apache.org>.
rabbah commented on issue #4944:
URL: https://github.com/apache/openwhisk/issues/4944#issuecomment-675098783


   Alternatively - you can hide the subject field in the activation. The subject id may not be semantically meaningful to you.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org