1
0
mirror of https://github.com/projectatomic/atomic.git synced 2026-02-06 03:45:28 +01:00

9 Commits

Author SHA1 Message Date
Jan Černý
0d04058ebf Add configuration compliance scan to "atomic scan"
This commit enables scanning images and containers
for configuration compliance with security profiles
provided by SCAP Security Guide.
Note: This feature requires latest OpenSCAP Daemon from upstream
installed in the underlying "rhel7/openscap" container.

Closes: #1027
Approved by: baude
2017-06-15 18:18:31 +00:00
Watson Sato
0f084c138b atomic.d/opensap: Show how to configure scanner to fetch CVE data
Closes: #953
Approved by: baude
2017-03-24 17:36:24 +00:00
Watson Sato
a0ef549c34 atomic.d/openscap: Improve OpenSCAP scan descriptions
Closes: #953
Approved by: baude
2017-03-24 17:36:24 +00:00
Brent Baude
18863140ff atomic.d/openscap: Change image name to be fully qualified
If the openscap file that defines the scanner image name uses the
short-name, i.e. rhel7/openscap, the on first use of atomic scan,
atomic will pull the scanning image.  However, atomic will name
the image with its fully qualified name, because it had to look it
up.  Therefore, in the local dockerd, the scanner will be named
with its full name.  The next time the scanner is run, it will
again attempt to pull down the short-named version.

We should just switch to the fq name to avoid this mess. This issue
was reported in https://github.com/projectatomic/atomic/issues/797.

Closes: #857
Approved by: baude
2017-02-04 17:14:51 +00:00
Brent Baude
4672f98423 atomic.d/openscap: Fix race condition (bz #1368896)
There is a race condition in oscpd where it sometimes fails to scan
because of a threading issue.  While that is resolved upstream, we
set the max number of threads to 1 to avoid it.

This resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1368896

Closes: #692
Approved by: rhatdan
2016-10-10 21:01:28 +00:00
Martin Preisler
6f7d8f9905 atomic.d/openscap - use custom_args to expose config file for openscap-daemon
Closes: #413
Approved by: baude
2016-06-06 19:18:23 +00:00
Brent Baude
d4bea69183 Define openscap image
The fully qualified name of the openscap image is:
  registry.access.redhat.com/rhel7/openscap

Closes: #407
Approved by: baude
2016-06-06 18:46:57 +00:00
Brent Baude
cca4d0e5ae atomic.d/openscap: Do standard compliance scan without CVEs
When conducting a compliance scan, we do not want to check CVES
as that is done by the default scan.
2016-04-18 14:05:27 -05:00
Brent Baude
6ed4994b0d Implement generic scanning in Atomic
As more scanners besides openscap become available, atomic
can now begin to leverage them.  The new scan function has
been broken out into its on file (scan.py).

The scan command itself now defaults to openscap but can
also be switched to blackduck with --scanner.

Atomic now can use a configuration file which is stored
in /etc/atomic.conf.  The location of the atomic conf
file can be overriden with the environment variable
'ATOMIC_CONF'.  In the case of the scan function,
we need the scanner defined in the configuration file
as well as the fully qualified image name and the
scan arguments.  Optionally, you can provide additional
custom docker arguments for the scanner as well
2016-04-07 09:33:00 -05:00