Merge "Deprecates username and password from boot time registration"
This commit is contained in:
commit
89e9c01cd4
@ -9,6 +9,18 @@ Portal or Satellite to enable software installation from official
|
|||||||
repositories. After the end of the image creation process, the image will
|
repositories. After the end of the image creation process, the image will
|
||||||
unregister itself so an entitlement will not be decremented from the account.
|
unregister itself so an entitlement will not be decremented from the account.
|
||||||
|
|
||||||
|
|
||||||
|
SECURITY WARNING:
|
||||||
|
-----------------
|
||||||
|
While the image building workflow will allow you to register with a username
|
||||||
|
and password combination, that feature is deprecated in the boot process via
|
||||||
|
Heat as it will expose your username and password in clear text for anyone
|
||||||
|
that has rights to run heat stack-show. A compromised username and password
|
||||||
|
can be used to login to the Red Hat Customer Portal or an instance of
|
||||||
|
Satellite. An activation key can only be used for registration purposes using
|
||||||
|
the subscription-manager command line tool and is considered a lower security
|
||||||
|
risk.
|
||||||
|
|
||||||
IMPORTANT NOTE:
|
IMPORTANT NOTE:
|
||||||
----------------
|
----------------
|
||||||
The 00-rhsm script is specific to RHEL6. If you use the REG_ variables to
|
The 00-rhsm script is specific to RHEL6. If you use the REG_ variables to
|
||||||
@ -158,6 +170,7 @@ Heat metadata can be used to configure the rhel-common element.
|
|||||||
org:
|
org:
|
||||||
# Gives the organization to which to join the system.
|
# Gives the organization to which to join the system.
|
||||||
password:
|
password:
|
||||||
|
# DEPRECATED
|
||||||
# Gives the password for the user account.
|
# Gives the password for the user account.
|
||||||
release:
|
release:
|
||||||
# Sets the operating system minor release to use for subscriptions
|
# Sets the operating system minor release to use for subscriptions
|
||||||
@ -180,6 +193,7 @@ Heat metadata can be used to configure the rhel-common element.
|
|||||||
# Sets the service level to use for subscriptions on that machine.
|
# Sets the service level to use for subscriptions on that machine.
|
||||||
# This is only used with the auto_attach option.
|
# This is only used with the auto_attach option.
|
||||||
user:
|
user:
|
||||||
|
# DEPRECATED
|
||||||
# Gives the content server user account name.
|
# Gives the content server user account name.
|
||||||
type:
|
type:
|
||||||
# Sets what type of consumer is being registered. The default is
|
# Sets what type of consumer is being registered. The default is
|
||||||
@ -202,8 +216,7 @@ metadata:
|
|||||||
"satellite_url": "http://my-sat06.server.org",
|
"satellite_url": "http://my-sat06.server.org",
|
||||||
"org": "tripleo",
|
"org": "tripleo",
|
||||||
"environment": "Library",
|
"environment": "Library",
|
||||||
"user":"tripleo",
|
"activation_key": "my-key-SQQkh4",
|
||||||
"password":"tripleo",
|
|
||||||
"method":"satellite"
|
"method":"satellite"
|
||||||
"repos": "rhel-ha-for-rhel-7-server-rpms"
|
"repos": "rhel-ha-for-rhel-7-server-rpms"
|
||||||
}
|
}
|
||||||
@ -216,8 +229,8 @@ use the following metadata:
|
|||||||
"rh_registration":{
|
"rh_registration":{
|
||||||
"repos":"rhel-7-server-optional-rpms,rhel-7-server-extras-rpms",
|
"repos":"rhel-7-server-optional-rpms,rhel-7-server-extras-rpms",
|
||||||
"auto_attach":true,
|
"auto_attach":true,
|
||||||
"user":"tripleo",
|
"activation_key": "my-key-SQQkh4",
|
||||||
"password":"tripleo",
|
"org": "5643002",
|
||||||
"method":"portal"
|
"method":"portal"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -71,6 +71,8 @@ if [ -n "${REG_ACTIVATION_KEY:-}" ]; then
|
|||||||
echo "WARNING: REG_ACTIVATION_KEY set without REG_ORG."
|
echo "WARNING: REG_ACTIVATION_KEY set without REG_ORG."
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
echo "WARNING: Support for registering with a username and password is deprecated."
|
||||||
|
echo "Please use activation keys instead. See the README for more information."
|
||||||
if [ -n "${REG_PASSWORD:-}" ]; then
|
if [ -n "${REG_PASSWORD:-}" ]; then
|
||||||
opts="$opts --password $REG_PASSWORD"
|
opts="$opts --password $REG_PASSWORD"
|
||||||
fi
|
fi
|
||||||
@ -85,7 +87,7 @@ if [ -n "${REG_MACHINE_NAME:-}" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "${REG_ORG:-}" ]; then
|
if [ -n "${REG_ORG:-}" ]; then
|
||||||
opts="$opts --org $REG_ORG"
|
opts="$opts --org=$REG_ORG"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "${REG_REPOS:-}" ]; then
|
if [ -n "${REG_REPOS:-}" ]; then
|
||||||
|
@ -68,7 +68,7 @@ if [ -n "${REG_MACHINE_NAME:-}" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "${REG_ORG:-}" ]; then
|
if [ -n "${REG_ORG:-}" ]; then
|
||||||
opts="$opts --org $REG_ORG"
|
opts="$opts --org=$REG_ORG"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "${REG_REPOS:-}" ]; then
|
if [ -n "${REG_REPOS:-}" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user