Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions helm/numtracker/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ spec:
value: {{ .Values.numtracker.graylog.level }}
{{- end }}
{{- if .Values.numtracker.auth.enabled }}
- name: NUMTRACKER_AUTH_HOST
- name: NUMTRACKER_AUTHZ_HOST
value: {{ .Values.numtracker.auth.host }}
- name: NUMTRACKER_AUTH_ACCESS
- name: NUMTRACKER_AUTHZ_ACCESS
value: {{ .Values.numtracker.auth.access }}
- name: NUMTRACKER_AUTH_ADMIN
- name: NUMTRACKER_AUTHZ_ADMIN
value: {{ .Values.numtracker.auth.admin }}
{{- end }}
securityContext:
Expand Down
2 changes: 1 addition & 1 deletion src/cli/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub struct ConnectionOptions {
/// This should be the domain that has the .well-known/openid-configuration
/// endpoint including scheme and port (if non-standard).
/// eg https://authn.example.com/realms/master
#[clap(long, env = "NUMTRACKER_AUTH_HOST")]
#[clap(long, env = "NUMTRACKER_AUTHN_HOST")]
pub auth: Option<Url>,
}

Expand Down
6 changes: 3 additions & 3 deletions src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,17 @@ pub struct PolicyOptions {
/// Authorization Policy service
///
/// eg, https://authz.diamond.ac.uk
#[clap(long = "policy", required = false, env = "NUMTRACKER_AUTH_HOST")]
#[clap(long = "policy", required = false, env = "NUMTRACKER_AUTHZ_HOST")]
pub policy_host: String,
/// The Rego rule used to generate instrument access data
///
/// eg. v1/data/diamond/policy/session/write_to_beamline_visit
#[clap(long, required = false, env = "NUMTRACKER_AUTH_ACCESS")]
#[clap(long, required = false, env = "NUMTRACKER_AUTHZ_ACCESS")]
pub access_query: String,
/// The Rego rule used to generate admin access data
///
/// eg. v1/data/diamond/policy/admin/configure_beamline
#[clap(long, required = false, env = "NUMTRACKER_AUTH_ADMIN")]
#[clap(long, required = false, env = "NUMTRACKER_AUTHZ_ADMIN")]
pub admin_query: String,
}

Expand Down
Loading