Skip to content

AuTest: address various permissions issues#8512

Merged
randall merged 1 commit intoapache:9.1.xfrom
randall:backport_7668_9.1.x
Nov 17, 2021
Merged

AuTest: address various permissions issues#8512
randall merged 1 commit intoapache:9.1.xfrom
randall:backport_7668_9.1.x

Conversation

@randall
Copy link
Contributor

@randall randall commented Nov 11, 2021

By default, the Traffic Server process runs as user nobody. This often isn't a
problem with the AuTest runs, but in certain circumstances this process will
not be able to either read or write from certain locations. For instance, by
default, shells in docker containers run as root and the home directory is
/root with permissions set to 550. There's nothing fundamental about AuTest
that prevents this, but since the ATS process is unprivileged it will not be
able to read or write to anything in /root. There can be other manifestations
of permissions limitations like this.

The AuTest Traffic Server extension already sets up various directories in the
sandbox chowned to nobody for the ATS process to access. This tweaks a few of
the tests that assumed ATS access outside of these directories to use these
designated ones. This allows the test to run in more environments.

(cherry picked from commit 36440ef)

Conflicts:
tests/gold_tests/tls/tls_client_verify3.test.py

By default, the Traffic Server process runs as user nobody. This often isn't a
problem with the AuTest runs, but in certain circumstances this process will
not be able to either read or write from certain locations. For instance, by
default, shells in docker containers run as root and the home directory is
/root with permissions set to 550. There's nothing fundamental about AuTest
that prevents this, but since the ATS process is unprivileged it will not be
able to read or write to anything in /root.  There can be other manifestations
of permissions limitations like this.

The AuTest Traffic Server extension already sets up various directories in the
sandbox chowned to nobody for the ATS process to access. This tweaks a few of
the tests that assumed ATS access outside of these directories to use these
designated ones. This allows the test to run in more environments.

(cherry picked from commit 36440ef)

Conflicts:
    tests/gold_tests/tls/tls_client_verify3.test.py
@randall randall added the Backport Marked for backport for an LTS patch release label Nov 11, 2021
@randall randall added this to the 9.1.2 milestone Nov 11, 2021
@randall randall self-assigned this Nov 11, 2021
@randall randall requested a review from bryancall as a code owner November 11, 2021 02:25
@randall
Copy link
Contributor Author

randall commented Nov 11, 2021

Backport of #7668 to 9.1.x

@randall randall requested a review from zwoop November 11, 2021 16:39
Copy link
Contributor

@bneradt bneradt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for backporting this to 9.1.x.

@randall randall merged commit 6690e4e into apache:9.1.x Nov 17, 2021
@randall randall deleted the backport_7668_9.1.x branch November 17, 2021 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backport Marked for backport for an LTS patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants