The government has accepted advice from the defence and intelligence departments that any security risk can be managed.