Skip to content

Commit

Permalink
Merge branch 'master' into froyo
Browse files Browse the repository at this point in the history
Conflicts:
	src/app/stylesheets/ie.scss
	src/app/views/layouts/katello.haml
	src/config/assets.yml
	src/katello.spec
  • Loading branch information
ehelms committed May 14, 2012
2 parents c71a6b2 + 96d8d6e commit e046e40
Show file tree
Hide file tree
Showing 1,983 changed files with 312,795 additions and 13,961 deletions.
5 changes: 4 additions & 1 deletion agent/katello-agent.spec
@@ -1,7 +1,7 @@
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}

Name: katello-agent
Version: 1.0.2
Version: 1.0.3
Release: 1%{?dist}
Summary: The Katello Agent
Group: Development/Languages
Expand Down Expand Up @@ -45,6 +45,9 @@ rm -rf %{buildroot}
%doc LICENSE

%changelog
* Mon Mar 19 2012 Ivan Necas <inecas@redhat.com> 1.0.3-1
- 770693 - handle repos without repofile in katello-agent (inecas@redhat.com)

* Mon Feb 27 2012 Lukas Zapletal <lzap+git@redhat.com> 1.0.2-1
- 761314 - Make sure katello-agent communicates with ssl

Expand Down
3 changes: 3 additions & 0 deletions agent/src/katello/agent/katelloplugin.py
Expand Up @@ -321,6 +321,9 @@ def __enabled(self, yb, repofn):
"""
enabled = []
for r in yb.repos.listEnabled():
if not r.repofile:
continue

fn = os.path.basename(r.repofile)
if fn != repofn:
continue
Expand Down
6 changes: 5 additions & 1 deletion certs-tools/gen-rpm.sh
Expand Up @@ -340,7 +340,11 @@ RPMOPTS="--define \"_topdir $RPM_BUILD_DIR\"\
--define '_sourcedir %{_topdir}'\
--define '_specdir %{_topdir}'\
--define '_rpmdir %{_topdir}'\
--define '_srcrpmdir %{_topdir}'"
--define '_srcrpmdir %{_topdir}'\
--define '_source_filedigest_algorithm md5'\
--define '_binary_filedigest_algorithm md5'\
--define '_source_payload nil'\
--define '_binary_payload nil'"
eval "rpmbuild -ta $RPMOPTS --clean $RPM_BUILD_DIR/$TARBALL" || exit 1
Expand Down
10 changes: 8 additions & 2 deletions certs-tools/katello-certs-tools.spec
Expand Up @@ -2,7 +2,7 @@ Name: katello-certs-tools
Summary: Katello SSL Key/Cert Tool
Group: Applications/Internet
License: GPLv2 and Python
Version: 1.1.3
Version: 1.1.5
Release: 1%{?dist}
URL: https://fedorahosted.org/katello
Source0: https://fedorahosted.org/releases/k/a/katello/%{name}-%{version}.tar.gz
Expand Down Expand Up @@ -39,9 +39,15 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_bindir}/katello-ssl-tool
%doc %{_mandir}/man1/katello-*.1*
%doc LICENSE PYTHON-LICENSES.txt
%doc ssl-howto-simple.txt ssl-howto.txt

%changelog
* Thu Mar 22 2012 Mike McCune <mmccune@redhat.com> 1.1.5-1
- 781210 - remove from specfile a txt file that was removed in dcdde7a876
(mmccune@redhat.com)

* Tue Mar 20 2012 Lukas Zapletal <lzap+git@redhat.com> 1.1.4-1
- 781210 - cert tools man page review

* Tue Mar 06 2012 Mike McCune <mmccune@redhat.com> 1.1.3-1
- 800093 - CRL was non functional without these config options
(jmatthew@redhat.com)
Expand Down
79 changes: 39 additions & 40 deletions certs-tools/katello-ssl-tool.sgml
Expand Up @@ -54,34 +54,35 @@ Generate and maintain SSL keys, certificates and deployment RPMs.
<RefSect1><Title>Description</Title>

<para>The &KATELLOSSLTOOL; (<command>katello-ssl-tool</command>) is used to
generate and maintain RHN SSL keys and certificates. It also will generate
RPMs for use in deploying these keys and certificates. The tool is geared
for use in an RHN context, but can be useful outside of RHN.</para>
generate and maintain Katello SSL keys and certificates. It also will
generate RPMs for use in deploying these keys and certificates. The tool
is geared for use in an Katello context, but can be useful outside of
Katello.</para>

<para>Working with <command>openssl</command> directly can be tedious and
trying. This tool aims to make the process relatively simple. We limit the
scope of using <command>openssl</command> to how we use it in RHN: securing
web applications.</para>
trying. This tool aims to make the process relatively simple. We limit
the scope of using <command>openssl</command> to how we use it in Katello
securing web applications.</para>

<para>The RHN context of this document is in support of RHN Satellite, but
all holds true for RHN Proxy as well, so keep that in mind. The most
current RHN Satellite Servers use <emphasis>/root/ssl-build</emphasis> as
the default build directory. Older RHN Satellites and Proxies used the
<emphasis>/etc/sysconfig/rhn/ssl</emphasis> directory, and *very* old
installations used <emphasis>/etc/sysconfig/rhn</emphasis>.</para>
<para>Katello installer use <emphasis>/root/ssl-build</emphasis> as the
default build directory. We highly recommend to keep this directory for
custom-generated certs as well.</para>

<para>This tool was originally written for Spacewalk project
and Katello installer makes use only of several options.</para>

<para>The basic process of SSL key/certificate/RPM generation using this
tool: (<emphasis>step 1</emphasis>) generate a CA SSL key pair(set) and
public RPM, (<emphasis>step 2</emphasis>) create web server SSL key
pair(set) and RPM (and tar archive).</para>
tool: (<emphasis>step 1</emphasis>) generate a CA SSL key pair(set) and
public RPM, (<emphasis>step 2</emphasis>) create web server SSL key
pair(set) and RPM (and tar archive).</para>

<para><emphasis>Build directory structure</emphasis>: <command>--dir
<replaceable>BUILD_DIR</replaceable></command> is used with nearly all
commandline options.
<emphasis><replaceable>BUILD_DIR</replaceable></emphasis> marks the top of
the build tree; all CA files and RPMs land there. Server SSL key
pairs(sets) are FQDN specific and so we build them in
<emphasis><replaceable>BUILD_DIR/MACHINE_NAME</replaceable></emphasis>.</para>
<replaceable>BUILD_DIR</replaceable></command> is used with nearly all
commandline options.
<emphasis><replaceable>BUILD_DIR</replaceable></emphasis> marks the top
of the build tree; all CA files and RPMs land there. Server SSL key
pairs(sets) are FQDN specific and so we build them in
<emphasis><replaceable>BUILD_DIR/MACHINE_NAME</replaceable></emphasis>.</para>

<para><simplelist>
<member><msgtext>
Expand All @@ -98,9 +99,9 @@ Generate and maintain SSL keys, certificates and deployment RPMs.
CA password is lost or forgotten (DON'T DO THAT!). The default
validity window for the CA is from now until 2038. The CA public
certificate is what get's distributed to clients of the web-app
(RHN Satellite/Proxy).</para>
(Katello).</para>

<para>In the RHN Satellite/Proxy context, the organization acts as
<para>In the Katello context, the organization acts as
their own Certificate Authority, but these steps can be skipped if
intending to use of an outside authority (This is not officially
supported by Red Hat).</para>
Expand Down Expand Up @@ -129,16 +130,15 @@ Generate and maintain SSL keys, certificates and deployment RPMs.
<replaceable>...</replaceable> ]</command></para>

<para>This step is done more frequently (generally), especially if
more than one RHN server is being deployed (--set-hostname is
more than one Katello server is being deployed (--set-hostname is
different for each server). The default validity window for the CA
is from now until 2038. All clients using the CA SSL public
certificate that signed the new web server SSL certificate will
work as expected with all web server key pairs(set)
generated.</para>

<para>The web server SSL key and certificate are used solely by the
web application server (apache on an RHN Proxy or Satellite Server
for example).</para>
web application server (apache on an Katello for example).</para>

</listitem>
</varlistentry></variablelist>
Expand All @@ -151,16 +151,16 @@ Generate and maintain SSL keys, certificates and deployment RPMs.

<para>The <command>--gen-ca</command> process generates an RPM
that contains the public CA certificate. It needs to be
deployed to any clients making SSL connections to an RHN server
(RHN Satellite or Proxy). This is generally done by making the
deployed to any clients making SSL connections to an Katello server
(Katello). This is generally done by making the
RPM available in the <emphasis>/var/www/html/pub</emphasis>
directory. It is also a good idea to copy the CA certificate
itself in that directory: RHN-ORG-TRUSTED-CA-CERT.</para>
itself in that directory: Katello-ORG-TRUSTED-CA-CERT.</para>

<para>The <command>--gen-server</command> process generates an
RPM that contains the <emphasis>server.key</emphasis> and
<emphasis>server.crt</emphasis> files needed to secure your RHN
server (RHN Satellite or RHN Proxy). It needs to be installed
<emphasis>server.crt</emphasis> files needed to secure your Katello
server (Katello). It needs to be installed
on the appropriate server. That server then needs to have it's
<emphasis>httpd</emphasis> processes restarted
<command>/sbin/service httpd restart</command>.</para>
Expand Down Expand Up @@ -193,7 +193,7 @@ Generate and maintain SSL keys, certificates and deployment RPMs.
<para>generate a web server's SSL private key: <command>--gen-server --key-only <replaceable>...</replaceable></command></para>
<para>generate a web server's SSL certificate request: <command>--gen-server --cert-req-only <replaceable>...</replaceable></command></para>
<para>generate/sign a web server's SSL certificate: <command>--gen-server --cert-only <replaceable>...</replaceable></command></para>
<para>generate a web server's private RPM (and tar archive used for RHN Proxy installations): <command>--gen-server --rpm-only <replaceable>...</replaceable></command></para>
<para>generate a web server's private RPM (and tar archive used for Katello installations): <command>--gen-server --rpm-only <replaceable>...</replaceable></command></para>

</listitem>
</varlistentry></variablelist>
Expand All @@ -202,7 +202,7 @@ Generate and maintain SSL keys, certificates and deployment RPMs.
<member><msgtext>
<variablelist><varlistentry>

<term>Using a 3rd party CA (rarely done in the RHN context):</term>
<term>Using a 3rd party CA (rarely done in the Katello context):</term>

<listitem>
<para></para>
Expand All @@ -213,7 +213,7 @@ Generate and maintain SSL keys, certificates and deployment RPMs.
<emphasis>KATELLO-TRUSTED-SSL-CERT</emphasis>; and then run
<command>--gen-ca --dir BUILD_DIR --rpm-only</command> to package
that certificate in an expected manner ready for client deployment.
NOTE: this has not been tested by RHN personnell. See further
NOTE: this has not been tested by Katello personnell. See further
instructions in <emphasis>step 2</emphasis>.</para>

<para><emphasis>Web server's SSL key pair(set):</emphasis> Usually,
Expand Down Expand Up @@ -375,7 +375,7 @@ Generate and maintain SSL keys, certificates and deployment RPMs.
<term>--rpm-packager</term>
<listitem>
<para>(rarely used) packager of the generated RPM, such as
"RHN Admin &lt;rhn-admin@example.com&gt;".</para>
"Katello Admin &lt;rhn-admin@example.com&gt;".</para>
</listitem>
</varlistentry>
<varlistentry>
Expand Down Expand Up @@ -500,15 +500,14 @@ Generate and maintain SSL keys, certificates and deployment RPMs.
<term>--set-hostname=<replaceable>HOSTNAME</replaceable></term>
<listitem>
<para>set the hostname (FQDN: fully qualified domain name)
of the RHN Satellite or RHN Proxy (default: build machine's
hostname).</para>
of the Katello (default: build machine's hostname).</para>
</listitem>
</varlistentry>
<varlistentry>
<term>--set-cname=<replaceable>HOSTNAME</replaceable></term>
<listitem>
<para>set the cname alias (FQDN: fully qualified domain name)
of the RHN Satellite or RHN Proxy. This will generate certificate
of the Katello. This will generate certificate
with multiple hostnames. Can be specified multiple times.
</para>
</listitem>
Expand Down Expand Up @@ -563,15 +562,15 @@ Generate and maintain SSL keys, certificates and deployment RPMs.
<listitem>
<para>(rarely changed) name of archive (tarball) of the web
server's SSL key set and CA SSL public certificate that is
used solely by the hosted RHN Proxy installation
not used in Katello installation
routines (the base filename, not filename-version-release.tar).</para>
</listitem>
</varlistentry>
<varlistentry>
<term>--rpm-packager</term>
<listitem>
<para>(rarely used) packager of the generated RPM, such as
"RHN Admin &lt;rhn-admin@example.com&gt;".</para>
"Katello Admin &lt;rhn-admin@example.com&gt;".</para>
</listitem>
</varlistentry>
<varlistentry>
Expand Down
5 changes: 0 additions & 5 deletions certs-tools/rhn-stunnel.conf

This file was deleted.

2 changes: 1 addition & 1 deletion certs-tools/setup.py
@@ -1,7 +1,7 @@
from distutils.core import setup

setup(name='katello-certs-tools',
version='1.1.3',
version='1.1.5',
description='Python modules used for Katello SSL tooling',
author='Tomas Lestach',
author_email='tlestach@redhat.com',
Expand Down
60 changes: 0 additions & 60 deletions certs-tools/ssl-howto-simple.txt

This file was deleted.

0 comments on commit e046e40

Please sign in to comment.