[OpenAFS] Is member of a machine group honored as system:authuser?

Jeffrey Altman jaltman@auristor.com
Thu, 25 Jan 2018 10:06:39 -0500


This is a cryptographically signed message in MIME format.

--------------ms080800090301030402050401
Content-Type: multipart/mixed;
 boundary="------------96E3083A6B21B18F47C4F30B"
Content-Language: en-US

This is a multi-part message in MIME format.
--------------96E3083A6B21B18F47C4F30B
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 1/24/2018 2:31 PM, Ximeng Guan wrote:
> Hello,
>=20
> I am trying to make some effective use of machine groups in AFS to acco=
mmodate certain requirement of licensed software. I read about the featur=
e, and noticed that in the 1998 edition of the book "Managing AFS, The An=
drew File System" by Richard Campbell, the following text appeared in Cha=
pter 7 p.230:
>=20
> "...
> There is one final quirk to the implementation: it's common for several=
 top-level directories of the AFS namespace to be permitted only to syste=
m:authuser, that is, any user can access the rest of the namespace, but o=
nly if the user has been authenticated as a user, any user, of the curren=
t cell. Machine groups are intended to be useful for any person logged in=
 to a workstation so that software licenses can be honestly followed. The=
refore, when an unauthenticated user is using a machine that is a member =
of a group entry on an ACL, the user's implicit credential is elevated to=
 system:authuser, but only if the machine entry in the group is an exact =
match, not a wildcard.
>=20
> This rule permits any user of a given desktop to effectively have syste=
m:authuser credentials for a directory. As long as that directory has an =
ACL that includes the specific machine's IP address as a member of a grou=
p entry, any user of the desktop, and only that desktop, would have acces=
s to the directory.=20
> ...
> "

This text was true prior to IBM AFS 3.2 but has not been true for any
release since IBM AFS 3.3.  As of AFS 3.3 the Current Protection Set for
a host includes neither system:anyuser nor system:authuser.  In other
words, hosts are not users.

> That is exactly what we have in the top-level directories in our cell: =
We have "system:authuser rl" on the ACL of root.cell.=20
>=20
> Access list for . is
> Normal rights:
>   system:administrators rlidwka
>   system:authuser rl
>=20
> Then when I create a machine-based pts entry 10.12.8.31, add it to a ne=
w group named machinegrp, and wait for >2 hours to let it be effective (a=
ccording to dafileserver's man page)
>=20
> $ pts member machinegrp
> Members of machinegrp (id: -250) are:
>   10.12.8.31
>=20
> I would expect that a local user on 10.12.8.31, even without an AFS tok=
en, would be able to "cd" into the top directory of the cell. But in real=
ity that does not happen. An unauthenticated user is denied of access.=20

This is working as designed because the ACL does not include the host
identity.
>=20
> When I explicitly put "machinegrp rl" on the ACL of the cell's top dire=
ctory (root.cell), an unauthenticated user is indeed able to access the A=
FS space.=20
>=20
> This is not quite convenient, because to allow the user of that specifi=
c machine to launch a license software installed in a certain (deep) dire=
ctory under AFS, for example /afs/cellname/tools/vendors/abc/softwarexx/b=
in, we would have to explicitly place "machinegrp l" on the ACL of the pa=
rent directories of ./bin from /softwarexx all the way up to /cellname.=20
>=20
> Then if we have another software and another machine group, we will hav=
e to do the same again, and the ACL of our root.cell directory will soon =
be populated with machine group entries. That does not seem to be an eleg=
ant solution.=20
>=20
> Did I miss anything here?=20

Perhaps.

The problem you are attempting to solve is that there exist directories
and files that must be accessible only from a particular subset of
trusted machines.  This data is only supposed to be visible to users of
those machines and no one else.

What you are possibly missing is that IP ACLs are not a form of
authentication and they cannot be used to provide any integrity
protection or wire privacy.  Any data that is accessed by the host
without a user's AFS token is going to be transmitted in the clear.
In addition, IP addresses can be spoofed.


This use case is one that AuriStorFS was explicitly designed to address.
 AuriStorFS client hosts can be keyed using Kerberos v5 principals.
AuriStor's RX security class supports combined identity authentication
providing the file server both the identity of the user and the identity
of the host.  Finally, the AuriStorFS Access Control language permits
different access permissions to be granted to each of the following
combinations:

  authenticated user on unauthenticated host
  authenticated user on authenticated host
  anonymous user on authenticated host
  anonymous user on anonymous host

The anonymous user on authenticated host communications with the file
server are authenticated using the host principal and all data is both
integrity protected and encrypted for wire privacy.

Jeffrey Altman
AuriStor, Inc.



--------------96E3083A6B21B18F47C4F30B
Content-Type: text/x-vcard; charset=utf-8;
 name="jaltman.vcf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
 filename="jaltman.vcf"

begin:vcard
fn:Jeffrey Altman
n:Altman;Jeffrey
org:AuriStor, Inc.
adr:Suite 6B;;255 West 94Th Street;New York;New York;10025-6985;United St=
ates
email;internet:jaltman@auristor.com
title:Founder and CEO
tel;work:+1-212-769-9018
note;quoted-printable:LinkedIn: https://www.linkedin.com/in/jeffreyaltman=
=3D0D=3D0A=3D
	Skype: jeffrey.e.altman=3D0D=3D0A=3D
=09
url:https://www.auristor.com/
version:2.1
end:vcard


--------------96E3083A6B21B18F47C4F30B--

--------------ms080800090301030402050401
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCC
DIIwggXpMIIE0aADAgECAhBAAV7gPRitcrlGsJTzkwjvMA0GCSqGSIb3DQEBCwUAMDoxCzAJ
BgNVBAYTAlVTMRIwEAYDVQQKEwlJZGVuVHJ1c3QxFzAVBgNVBAMTDlRydXN0SUQgQ0EgQTEy
MB4XDTE3MTAwMzAzMTczM1oXDTE4MTEwMzAzMTczM1owgYUxLTArBgNVBAsMJFZlcmlmaWVk
IEVtYWlsOiBqYWx0bWFuQGF1cmlzdG9yLmNvbTEjMCEGCSqGSIb3DQEJARYUamFsdG1hbkBh
dXJpc3Rvci5jb20xLzAtBgoJkiaJk/IsZAEBEx9BMDE0MjdFMDAwMDAxNUVFMDNEMTg3QTAw
MDA0QUE1MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqqJC89ZA1DSS7t/Ug8Dd
BQv5nBDumInWtFvHwVCORitVCvlkX4SfqKpERATq0eHOSc0zEz1PUjhAT8lgbNj8Bs92pL9t
DW/VHHpq11w06rCEmZJNxgErAIvMpRuAhGrzvBpQBLj8nDArHWw+5nRn/KnK7ZO81LEEj4TG
w0PEKGSa0aFA+JdRTJ6BZSDP2o/8AHx+Bw4JgW8VppAe4IuY/F+JoYtyQDL+fm1YMnFMtf1A
6IvlGXD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