With the 2024.07 release, SAS Mirror Manager introduced the ability to verify the integrity of SAS Viya container images. Then in 2024.10, it was improved further.
This feature provides the ability to check the Viya images authenticity and integrity, which is a critical security process for establishing trust with our customers deploying SAS Viya.
As noted in the official documentation, “SAS provides container image signatures for all official product images. These signatures can be used with SAS Mirror Manager and other tools in order to verify that images originated from SAS.”
In this post we’ll discuss the details of the Viya container image verification and see some examples.
Starting with 2024.07, SAS Mirror Manager verifies image signatures at the time when images are downloaded from SAS container repositories.
As illustrated in the diagram below, it means that each time you run the SAS Mirror Manager tool to pull the SAS Viya images from the official SAS container registry (cr.sas.com), a check of the images signatures is automatically performed. The public key included in the order’s certificates archive is used.
Select any image to see a larger version.
Mobile users: To view the images, select the "Full" version at the bottom of the page.
Since the version 2024.10 of SAS Viya, SAS Mirror Manager can also mirror the image signature to some destination container registries (such as Azure Container Registry, Elastic Container Registry, and so on).
In the situation where you have made your Viya container images available into a private container registry (such as Azure Container Registry or JFrog), then you can also manually verify the associated signatures.
You can use an opensource tool called “Cosign” to perform the verification.
SAS relies on the OCI version 1.1 specification for the SAS Mirror Manager image signature implementation. Signatures can be mirrored into any Container registry implementation that conforms to this specification.
As of today, the following Container Registry implementations support this version of the specification:
The signing key was added to new orders after May 2024, so older orders that were simply renewed will not have it in the corresponding certs.zip files.
In the short term, if you are using an older order and want to verify the signatures of the images mirrored into a private registry, then current solution would be to request a new order.
If a signing key is associated to your order, you should see a file named cosign_release_2023.pub when you unzip the order's certificate archive ("-certs.zip" file).
The Cosign source code and binaries can be found on the Cosign GitHub project. You can install the cosign utility on many operating systems.
For example, on a RedHat Linux based operating system (RedHat Enterprise Linux, CentOS, Rocky Linux), you could simply run the commands below to download and install the RPM package:
The SAS documentation provides the steps to perform the signature verification, and if you visit the latest version of the SAS Viya: Deployment on Google Kubernetes Engine hands-on (soon to be published in learn.sas.com), you can also find an example on how to do it against SAS Viya images that have been mirrored into the Google Artifact Registry.
Here are the steps :
It confirms that the container image signature has been verified with success!
That’s it for today. This approach to validate the source and integrity of SAS container images improves the security posture of our software. Sites deploying SAS Viya can reliably ensure that the software they're installing comes from SAS in its original form without modification or replacement by intermediaries.
Special thanks to Elliot Peele for his support in the write up of this post !
Find more articles from SAS Global Enablement and Learning here.
Dive into keynotes, announcements and breakthroughs on demand.
Explore Now →The rapid growth of AI technologies is driving an AI skills gap and demand for AI talent. Ready to grow your AI literacy? SAS offers free ways to get started for beginners, business leaders, and analytics professionals of all skill levels. Your future self will thank you.