Feature #18937

[config] simplify AnonymousUserToken configuration

Added by Ward Vandewege about 2 months ago. Updated 17 days ago.

Status:
New
Priority:
Low
Assigned To:
-
Category:
-
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Story points:
-

Description

As identified in #18887, the "secret" configured for the AnonymousUserToken is anything but, by definition.

The current configuration reference says:

      # Set AnonymousUserToken to enable anonymous user access. Populate this
      # field with a random string at least 50 characters long.
      AnonymousUserToken: "" 

If the AnonymousUserToken is left blank, certain UI elements are not shown in Workbench1 (e.g. the "Browse public projects" link, etc). In that case, Workbench1 also does not append it to the reader_tokens list with each API call (see #18936).

Since the actual secret in the AnonymousUserToken is basically meaningless, perhaps this configuration could be simplified to

      # Set AllowAnonymousUserAccess to enable anonymous user access. When enabled, data will 
      # still need to be shared with the anonymous user before it can be accessed without
      # logging in. When disabled, no data can be accessed without logging in, regardless of
      # being shared with the anonymous user.
      AllowAnonymousUserAccess: false
Instead of configuring/generating/passing/checking an "anonymous token", if AllowAnonymousUserAccess is enabled, we could
  • accept incoming requests that have no token at all
  • accept token "none" to mean no token, so clients that have logic like "ARVADOS_API_TOKEN environment variable must be set" can still be used
  • always add "anonymous user" to the set of user UUIDs when checking permissions

Related issues

Blocks Arvados - Bug #18936: [api] [controller] remove reader_token supportNew

Blocks Arvados - Feature #18970: Add support for publicly shared collections (anonymous user)New

History

#1 Updated by Ward Vandewege about 2 months ago

  • Description updated (diff)

#2 Updated by Ward Vandewege about 2 months ago

  • Priority changed from Normal to Low
  • Subject changed from [config] remove need for AnonymousUserToken configuration in most cases to [config] simplify AnonymousUserToken configuration

#3 Updated by Ward Vandewege about 2 months ago

  • Related to Bug #18936: [api] [controller] remove reader_token support added

#4 Updated by Tom Clegg about 2 months ago

  • Description updated (diff)

#5 Updated by Tom Clegg about 2 months ago

  • Description updated (diff)

#6 Updated by Peter Amstutz about 2 months ago

  • Target version changed from 2022-04-13 Sprint to 2022-04-27 Sprint

#7 Updated by Ward Vandewege about 2 months ago

  • Related to deleted (Bug #18936: [api] [controller] remove reader_token support)

#8 Updated by Ward Vandewege about 2 months ago

  • Blocks Bug #18936: [api] [controller] remove reader_token support added

#9 Updated by Ward Vandewege about 2 months ago

  • Blocks Feature #18970: Add support for publicly shared collections (anonymous user) added

#10 Updated by Peter Amstutz about 1 month ago

  • Target version changed from 2022-04-27 Sprint to 2022-05-11 sprint

#11 Updated by Peter Amstutz 27 days ago

  • Target version changed from 2022-05-11 sprint to 2022-05-25 sprint

#12 Updated by Peter Amstutz 17 days ago

  • Target version changed from 2022-05-25 sprint to 2022-06-08 sprint

#13 Updated by Peter Amstutz 17 days ago

  • Target version changed from 2022-06-08 sprint to 2022-06-22 Sprint

#14 Updated by Peter Amstutz 17 days ago

  • Target version changed from 2022-06-22 Sprint to 2022-07-06

Also available in: Atom PDF