Skip to content

[Feature] Accomodate HttpOnly asf-urs cookies #2360

@asjohnston-asf

Description

@asjohnston-asf

At the request of the EDC security team, an upcoming release of TEA will now cause these ASF distribution endpoints to set the HttpOnly property of the asf-urs session cookie:

https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Cookies#security

A cookie with the HttpOnly attribute can't be accessed by JavaScript, for example using Document.cookie; it can only be accessed when it reaches the server. Cookies that persist user sessions for example should have the HttpOnly attribute set — it would be really insecure to make them available to JavaScript. This precaution helps mitigate cross-site scripting (XSS) attacks.

As a result, the getUser() function will not be able to access the cookie payload. Vertex will need an alternate approach to verify that the user is logged in and to retrieve their user id/group memberships/etc.

I'll describe a possible implementation in my following comment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions