Proto commits in ubuntu/adsys

These 27 commits are when the Protocol Buffers files have changed:

Commit:63e6558
Author:Jean-Baptiste Lallement
Committer:Jean-Baptiste Lallement

Updates for new document format The documentation has been moved to doc/ and updated to be published to read the doc with in particular table of content. The documentation is now parsed to follow the ToC, point the images to the right addresses and remove internal links.

The documentation is generated from this commit.

Commit:170bcfd
Author:Gabriel Nagy
Committer:Gabriel Nagy

Add CLI command to dump certificate enroll script Similar to the adsys-gpolist, provide a way for users to dump the certificate autoenrollment script for debugging purposes.

Commit:3ea1f7a
Author:Didier Roche
Committer:Didier Roche

Add empty message type from google Instead of using our own, use the google one in the predefined repository.

Commit:938b05c
Author:Gabriel Nagy
Committer:Gabriel Nagy

Refactor ListActiveUsers RPC function Rename to ListUsers, taking a ListUsersRequest with an active argument. Setting active to true will cause users to be queried according to their cached Kerberos ticket information, whereas false will get this information from the policy cache. The autocomplete logic for the purge command is updated to query users from cache, and the related policy update test now purges policies according to cached policies, not cached krb5cc credentials.

Commit:b9faeed
Author:Gabriel Nagy
Committer:Gabriel Nagy

Add action to purge policies This will be used in a prerm script if the user choses to purge the adsys package, to ensure that no leftover policies are left applied on the system. Fixes #495 / DEENG-528

Commit:fe29763
Author:Denison Barbosa
Committer:GitHub

Flag for machine only gpos (#569) * Adding -m | --machine flag to list policies applied to machine Now the user must use `adsysctl applied -m` to list policies applied to the client. Now the previous method `adsysctl applied [hostname]` will try to fetch policies applied to user [hostname]. * Update DumpPoliciesRequest message def in proto files Now DumpPoliciesRequest has a isComputer field to query for machine applied policies * Updating docs to list the machine flag * Updating tests and golden files

Commit:9f25c8e
Author:Didier Roche
Committer:Didier Roche

New adsysctl policy debug gpolist-script This commands dump, for debugging purposes, the gpolist python embedeed script as executable so that we can easily iterate on it if needed. The debug command is hidden. Co-authored-by: Jean-Baptiste Lallement <jean-baptiste@ubuntu.com>

Commit:18828a0
Author:Didier Roche
Committer:Didier Roche

New API for listing active users

Commit:f0dfef9
Author:Didier Roche
Committer:Didier Roche

Get/List available documentation API Embeds documentation in markdown format in binary. Get a way to list all docs and returns its content. Co-authored-by: Jean-Baptiste Lallement <jean-baptiste@ubuntu.com>

Commit:3de5811
Author:Didier Roche
Committer:Didier Roche

Fix protobuf namespace conflict when testing with coverpkg=./... Once we import all modules, including tests one, there is a conflict in protobuf with newer release. Rename the test asset only. Co-authored-by: Jean-Baptiste Lallement <jean-baptiste@ubuntu.com>

Commit:e9bd612
Author:Didier Roche
Committer:Didier Roche

Add GRPC API to Status command Returns status of machine, all connected users, offline/online and user daemon configurations (socket, timeout, cache and run directories…) Co-authored-by: Jean-Baptiste Lallement <jean-baptiste@ubuntu.com>

Commit:54c67d7
Author:Didier Roche
Committer:Didier Roche

logstreamer: client tests Co-authored-by: Jean-Baptiste Lallement <jean-baptiste@ubuntu.com>

Commit:c45ffb8
Author:Didier Roche
Committer:Didier Roche

API to retrieve policies from service

Commit:f685a28
Author:Didier Roche

Hook up rules dumping in adsys API Add a new polkit action group for dumping policies priviledge. Co-authored-by: Jean-Baptiste Lallement <jean-baptiste@ubuntu.com>

Commit:0952323
Author:Didier Roche

Remove now unused protobuf message

Commit:f4c8be0
Author:Didier Roche

Simplify code when retrieving an unique message Simplify to fetch a single string (once logged are filtered out) the code on the client side to get and print it once EOF is reached. Error our in case of use with multiple messages. Convert Version call to that interface.

Commit:67e7fff
Author:Didier Roche

All option request on update policy Update protobuf. Co-authored-by: Jean-Baptiste Lallement <jean-baptiste@ubuntu.com>

Commit:8cae436
Author:Didier Roche

Prevent allowing updating machine if machine == user name Pass "target" instead of user as a more accurate field name Prevent the update, forcing "root" as user name if we want to update the machine. Co-authored-by: Jean-Baptiste Lallement <jean-baptiste@ubuntu.com>

Commit:234568f
Author:Didier Roche

Extends grpc API with UpdatePolicy. Co-authored-by: Jean-Baptiste Lallement <jean-baptiste@ubuntu.com>

Commit:40a0bf0
Author:Didier Roche

Quit GRPC call Hook up the service to react to it by requesting a stop to the daemon. The force parameter helps stopping immediately or delaying it.

Commit:5eec85e
Author:Didier Roche
Committer:Didier Roche

Decorellate showing caller from formatting Separate it in an independant field so that the cli itself decide to show or not the caller and format it. We still register and send caller if any of local, remote or forwarder asked for callstack information. In that case, this is forwarded to all clients and only those who requested it will decide to print them. The code is cleaner under that logic.

Commit:8c58233
Author:Didier Roche
Committer:Didier Roche

Response from Cat call is a string This will be used to forward stdout and stderr directly.

Commit:bcd85f8
Author:Didier Roche

Cat GRPC service call protobuf + generation implementation

Commit:7f894f3
Author:Didier Roche

Implement version request Prints both version from client and service.

Commit:7d2b84a
Author:Didier Roche

Rename logstreamer to simple log as package name Autoimport will automatically DTRT this way and rename the import so that we can use this package for stream and non stream logs.

Commit:bf1d3ac
Author:Didier Roche
Committer:Didier Roche

First adsys server and methods definition Include generated code.

Commit:745f120
Author:Didier Roche
Committer:Didier Roche

log element proto file This is the base of the object passed between server and client.