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

fips: add pre_enable prompt indicating that additional debs required #1046

Merged

Conversation

blackboxsw
Copy link
Collaborator

Addresses the last remaining FIPS-related prompt and message when
running: ua enable fips.

Fixes: #1031

To test:

cat > ua-dev.yaml <<EOF
#cloud-config
packages:
 - git
 - make
runcmd:
 - git clone -b feature/fips-pre-enable-prompt https://github.com/blackboxsw/ubuntu-advantage-client.git /var/tmp/uac
 - cd /var/tmp/uac/
 - make deps
 - dpkg-buildpackage -us -uc
 - apt-get remove ubuntu-advantage-tools   # Issue: #1044
 - dpkg -i /var/tmp/ubuntu-advantage-tools_20.4_amd64.deb
 - ua attach <YOUR_TOKEN>
EOF

multipass launch daily:xenial --cloud-init ua-dev.yaml  -n dev-xx
# connect to the vm and test fips prompts
multipass connect dev-xx
cloud-init status --wait --long
sudo ua status
sudo ua enable fips

Addresses the last remaining FIPS-related prompt and message when
running: ua enable fips.

Fixes: canonical#1031
Copy link
Contributor

@patriciadomin patriciadomin left a comment

Choose a reason for hiding this comment

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

Many thanks, +1

@blackboxsw blackboxsw merged commit 1861f5d into canonical:master May 1, 2020
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.

FIPS should prompt for confirmation when enabling
2 participants