On ke, 14 joulu 2022, Matthew Miller wrote:
I want to sync group membership to Discourse. See one idea for this
here:
https://pagure.io/fedora-infrastructure/issue/10952
However, this would be approximately one billion times easier if I didn't
need to worry about the hard part of automating something with fasjson,
which is keeping a kerberos ticket fresh from a keytab. (I'd love to run my
whole thing as a function-as-a-service function.)
Why do you consider this as a 'hard thing'?
If you are using GSSAPI, e.g. python-gssapi, you can rely on automated
ticket acquisition provided by the GSSAPI library from MIT Kerberos.
export KRB5CCNAME=/path/to/ccache
export KRB5_CLIENT_KTNAME=/path/to/keytab
.. run your code ..
That's all.
fasjson_client documentation gives a way how to configure gssproxy for
essentially the same. It may be an overkill for the containers though.
https://fasjson-client.readthedocs.io/en/latest/usage.html#authentication
--
/ Alexander Bokovoy