mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 12:37:00 +01:00
20220501 fix logging (#730)
This commit is contained in:
parent
fefcff2bc4
commit
3a07842d56
|
@ -151,6 +151,9 @@ Third, trigger the database domain rename process.
|
||||||
|
|
||||||
docker run --rm -i -t -v kandimd:/data \
|
docker run --rm -i -t -v kandimd:/data \
|
||||||
kanidm/server:latest /sbin/kanidmd domain_name_change -c /data/server.toml
|
kanidm/server:latest /sbin/kanidmd domain_name_change -c /data/server.toml
|
||||||
|
|
||||||
|
Finally, you can now start your instance again.
|
||||||
|
|
||||||
docker start <container name>
|
docker start <container name>
|
||||||
|
|
||||||
# Raw actions
|
# Raw actions
|
||||||
|
|
|
@ -83,22 +83,22 @@ You will also need a config file in the volume named `server.toml` (Within the c
|
||||||
|
|
||||||
An example is located in [examples/server.toml](../../examples/server.toml).
|
An example is located in [examples/server.toml](../../examples/server.toml).
|
||||||
|
|
||||||
### Domain Name
|
> **WARNING** You MUST set the `domain` name correctly, aligned with your `origin`, else the server
|
||||||
|
> may refuse to start, or some features (e.g. webauthn, oauth) may not work correctly!
|
||||||
|
|
||||||
You then *MUST* set your domain name so that security principal names (spn's) are generated correctly.
|
### Check the configuration is valid.
|
||||||
This domain name _must_ match the url/origin of the server that you plan to use to interact with
|
|
||||||
so that other features work correctly. It is possible to change this domain name later.
|
|
||||||
|
|
||||||
docker run --rm -i -t -v kanidmd:/data kanidm/server:latest /sbin/kanidmd domain_name_change -c /data/server.toml -n idm.example.com
|
You should test your configuration is valid before you proceed.
|
||||||
|
|
||||||
> **WARNING** You MUST set the domain name correctly, aligned with your origin, else the server
|
docker run --rm -i -t -v kandimd:/data \
|
||||||
> may refuse to start, or some features may not work correctly!
|
kanidm/server:latest /sbin/kanidmd configtest -c /data/server.toml
|
||||||
|
|
||||||
### Default Admin Account
|
### Default Admin Account
|
||||||
|
|
||||||
Then you can setup the initial admin account and initialise the database into your volume.
|
Then you can setup the initial admin account and initialise the database into your volume.
|
||||||
|
|
||||||
docker run --rm -i -t -v kanidmd:/data kanidm/server:latest /sbin/kanidmd recover_account -c /data/server.toml -n admin
|
docker run --rm -i -t -v kanidmd:/data \
|
||||||
|
kanidm/server:latest /sbin/kanidmd recover_account -c /data/server.toml -n admin
|
||||||
|
|
||||||
### Run the Server
|
### Run the Server
|
||||||
|
|
||||||
|
|
|
@ -122,10 +122,6 @@ impl KanidmClientBuilder {
|
||||||
let path = Path::new(ca_path);
|
let path = Path::new(ca_path);
|
||||||
let ca_meta = read_file_metadata(&path)?;
|
let ca_meta = read_file_metadata(&path)?;
|
||||||
|
|
||||||
if !ca_meta.permissions().readonly() {
|
|
||||||
warn!("permissions on {} may not be secure. Should be readonly to running uid. This could be a security risk ...", ca_path);
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(target_family = "unix")]
|
#[cfg(target_family = "unix")]
|
||||||
if ca_meta.uid() != 0 || ca_meta.gid() != 0 {
|
if ca_meta.uid() != 0 || ca_meta.gid() != 0 {
|
||||||
warn!(
|
warn!(
|
||||||
|
@ -133,6 +129,11 @@ impl KanidmClientBuilder {
|
||||||
ca_path
|
ca_path
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(target_family = "unix")]
|
||||||
|
if ca_meta.mode() != 0o644 {
|
||||||
|
warn!("permissions on {} may not be secure. Should be set to 0644. This could be a security risk ...", ca_path);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO #725: Handle these errors better, or at least provide diagnostics - this currently fails silently
|
// TODO #725: Handle these errors better, or at least provide diagnostics - this currently fails silently
|
||||||
|
|
|
@ -13,10 +13,18 @@
|
||||||
* cargo test
|
* cargo test
|
||||||
|
|
||||||
* Update RELEASE_NOTES.md
|
* Update RELEASE_NOTES.md
|
||||||
|
* git commit
|
||||||
|
|
||||||
* cargo release --no-dev-version --skip-push --skip-publish --skip-tag 1.1.0-alpha.X
|
* cargo release --no-dev-version --skip-push --skip-publish --skip-tag 1.1.0-alpha.X
|
||||||
* git rebase -i HEAD~X
|
* git rebase -i HEAD~X
|
||||||
* git tag v1.1.0-alpha.x
|
* git tag v1.1.0-alpha.x
|
||||||
|
* git branch v1.1.0-alpha.x
|
||||||
|
* git checkout v1.1.0-alpha.x
|
||||||
|
|
||||||
|
// Check it
|
||||||
|
|
||||||
|
* git push origin v1.1.0-alpha.x
|
||||||
|
* git push origin master
|
||||||
|
|
||||||
* release kanidm_proto
|
* release kanidm_proto
|
||||||
* release kanidmd/kanidm
|
* release kanidmd/kanidm
|
||||||
|
|
Loading…
Reference in a new issue