Skip to content

Commit

Permalink
bare returnere true for har nivaaa 4 kallet
Browse files Browse the repository at this point in the history
  • Loading branch information
hakonph committed Aug 21, 2023
1 parent e48b85b commit 36ff21d
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 26 deletions.
6 changes: 0 additions & 6 deletions nais-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ spec:
mountPath: /var/run/secrets/nais.io/service_user_sbs
- kvPath: /kv/preprod/fss/veilarbperson/q1
mountPath: /var/run/secrets/nais.io/vault
- kvPath: /apikey/apigw/dev/eksternapp.difi.idporten.authlevel/veilarbperson_q1
mountPath: /var/run/secrets/nais.io/authlevel
azure:
application:
enabled: true
Expand Down Expand Up @@ -76,10 +74,6 @@ spec:
cluster: dev-gcp

env:
- name: DIFI_IDPORTEN_AUTHLEVEL_URL
value: https://api-gw-q1.adeo.no/ekstern/difi/authlevel/rest/v1/sikkerhetsnivaa/
- name: DIFI_IDPORTEN_TOKEN_URL
value: https://api-gw-q1.adeo.no/ekstern/difi/idporten-oidc-provider/token
- name: KODEVERK_URL
value: http://kodeverk.default.svc.nais.local
- name: KONTAKT_OG_RESERVASJONSREGISTERET_API_URL
Expand Down
6 changes: 0 additions & 6 deletions nais-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ spec:
mountPath: /var/run/secrets/nais.io/service_user_sbs
- kvPath: /kv/prod/fss/veilarbperson/default
mountPath: /var/run/secrets/nais.io/vault
- kvPath: /apikey/apigw/prod/eksternapp.difi.idporten.authlevel/veilarbperson
mountPath: /var/run/secrets/nais.io/authlevel
azure:
application:
enabled: true
Expand Down Expand Up @@ -73,10 +71,6 @@ spec:
cluster: prod-gcp

env:
- name: DIFI_IDPORTEN_AUTHLEVEL_URL
value: https://api-gw.adeo.no/ekstern/difi/authlevel/rest/v1/sikkerhetsnivaa/
- name: DIFI_IDPORTEN_TOKEN_URL
value: https://api-gw.adeo.no/ekstern/difi/idporten-oidc-provider/token
- name: KODEVERK_URL
value: http://kodeverk.default.svc.nais.local
- name: KONTAKT_OG_RESERVASJONSREGISTERET_API_URL
Expand Down
5 changes: 0 additions & 5 deletions src/main/java/no/nav/veilarbperson/config/CacheConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public class CacheConfig {
public static final String NOM_SKJERMEDE_PERSONER_CACHE_NAME = "nom_skjermede_personer_cache";
public static final String SIKKERHETSTILTAK_CACHE_NAME = "sikkerhetstiltak_cache";
public static final String DIGDIR_KONTAKTINFO_CACHE_NAME = "digdir_kontaktinfo_cache";
public static final String DIFI_HAR_NIVA_4_CACHE_NAME = "difi_har_niva_4_cache";
public static final String KODEVERK_BETYDNING_CACHE_NAME = "kodeverk_betydning_cache";

public static final String KONTOREGISTER_CACHE_NAME = "kontoregister_person_cache";
Expand Down Expand Up @@ -46,10 +45,6 @@ public Cache digdirKontaktinfoCache() {
return litenCache(DIGDIR_KONTAKTINFO_CACHE_NAME);
}

@Bean
public Cache difiHarNiva4Cache() {
return litenCache(DIFI_HAR_NIVA_4_CACHE_NAME);
}

@Bean
public Cache kodeverkBetydningCache() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
@ConfigurationProperties(prefix = "app.env")
public class EnvironmentProperties {
private String abacUrl;
private String difiAuthlevelUrl;
private String difiTokenUrl;
private String kodeverkUrl;
private String krrScope;
private String krrUrl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,11 @@
@Service
@RequiredArgsConstructor
public class UnleashService {
private static final String UNLEASH_NIVAA4_DISABLED = "veilarbperson.nivaa4.disabled";
private static final String UNLEASH_POAO_TILGANG_ENABLED = "veilarbperson.poao-tilgang-enabled";
private final UnleashClient unleashClient;

public boolean skalBrukePoaoTilgang() {
return unleashClient.isEnabled(UNLEASH_POAO_TILGANG_ENABLED);
}

public boolean sjekkNivaa4() {
return unleashClient.isEnabled(UNLEASH_NIVAA4_DISABLED);
}

}
2 changes: 0 additions & 2 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ app.env.poaoTilgangUrl=${POAO_TILGANG_URL:#{null}}
app.env.poaoTilgangScope=${POAO_TILGANG_SCOPE:#{null}}

# From nais-{dev|prod}.yaml
app.env.difiAuthlevelUrl=${DIFI_IDPORTEN_AUTHLEVEL_URL}
app.env.difiTokenUrl=${DIFI_IDPORTEN_TOKEN_URL}
app.env.kodeverkUrl=${KODEVERK_URL}
app.env.krrScope=${KONTAKT_OG_RESERVASJONSREGISTERET_SCOPE}
app.env.krrUrl=${KONTAKT_OG_RESERVASJONSREGISTERET_API_URL}
Expand Down

0 comments on commit 36ff21d

Please sign in to comment.