Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interfaces/greengrass-support: back-port interface changes to 2.48 #9824

Conversation

anonymouse64
Copy link
Contributor

@anonymouse64 anonymouse64 commented Jan 11, 2021

This is #9595 and #9639, back-ported to 2.48.

This also includes #9806 and #9807 in order to get unit tests + spread tests to run.

anonymouse64 and others added 5 commits January 11, 2021 14:41
These accesses are generally useful to snaps wanting to know more about their
host system, but also more specifically useful to the new version of the
Greengrass snap which will use much less privilege to run.

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
…11 update

This adds a new attribute to the greengrass-support interface, "flavor", which
indicates what mode of containerization the greengrassd daemon is meant to be
supporting with the plug. With no flavor attribute, or the "container" flavor,
then the old policy is available so as to not break old users of the snap, but
with a new "process" flavor, then a far less privileged version of the interface
is provided, which allows the greengrassd daemon to implement no
containerization and thus the lambdas that are run are not run with the
additional privilege afforded to the original implementation of the interface,
as that would allow lambdas to trivially escape the sandbox.

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
The PR that added greengras attribute names was merged prematurely
before Samuele had a chance to review the naming. This commit adds
the TODO and will be milestoned 2.49 to ensure that we do not
release anything to stable with the preliminary names.
The flavor attribute names are now as follows:

- "legacy-container" is the full containerization also known as
  "Greengrass container" in AWS's UI.
- "no-container" is the process-mode, no confinement mode, also known as "no
  container" in AWS's UI.

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
@anonymouse64 anonymouse64 changed the title interfaces/greengrass-support interfaces/greengrass-support: back-port interface changes to 2.48 Jan 11, 2021
@anonymouse64 anonymouse64 requested a review from mvo5 January 11, 2021 20:45
jhenstridge and others added 4 commits January 11, 2021 15:26
The yq tool changed its command line arguments and the test broke. Try not to
depend on external tools and use a simple Python snippet to extract the cohort key.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
So that we don't have to deal with silly quoting when calling test-snapd-sh.sh.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Copy link
Contributor

@mvo5 mvo5 left a comment

Choose a reason for hiding this comment

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

Thank you

@mvo5 mvo5 merged commit 7be7ba6 into canonical:release/2.48 Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants