Issue link: https://read.uberflip.com/i/1334488
Chapter 4 91 How it works... The contents of the proxy-server.conf file define how the OpenStack Storage proxy server is configured. For our purposes, we will run our proxy on port 8080, as the user swift, and it will log to syslog, using the log level of LOCAL1 (this allows us to filter against these messages). We configure our swift proxy server healthcheck behavior to handle caching (by use of memcached) and TempAuth (local authentication meaning our proxy server will handle basic authentication). The [filter:tempauth] section defines two users and roles in their own accounts—one called admin (with the password admin) in the admin account and another called tester (with the password testing) in the test account. The admin user has the admin and reseller_admin roles. The tester user has admin privileges. The .admin role is a local administrator role, whereas the .reseller_admin role has full access to the whole OpenStack Storage environment. The format of the TempAuth user lines is as follows: user_account_username = password {.role} {.role …} {endpoint_url} For example, if we wanted another user in the tester account, called myUser, as a normal user with the password myPassword, we would add the following line: user_test_myUser = myPassword The endpoint_URL option is useful when there is a requirement for a specific URL to be returned that differs from the default. This is used in scenarios where the endpoint URL comes back on an address that is inaccessible on the network or you want to present this differently to the end user, to fit your network. See also f There are more complex options and features described in /usr/share/doc/ swift-proxy/proxy-server.conf-sample.gz f A good overview of TempAuth can be found at http://swiftstack.com/blog/2012/01/04/swift-tempauth/ Configuring Account Server Account Server lists the available containers on our node. As we are creating a setup where we have four virtual devices available under the one hood, they each have their own list of available containers, but they run on different ports. These represent the rsync account numbers seen previously, for example, port 6012 is represented by [account6012] within rsync. www.it-ebooks.info

